/* ========================================
   ROBOT.COM WEBINAR - FREE CONSULTATION
   Automation Readiness Assessment offer page
   Reuses form styles from landing.css
   ======================================== */

/* === HERO: LIGHT BACKGROUND (matches Trusted By cards) === */
.rw-hero-consult {
    min-height: auto;
    padding: 4rem;
    display: block;
    background-color: var(--rw-bg-grey);
    color: var(--rw-black);
}

.rw-consult-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 120rem;
    margin: 0 auto;
    align-items: start;
}

/* === LEFT COLUMN: COPY === */
.rw-consult-copy {
    padding-top: 2rem;
}

/* Tag — ghost chip (dark on light) */
.rw-consult-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    border-radius: 1.8rem;
    border: 1px solid rgba(38, 38, 38, 0.2);
    background-color: transparent;
    color: var(--rw-black);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 2.4rem;
}

.rw-consult-title {
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--rw-black);
    margin-bottom: 1.6rem;
}

.rw-consult-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--rw-grey-4);
    margin-bottom: 2.4rem;
    max-width: 44rem;
}

/* Checklist — small black dots */
.rw-consult-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.rw-consult-checks li {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--rw-black);
    padding-left: 1.6rem;
    position: relative;
}

.rw-consult-checks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--rw-black);
}

/* === FORM: TEXTAREA ADDITION (not in landing.css) === */
.rw-formTextarea {
    height: auto;
    min-height: 7rem;
    border-radius: 1.2rem;
    padding: 1rem 1.4rem;
    resize: vertical;
    line-height: 1.4;
}

/* === TRUSTED BY (Social Proof) === */
.rw-trusted {
    margin-top: 0.6rem;
}

.rw-trusted-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.6rem;
}

.rw-trusted-card {
    background-color: var(--rw-bg-grey);
    border-radius: 1.6rem;
    padding: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 16rem;
}

.rw-trusted-header {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
}

.rw-trusted-title {
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--rw-black);
    margin-bottom: 1.2rem;
}

.rw-trusted-text {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--rw-grey-4);
}

.rw-trusted-logo {
    max-width: 55%;
    height: auto;
}

.rw-trusted-logo-wide {
    max-width: 70%;
}

/* === VIDEO SECTION SPACING (consultation page only) === */
.rw-video-section {
    margin-top: 0.4rem;
}

/* === EMAIL ERROR HINT === */
.rw-hintError {
    color: #be4747;
    font-weight: 500;
}

/* === VALIDATION MESSAGE === */
.rw-cf-validation {
    display: none;
    color: #be4747;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    background-color: rgba(190, 71, 71, 0.1);
    border-radius: 0.8rem;
}

/* === SCHEDULING SECTION (post-submit) === */
.rw-schedule-section {
    display: none;
    animation: rwCfFadeIn 0.4s var(--rw-ease);
}

.rw-schedule-section.active {
    display: block;
}

.rw-schedule-hero {
    background-color: var(--rw-bg-grey);
    color: var(--rw-black);
    border-radius: 1.6rem;
    padding: 4rem;
    text-align: center;
}

.rw-schedule-icon {
    width: 5.6rem;
    height: 5.6rem;
    margin: 0 auto 2rem;
    color: var(--rw-black);
}

.rw-schedule-title {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--rw-black);
    margin-bottom: 1rem;
}

.rw-schedule-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--rw-grey-4);
    margin-bottom: 3.2rem;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.rw-schedule-embed {
    background-color: var(--rw-white);
    border-radius: 1.6rem;
    overflow: hidden;
    max-width: 80rem;
    margin: 0 auto;
    min-height: 60rem;
}

.rw-schedule-embed iframe {
    width: 100%;
    height: 65rem;
    border: 0;
}

/* === MOBILE MODAL: BASE (hidden on desktop) === */
.rw-mobile-cta { display: none; }
.rw-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}
.rw-mobile-backdrop.active { display: block; }
.rw-mobile-close { display: none; }
.rw-mobile-cta-btn {
    display: block;
    width: 100%;
    padding: 1.4rem 2rem;
    border: none;
    border-radius: 10rem;
    background-color: var(--rw-accent-yellow);
    color: var(--rw-black);
    font-family: 'Yellix', -apple-system, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

@keyframes rwMobileSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes rwCfFadeIn {
    from { opacity: 0; transform: translateY(0.8rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE: TABLET === */
@media only screen and (max-width: 1023px) {
    .rw-hero-consult {
        padding: 3.2rem 2rem;
    }

    .rw-consult-grid {
        grid-template-columns: 1fr;
        gap: 3.2rem;
    }

    .rw-consult-copy {
        padding-top: 0;
    }

    .rw-consult-title {
        font-size: 3.2rem;
    }

    .rw-schedule-hero {
        padding: 3.2rem 2rem;
    }

    .rw-schedule-title {
        font-size: 2.8rem;
    }

    .rw-trusted-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rw-trusted-card {
        min-height: 12rem;
    }

    .rw-trusted-title {
        font-size: 2rem;
    }
}

/* === RESPONSIVE: MOBILE === */
@media only screen and (max-width: 767px) {
    .rw-hero-consult {
        padding: 2rem 1.6rem;
        border-radius: 1.2rem;
    }

    .rw-consult-tag {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0.5rem 1rem;
    }

    .rw-consult-title {
        font-size: 2.4rem;
        margin-bottom: 1.2rem;
    }

    .rw-consult-subtitle {
        font-size: 1.3rem;
    }

    .rw-consult-checks li {
        font-size: 1.3rem;
    }

    /* Hide form in grid — it becomes a modal */
    .rw-consult-grid > .rw-form-box {
        display: none;
    }

    /* Modal: full-screen form */
    .rw-form-box.rw-mobile-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: var(--rw-white);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 2rem 1.6rem;
        padding-bottom: calc(3rem + env(safe-area-inset-bottom));
        animation: rwMobileSlideUp 0.3s var(--rw-ease);
    }

    /* Sticky CTA */
    .rw-mobile-cta {
        display: block;
        position: fixed;
        bottom: 0.4rem;
        left: 0.4rem;
        right: 0.4rem;
        z-index: 100;
    }

    /* Close button */
    .rw-mobile-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 4rem;
        height: 4rem;
        border: none;
        background: none;
        cursor: pointer;
        padding: 0;
        color: var(--rw-black);
        margin-bottom: 0.8rem;
        -webkit-tap-highlight-color: transparent;
    }

    .rw-schedule-hero {
        padding: 2.4rem 1.6rem;
        border-radius: 1.2rem;
    }

    .rw-schedule-title {
        font-size: 2.2rem;
    }

    .rw-schedule-subtitle {
        font-size: 1.3rem;
    }

    .rw-schedule-embed {
        border-radius: 1.2rem;
        min-height: 50rem;
    }

    .rw-schedule-embed iframe {
        height: 55rem;
    }

    .rw-trusted-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rw-trusted-card {
        min-height: 10rem;
        padding: 1.6rem;
        border-radius: 1.2rem;
    }

    .rw-trusted-header {
        grid-column: 1 / -1;
        min-height: auto;
        padding: 2rem 1.6rem;
    }

    .rw-trusted-title {
        font-size: 1.8rem;
    }

    .rw-trusted-text {
        font-size: 1.1rem;
    }
}
