/* =====================================================================
   index-aug.css — Job Request step 1 "Aug compact" redesign.
   Ported from frontend-design/apply-gpt-gemini/index-aug-video-full.html
   (the inline <style> block), kept in the designer's cascade order so a
   diff against the source stays readable.

   Adaptations (everything else is verbatim):
   1. Designer nav (.glass-header) and footer (.app-footer*) rules dropped —
      the app layout renders its own chrome.
   2. CSS variables renamed to the tokens defined in
      /apply-gpt-gemini/styles.css: --font-hero → --gemini-font-hero,
      --primary → --gemini-primary, --primary-dark → --gemini-primary-dark,
      --secondary → --gemini-secondary, --text-gray → --gemini-text-gray,
      --border → --gemini-border.
   ===================================================================== */

/* The updated-nav stylesheet sets gordita on * — keep the hero/chat/testimonials
   in Plus Jakarta as designed (remixicon glyphs are protected by !important). */
.hero *,
.chat-container *,
.testi-mobile * {
    font-family: var(--gemini-font-hero);
}

/* Hero heading variants */
.hero h1.h1-mobile {
    display: none;
}

/* Text pill button ("Next" / "Start") replaces the arrow on mobile */
.input-bar-new .send-btn .send-btn-word {
    display: none;
}

/* Helper text under the email input (mobile only) */
.input-bar-new .input-helper {
    display: none;
    color: var(--gemini-text-gray);
    font-size: 0.8rem;
    font-family: var(--gemini-font-hero);
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

/* Mobile-only compact testimonials (avatar beside name + designation, short text below) */
.testi-mobile {
    display: none;
    padding: 8px 0 48px;
    text-align: center;
}

.testi-mobile h2 {
    color: var(--gemini-primary);
    font-size: clamp(0.95rem, 4.4vw, 1.3rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 18px;
    font-family: var(--gemini-font-hero);
    white-space: nowrap;
}

.tm-card {
    background: var(--gemini-primary);
    border-radius: 16px;
    padding: 20px 18px;
    color: #fff;
    font-family: var(--gemini-font-hero);
    text-align: left;
}

.tm-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tm-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    flex-shrink: 0;
}

.tm-name {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.tm-loc {
    font-size: 0.8rem;
    opacity: 0.85;
}

.tm-text {
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 500;
}

.tm-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.tm-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--gemini-border);
    background: #fff;
    color: var(--gemini-secondary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.tm-dots {
    display: flex;
    gap: 8px;
}

.tm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #D1D5DB;
    padding: 0;
    cursor: pointer;
}

.tm-dot.active {
    background: var(--gemini-primary);
}

/* Email-first simple flow: helpers always visible, big clear buttons */
.input-bar-new .input-helper {
    display: block;
}

.btn-yes,
.btn-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 99px;
    padding: 12px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--gemini-font-hero);
    cursor: pointer;
    transition: 0.2s;
}

.btn-yes {
    background: var(--gemini-primary);
    color: #fff;
}

.btn-yes:hover {
    background: var(--gemini-primary-dark);
}

.btn-change {
    background: #EEF2F7;
    color: var(--gemini-secondary);
}

.btn-change:hover {
    background: #E2E8F0;
}

/* Compact form: both questions on one card */
.compact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cf-field label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gemini-secondary);
    font-family: var(--gemini-font-hero);
}

.cf-field input,
.cf-field textarea {
    width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-family: var(--gemini-font-hero);
    color: #111827;
    background: #fff;
    outline: none;
    resize: none;
    transition: border-color 0.2s;
}

.cf-field input:focus,
.cf-field textarea:focus {
    border-color: var(--gemini-primary);
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
    color: #9CA3AF;
}

.cf-error {
    color: #EF4444;
    font-size: 0.85rem;
}

.cf-error:empty {
    display: none;
}

.cf-error.success {
    color: #16A34A;
}

.cf-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 12px;
    background: var(--gemini-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--gemini-font-hero);
    padding: 15px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.cf-submit:hover {
    background: var(--gemini-primary-dark);
}

@media (max-width: 768px) {

    /* Removals per Aug review */
    .badge-ai,
    .hero p.subtext,
    .chat-header,
    .how-it-works,
    .collab,
    .stats-bar,
    .faq,
    .cand-voices,
    .testimonials {
        display: none !important;
    }

    /* Replaced hero heading */
    .hero h1.h1-desktop {
        display: none;
    }

    .hero h1.h1-mobile {
        display: block;
        font-size: 1.45rem;
        line-height: 1.3;
        letter-spacing: -0.4px;
        margin-bottom: 20px;
    }

    .hero {
        padding: 24px 0 36px;
    }

    /* Send button becomes a small text pill (no arrow) */
    .input-bar-new .send-btn {
        width: auto;
        min-width: 0;
        height: 40px;
        border-radius: 99px;
        padding: 0 22px;
        font-size: 0.85rem;
        font-weight: 700;
        font-family: var(--gemini-font-hero);
        letter-spacing: 0.02em;
        margin-left: 10px;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    .input-bar-new .send-btn i {
        display: none;
    }

    .input-bar-new .send-btn .send-btn-word {
        display: inline;
    }

    .input-bar-new.job-input textarea {
        padding-right: 8px;
    }

    /* Helper text under the email input */
    .input-bar-new .input-helper {
        display: block;
    }

    /* Tighter spacing under Edit / Proceed */
    .chat-row {
        margin-bottom: 16px;
    }

    .action-area {
        margin-top: 4px;
        margin-bottom: 0;
    }

    /* Compact testimonials visible on mobile only */
    .testi-mobile {
        display: block;
    }
}

/* Cosmetic pass: tighter rhythm between blocks, bigger enter box */
@media (max-width: 768px) {
    .hero {
        padding: 20px 0 30px;
    }

    .hero h1.h1-mobile {
        margin-bottom: 16px;
    }

    .chat-content {
        padding: 18px 16px 20px;
    }

    .compact-form {
        gap: 14px;
    }

    .cf-field textarea {
        min-height: 116px;
        padding: 16px;
    }

    .cf-field input {
        padding: 16px;
    }

    .cf-submit {
        padding: 16px 0;
    }

    .testi-mobile {
        padding-top: 4px;
    }

    .testi-mobile h2 {
        margin-bottom: 14px;
    }

    /* Final step + Change side by side */
    .action-area {
        flex-wrap: nowrap;
        margin-right: 0;
    }

    .btn-yes,
    .btn-change {
        padding: 12px 18px;
        white-space: nowrap;
    }
}

/* ===== Compact parity redesign: one design for mobile and desktop ===== */
.badge-ai,
.hero p.subtext,
.chat-header,
.hero h1.h1-desktop,
.how-it-works,
.collab,
.stats-bar,
.faq,
.cand-voices,
.testimonials {
    display: none !important;
}

.hero h1.h1-mobile {
    display: block;
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.4px;
    margin: 0 auto 18px;
}

.chat-container {
    max-width: 560px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
}

.cf-field input,
.cf-field textarea {
    background: #F9FAFB;
}

.cf-field input:focus,
.cf-field textarea:focus {
    background: #fff;
    border-color: var(--gemini-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.testi-mobile {
    display: block;
}

.testi-mobile .container {
    max-width: 560px;
}

.action-area {
    flex-wrap: nowrap;
    margin-right: 0;
}

.btn-yes,
.btn-change {
    white-space: nowrap;
}

@media (min-width: 769px) {
    .hero {
        padding: 56px 0 64px;
    }

    .hero h1.h1-mobile {
        font-size: 2.5rem;
        line-height: 1.25;
        letter-spacing: -1px;
        max-width: 800px;
        margin-bottom: 30px;
    }

    .chat-content {
        padding: 28px;
    }

    .cf-field textarea {
        min-height: 124px;
        padding: 16px;
    }

    .cf-field input {
        padding: 16px;
    }

    .cf-submit {
        padding: 16px 0;
        font-size: 1.05rem;
    }

    .testi-mobile {
        padding: 8px 0 72px;
    }

    .testi-mobile h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .tm-card {
        padding: 24px;
    }
}

/* ===== Visual polish pass ===== */
.hero h1.h1-mobile {
    font-size: clamp(1.25rem, 5.8vw, 1.5rem);
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.chat-container {
    border-radius: 20px;
    border: 1px solid #EEF2F7;
    box-shadow: 0 24px 60px -18px rgba(17, 24, 39, 0.18);
}

.cf-field input,
.cf-field textarea {
    border-radius: 14px;
}

.cf-submit {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.cf-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34);
}

.testi-mobile h2 {
    white-space: normal;
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 18px;
}

.tm-card {
    border-radius: 18px;
    box-shadow: 0 18px 40px -14px rgba(37, 99, 235, 0.45);
}

.tm-avatar {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.tm-dots {
    gap: 7px;
}

.tm-dot {
    transition: all 0.25s;
}

.tm-dot.active {
    width: 20px;
    border-radius: 99px;
}

.tm-arrow {
    border: 1px solid #E5E7EB;
}

@media (min-width: 769px) {
    .hero {
        padding: 64px 0 72px;
    }

    .hero h1.h1-mobile {
        font-size: clamp(1.9rem, 3vw, 2.4rem);
        line-height: 1.25;
        letter-spacing: -1px;
        max-width: 940px;
        margin-bottom: 34px;
    }

    .chat-content {
        padding: 32px;
    }

    .testi-mobile {
        padding: 0 0 84px;
    }

    .testi-mobile h2 {
        font-size: 1.7rem;
        margin-bottom: 24px;
    }

    .tm-card {
        padding: 28px;
    }

    .tm-avatar {
        width: 56px;
        height: 56px;
    }

    .tm-text {
        font-size: 1.02rem;
    }

    .tm-nav {
        margin-top: 18px;
    }
}

/* ===== Round 2: hero hierarchy, wider desktop, multi-card slider ===== */
.hero h1.h1-mobile {
    font-size: clamp(1.5rem, 6.5vw, 1.8rem);
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.hero-sub {
    color: var(--gemini-primary);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 auto 22px;
    max-width: 620px;
    font-family: var(--gemini-font-hero);
}

.tm-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gemini-text-gray);
    margin-bottom: 6px;
    font-family: var(--gemini-font-hero);
}

.testi-mobile h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.tm-viewport {
    overflow: hidden;
}

.tm-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.tm-track .tm-card {
    flex: 0 0 100%;
}

.tm-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (min-width: 769px) {
    .hero h1.h1-mobile {
        font-size: 2.8rem;
        letter-spacing: -1.2px;
        margin-bottom: 12px;
        max-width: 900px;
    }

    .hero-sub {
        font-size: 1.25rem;
        margin-bottom: 34px;
    }

    .chat-container {
        max-width: 680px;
    }

    .compact-form {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px;
    }

    .compact-form .cf-field:nth-child(1) {
        grid-column: 1 / -1;
    }

    .compact-form .cf-field:nth-child(2) {
        grid-row: 2;
        grid-column: 1;
    }

    .compact-form .cf-submit {
        grid-row: 2;
        grid-column: 2;
        width: auto;
        height: auto;
        padding: 0 34px;
    }

    .compact-form .cf-error {
        grid-row: 3;
        grid-column: 1 / -1;
    }

    .testi-mobile .container {
        max-width: 1140px;
    }

    .tm-eyebrow {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .testi-mobile h2 {
        font-size: 2rem;
        margin-bottom: 28px;
    }

    .tm-track {
        gap: 24px;
    }

    .tm-track .tm-card {
        flex: 0 0 calc((100% - 48px) / 3);
    }

    .tm-nav {
        justify-content: center;
        gap: 24px;
        margin-top: 26px;
    }
}

/* ===== Spacing & sizing tune ===== */
@media (max-width: 768px) {
    .hero {
        padding: 24px 0 34px;
    }

    .hero h1.h1-mobile {
        margin-bottom: 8px;
    }

    .hero-sub {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .testi-mobile {
        padding: 10px 0 52px;
    }

    .tm-nav {
        margin-top: 18px;
    }
}

@media (min-width: 769px) {
    .hero {
        padding: 72px 0 80px;
    }

    .hero-sub {
        margin-bottom: 36px;
    }

    .compact-form {
        gap: 16px;
    }

    .cf-field textarea {
        min-height: 132px;
    }

    .testi-mobile {
        padding: 0 0 96px;
    }

    .testi-mobile h2 {
        margin-bottom: 30px;
    }

    .tm-card {
        padding: 26px 28px;
    }

    .tm-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .tm-nav {
        margin-top: 28px;
    }
}

/* ===== Web: stacked email + full-width button; tighter confirm card ===== */
@media (min-width: 769px) {
    .compact-form {
        display: flex;
        flex-direction: column;
    }

    .compact-form .cf-submit {
        width: 100%;
        padding: 16px 0;
    }
}

.chat-content .chat-row {
    margin-bottom: 0;
}

.action-area {
    margin-top: 10px;
    margin-bottom: 0;
}

/* ===== Video button + lightbox ===== */
.hero-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--gemini-border);
    border-radius: 99px;
    padding: 9px 20px 9px 10px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--gemini-font-hero);
    color: var(--gemini-secondary);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
    transition: border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-bottom: 24px;
}

.hero-video-btn:hover {
    border-color: var(--gemini-primary);
    color: var(--gemini-primary);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
}

.hvb-play {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--gemini-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
}

.hero .hero-sub {
    margin-bottom: 14px;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal[hidden] {
    display: none;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.video-modal-dialog {
    position: relative;
    width: min(880px, 94vw);
}

.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.video-frame {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===== Desktop: full video below the form | Mobile: button only ===== */
.hero-video {
    display: none;
}

.video-poster {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: #0f172a;
}

.video-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.6);
}

.vp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.35) 0%, rgba(23, 37, 84, 0.75) 100%);
}

.vp-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.vp-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gemini-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s;
}

.video-poster:hover .vp-play {
    transform: scale(1.1);
}

.vp-text {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--gemini-font-hero);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

@media (min-width: 769px) {
    .hero .hero-sub {
        margin-bottom: 16px;
    }

    .hero-video-btn {
        margin-bottom: 30px;
    }
}

/* ===== Mobile: balance the video button between sub-line and card ===== */
@media (max-width: 768px) {
    .hero .hero-sub {
        margin-bottom: 18px;
    }

    .hero-video-btn {
        padding: 8px 18px 8px 9px;
        font-size: 0.9rem;
        margin-bottom: 22px;
    }

    .hvb-play {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        font-size: 0.9rem;
    }
}

/* ===== Video button restyle: soft blue tint ===== */
.hero-video-btn {
    background: #E7EFFF;
    border: none;
    color: var(--gemini-primary);
    box-shadow: none;
}

.hero-video-btn:hover {
    background: #DCE8FF;
    color: var(--gemini-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16);
}

/* ===== Job Request page only: compact centered footer on mobile =====
   Ported from the designer's footer block in index-aug-video-full.html
   (lines under "Compact centered footer"). Hides title/sub/links/QR and
   centers logo + social row + store badges. This file loads only on the
   Job Request step-1 page, so the site-wide footer elsewhere is untouched.
   Adaptation: the app's social icons are inline <svg>, not <i>. */
@media (max-width: 768px) {
    .app-footer__inner {
        padding: 32px 20px 36px;
    }

    .app-footer__cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .app-footer__compact-title,
    .app-footer__compact-sub,
    .app-footer__links,
    .app-footer__qr,
    .app-footer__scan-pill {
        display: none;
    }

    .app-footer__col-left {
        align-items: center;
        gap: 22px;
    }

    .app-footer__brand {
        justify-content: center;
    }

    .app-footer__brand-img {
        height: 52px;
    }

    .app-footer__follow-row {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .app-footer__follow-label {
        font-size: 14px;
    }

    .app-footer__compact-social {
        gap: 7px;
    }

    .app-footer__compact-social a {
        width: 36px;
        height: 36px;
    }

    .app-footer__compact-social a svg {
        width: 17px;
        height: 17px;
    }

    .app-footer__col-right {
        justify-content: center;
    }

    .app-footer__app {
        gap: 0;
    }

    .app-footer__app-right {
        max-width: none;
        align-items: center;
    }

    .app-footer__badges {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .app-footer__badge img {
        height: 48px;
    }
}

/* Sticky footer — same fix as the payment page (apply-gpt-payment-panel.css):
   the layout's div.apply-gpt-wrapper is a plain block, so .app-footer's
   margin-top:auto can't reach the bottom on short/zoomed-out viewports. */
.apply-gpt-wrapper:has(> .jt-apply-ai-gemini) {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

.apply-gpt-wrapper > .jt-apply-ai-gemini {
    flex: 1 0 auto;
}
