﻿/* ========================================
   DEMO SECTION — _demo.css
   All styles scoped exclusively to the
   demo / request-a-demo section.
   ======================================== */


/* ── Section wrapper ───────────────────── */
.demo-section {
    padding: 8rem 0;
    background: linear-gradient(160deg, var(--dark-burgundy) 0%, var(--burgundy) 60%, var(--wine) 100%);
    position: relative;
    overflow: hidden;
}


/* ── Background diamond pattern ─────────── */
.demo-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polygon points="12,2 22,12 12,22 2,12" fill="none" stroke="%23D4AF37" stroke-width="0.3" opacity="0.15"/></svg>');
    background-size: 60px 60px;
    pointer-events: none;
}


/* ── Two-column layout ──────────────────── */
.demo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}


/* ════════════════════════════════════════
   PITCH COLUMN (left)
   ════════════════════════════════════════ */

.demo-pitch__label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    margin-bottom: 1.8rem;
}

    .demo-pitch__label i {
        font-size: 0.85rem;
    }

.demo-pitch__heading {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.demo-pitch__accent {
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-pitch__sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.85;
    margin-bottom: 2.8rem;
    max-width: 440px;
}


/* ── Demo points list ───────────────────── */
.demo-points {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 3rem;
}

.demo-point {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
}

.demo-point__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.demo-point:hover .demo-point__icon {
    background: rgba(212, 175, 55, 0.25);
}

.demo-point__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-top: 0.2rem;
}

.demo-point__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.demo-point__sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.4;
}


/* ── Social reassurance ─────────────────── */
.demo-reassurance {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-reassurance__avatars {
    display: flex;
}

.demo-reassurance__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    border: 2px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    margin-right: -10px;
}

    .demo-reassurance__avatar:last-child {
        margin-right: 0;
    }

.demo-reassurance__text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    padding-left: 0.5rem;
}

    .demo-reassurance__text strong {
        color: var(--white);
    }


/* ════════════════════════════════════════
   FORM CARD (right)
   ════════════════════════════════════════ */

.demo-form-card {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.demo-form-card__header {
    background: linear-gradient(135deg, var(--dark-burgundy), var(--burgundy));
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}

    /* Gold top border on header */
    .demo-form-card__header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--gold), var(--light-gold), var(--gold));
    }

    .demo-form-card__header h3 {
        font-family: 'Playfair Display', serif;
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--white);
        margin-bottom: 0.35rem;
    }

    .demo-form-card__header p {
        font-size: 0.88rem;
        color: rgba(255, 255, 255, 0.68);
    }

        .demo-form-card__header p strong {
            color: var(--gold);
        }


/* ── Form body ──────────────────────────── */
.demo-form,
.demo-gate-form {
    padding: 2rem 2.5rem 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.demo-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.demo-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .demo-field label {
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: var(--dark-burgundy);
    }

.demo-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .demo-input-wrap i {
        position: absolute;
        left: 1rem;
        color: var(--luxury-gray);
        font-size: 0.85rem;
        pointer-events: none;
        transition: color 0.25s ease;
        z-index: 1;
    }

    .demo-input-wrap input,
    .demo-input-wrap select {
        width: 100%;
        padding: 0.85rem 1rem 0.85rem 2.6rem;
        border: 1.5px solid rgba(107, 44, 62, 0.15);
        border-radius: 12px;
        font-size: 0.9rem;
        color: var(--dark-gray);
        background: var(--white);
        outline: none;
        transition: border-color 0.25s ease, box-shadow 0.25s ease;
        font-family: 'Inter', sans-serif;
        -webkit-appearance: none;
        appearance: none;
    }

    .demo-input-wrap select {
        cursor: pointer;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" fill="none" stroke="%238B8B8B" stroke-width="1.5" stroke-linecap="round"/></svg>');
        background-repeat: no-repeat;
        background-position: right 1rem center;
        padding-right: 2.5rem;
        background-size: 10px;
    }

    .demo-input-wrap input::placeholder {
        color: rgba(139, 139, 139, 0.6);
        font-size: 0.88rem;
    }

    .demo-input-wrap input:focus,
    .demo-input-wrap select:focus {
        border-color: var(--burgundy);
        box-shadow: 0 0 0 3px rgba(107, 44, 62, 0.08);
    }

    .demo-input-wrap:focus-within i {
        color: var(--burgundy);
    }


/* ── Submit button ──────────────────────── */
.demo-submit-btn {
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(107, 44, 62, 0.3);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

    /* Shimmer effect */
    .demo-submit-btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
        transition: left 0.5s ease;
    }

    .demo-submit-btn:hover::after {
        left: 100%;
    }

    .demo-submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(107, 44, 62, 0.4);
    }

    .demo-submit-btn:active {
        transform: translateY(-1px);
    }


/* ── Privacy note ───────────────────────── */
.demo-form__privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    color: var(--luxury-gray);
    text-align: center;
    margin-top: 0.2rem;
}

    .demo-form__privacy i {
        color: var(--burgundy);
        font-size: 0.7rem;
    }


/* ── Responsive ─────────────────────────── */
@media (max-width: 1100px) {
    .demo-layout {
        gap: 3.5rem;
    }

    .demo-pitch__heading {
        font-size: 2.6rem;
    }
}

@media (max-width: 968px) {
    .demo-section {
        padding: 6rem 0;
    }

    .demo-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .demo-pitch {
        text-align: center;
    }

    .demo-pitch__sub {
        max-width: 100%;
        margin: 0 auto 2.8rem;
    }

    .demo-pitch__label {
        display: inline-flex;
    }

    .demo-points {
        max-width: 500px;
        margin: 0 auto 3rem;
    }

    .demo-point {
        text-align: left;
        max-width: 100%;
        margin: 0;
    }

    .demo-reassurance {
        justify-content: center;
    }

    /* Form card: remove overflow hidden on tablet so nothing clips */
    .demo-form-card {
        overflow: visible;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .demo-section {
        padding: 5rem 0;
    }

    .demo-pitch__heading {
        font-size: 2.2rem;
    }

    .demo-field-row {
        grid-template-columns: 1fr;
    }

    .demo-form,
    .demo-gate-form {
        padding: 1.5rem 1.5rem 2rem;
    }

    .demo-form-card__header {
        padding: 1.5rem;
        border-radius: 20px 20px 0 0;
        overflow: hidden;
    }

    .demo-form-card {
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    }

    /* Reduce Calendly height on mobile */
    #calendlyWidget {
        height: 500px !important;
    }
}

@media (max-width: 480px) {
    .demo-section {
        padding: 4rem 0;
    }

    .demo-pitch__heading {
        font-size: 1.9rem;
    }

    .demo-form,
    .demo-gate-form {
        padding: 1.2rem;
    }

    .demo-form-card__header {
        padding: 1.2rem 1.5rem;
    }

    .demo-input-wrap input,
    .demo-input-wrap select {
        font-size: 0.85rem;
        padding: 0.8rem 1rem 0.8rem 2.4rem;
    }

    .demo-submit-btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    #calendlyWidget {
        height: 450px !important;
    }
}


/* ── Error banner ─────────────────────────────────────────── */
.demo-form-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff0f0;
    border: 1px solid #f5c6cb;
    color: #c0392b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ── Success card ─────────────────────────────────────────── */
.demo-success {
    text-align: center;
    padding: 20px 10px;
}

.demo-success__icon {
    font-size: 52px;
    color: #27ae60;
    margin-bottom: 12px;
}

.demo-success__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.demo-success__sub {
    color: #555;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.demo-success__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

    .demo-success__divider::before,
    .demo-success__divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e0e0e0;
    }

/* ── Loading button state ─────────────────────────────────── */
.demo-submit-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}
