/* ============================================
   BiteOut Campus Ambassador Program (/ambassadors)
   Scoped .amb-* on top of landing.css tokens
   ============================================ */

html { scroll-behavior: smooth; }

/* --- Hero --- */
.amb-hero {
    padding: 5rem 0 4rem;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(83, 242, 147, 0.09) 0%, transparent 60%),
        var(--dark-bg);
    overflow: hidden;
}

.amb-hero__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: center;
}

.amb-hero__content { display: flex; flex-direction: column; gap: 1.5rem; }

.amb-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(83, 242, 147, 0.35);
    background: rgba(83, 242, 147, 0.08);
    border-radius: 50px;
    color: var(--primary-green);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.amb-hero__title {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.08;
    color: var(--text-primary);
    margin: 0;
}

.amb-hero__title .highlight { color: var(--primary-green); }

.amb-hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 560px;
}

.amb-hero__subtitle strong { color: var(--text-primary); font-weight: 600; }

.amb-hero__cta-row { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

.amb-hero__login { color: var(--text-secondary); font-size: 0.95rem; text-decoration: none; }
.amb-hero__login:hover { color: var(--primary-green); }

.amb-hero__note { color: var(--text-secondary); font-size: 0.85rem; margin: -0.5rem 0 0; }

/* Hero visual: phone + floating reward chips */
.amb-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 480px;
}

.amb-hero__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(83, 242, 147, 0.18) 0%, transparent 65%);
    filter: blur(10px);
}

.amb-hero__phone {
    position: relative;
    width: 290px;
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(83, 242, 147, 0.12);
}

.amb-hero__phone img { width: 100%; height: auto; display: block; border-radius: 36px; }

.amb-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: rgba(26, 26, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    animation: amb-float 5s ease-in-out infinite alternate;
}

.amb-chip__emoji { font-size: 1.3rem; }
.amb-chip__title { color: var(--text-primary); font-size: 0.85rem; font-weight: 700; line-height: 1.2; }
.amb-chip__sub { color: var(--text-secondary); font-size: 0.72rem; }

.amb-chip--pay   { top: 12%;  right: 4%;  animation-delay: 0s; }
.amb-chip--count { bottom: 26%; left: 0;  animation-delay: 1.2s; }
.amb-chip--cert  { bottom: 6%;  right: 8%; animation-delay: 2.2s; }

@keyframes amb-float {
    from { transform: translateY(-7px); }
    to   { transform: translateY(7px); }
}

/* --- Stats strip --- */
.amb-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0d0d0d;
}

.amb-stats__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.25rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.amb-stat { text-align: center; }

.amb-stat__value {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--primary-green);
    line-height: 1.1;
}

.amb-stat__label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.35rem; }

/* --- Shared section bits --- */
.amb-section-sub {
    max-width: 680px;
    margin: -2rem auto 3rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.amb-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(83, 242, 147, 0.12);
    border: 1px solid rgba(83, 242, 147, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* --- What is BiteOut --- */
.amb-about {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.amb-about__text h2 { font-size: 2.5rem; font-weight: 900; color: var(--text-primary); margin: 0 0 1.25rem; }
.amb-about__text h2 .highlight { color: var(--primary-green); }
.amb-about__text p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; margin: 0 0 1.25rem; }
.amb-about__text p strong { color: var(--text-primary); font-weight: 600; }

/* Example deal card (pure CSS, no asset) */
.amb-deal-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.75rem;
    max-width: 380px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: rotate(1.5deg);
}

.amb-deal-card__tag {
    display: inline-block;
    background: var(--primary-green);
    color: var(--dark-bg);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.amb-deal-card__title { color: var(--text-primary); font-size: 1.35rem; font-weight: 800; margin: 0 0 0.35rem; }
.amb-deal-card__place { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 1.25rem; }

.amb-deal-card__row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.amb-deal-card__row strong { color: var(--primary-green); font-weight: 700; }

/* --- How it works steps --- */
.amb-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.amb-step {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
}

.amb-step__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.amb-step__title { color: var(--text-primary); font-size: 1.02rem; font-weight: 700; margin: 0 0 0.5rem; }
.amb-step__desc { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55; margin: 0; }

/* --- Money ladder --- */
.amb-ladder {
    max-width: 640px;
    margin: 0 auto;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 2.25rem;
}

.amb-ladder__head {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.amb-ladder__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.amb-ladder__row:last-child { border-bottom: none; }

.amb-ladder__milestone { color: var(--text-primary); font-weight: 700; font-size: 1.05rem; }
.amb-ladder__milestone span { color: var(--text-secondary); font-weight: 400; font-size: 0.88rem; }

.amb-ladder__reward { color: var(--primary-green); font-weight: 800; font-size: 1.05rem; text-align: right; }
.amb-ladder__reward span { display: block; color: var(--text-secondary); font-weight: 400; font-size: 0.82rem; }

.amb-ladder__row--first {
    margin: 0 -1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(83, 242, 147, 0.07);
    border: 1px solid rgba(83, 242, 147, 0.25);
    border-radius: 12px;
}

.amb-ladder__row--more { color: var(--text-secondary); font-style: italic; font-size: 0.92rem; justify-content: center; }

/* --- FAQ --- */
.amb-faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

.amb-faq details {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
}

.amb-faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.amb-faq summary::-webkit-details-marker { display: none; }

.amb-faq summary::after {
    content: '+';
    color: var(--primary-green);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.amb-faq details[open] summary::after { transform: rotate(45deg); }

.amb-faq details p {
    margin: 0;
    padding: 0 1.4rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.amb-faq details p + p { padding-top: 0; margin-top: -0.5rem; }

/* --- Apply section --- */
.amb-apply__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}

.amb-form-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
}

.amb-field { margin-bottom: 1.4rem; }

.amb-label {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.amb-label span { color: var(--text-secondary); font-weight: 400; }

.amb-input, .amb-select, .amb-textarea {
    width: 100%;
    background: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.amb-input:focus, .amb-select:focus, .amb-textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(83, 242, 147, 0.15);
}

.amb-input::placeholder, .amb-textarea::placeholder { color: #6b6b6b; }

.amb-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }

.amb-textarea { resize: vertical; min-height: 96px; }

/* prefixed inputs (phone / instagram) */
.amb-prefixed { display: flex; }

.amb-prefixed__prefix {
    flex: none;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: #242424;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.amb-prefixed .amb-input { border-radius: 0 12px 12px 0; }

/* choice cards (college vs high school) */
.amb-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.amb-choice label {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.amb-choice input { position: absolute; opacity: 0; pointer-events: none; }

.amb-choice label:has(input:checked) {
    border-color: var(--primary-green);
    background: rgba(83, 242, 147, 0.08);
}

.amb-choice__title { display: block; color: var(--text-primary); font-weight: 700; font-size: 0.95rem; }
.amb-choice__sub { display: block; color: var(--text-secondary); font-size: 0.8rem; margin-top: 0.2rem; }

/* file input */
.amb-file input { position: absolute; opacity: 0; width: 0; height: 0; }

.amb-file__box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1.5px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.amb-file__box:hover { border-color: rgba(83, 242, 147, 0.5); }

.amb-file__box.has-file {
    border-color: var(--primary-green);
    border-style: solid;
    background: rgba(83, 242, 147, 0.06);
    color: var(--text-primary);
}

.amb-file__icon { font-size: 1.35rem; flex-shrink: 0; }

.amb-consent { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--text-secondary); font-size: 0.88rem; line-height: 1.5; cursor: pointer; }
.amb-consent input { margin-top: 0.2rem; width: 17px; height: 17px; accent-color: var(--primary-green); flex-shrink: 0; }

.amb-error { color: #ff9d9d; font-size: 0.85rem; margin-top: 0.45rem; }

.amb-submit { width: 100%; justify-content: center; font-size: 1.05rem; }

.amb-form-footnote { text-align: center; color: var(--text-secondary); font-size: 0.85rem; margin: 1rem 0 0; }

/* apply side rail */
.amb-rail { display: flex; flex-direction: column; gap: 1.25rem; }

.amb-rail__card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 1.5rem;
}

.amb-rail__card h3 { color: var(--text-primary); font-size: 1.05rem; font-weight: 700; margin: 0 0 1rem; }

.amb-rail__step { display: flex; gap: 0.85rem; padding: 0.6rem 0; }

.amb-rail__step-num {
    width: 28px; height: 28px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(83, 242, 147, 0.14);
    color: var(--primary-green);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}

.amb-rail__step p { margin: 0.2rem 0 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.amb-rail__step p strong { color: var(--text-primary); font-weight: 600; }

.amb-rail__note { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; margin: 0; }
.amb-rail__note a { color: var(--primary-green); text-decoration: none; }

/* success card */
.amb-success {
    background: rgba(83, 242, 147, 0.07);
    border: 1px solid rgba(83, 242, 147, 0.3);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
}

.amb-success__emoji { font-size: 3rem; }
.amb-success h2 { color: var(--text-primary); font-size: 1.8rem; font-weight: 900; margin: 1rem 0 0.75rem; }
.amb-success p { color: var(--text-secondary); font-size: 1rem; line-height: 1.65; max-width: 480px; margin: 0 auto 1rem; }
.amb-success p strong { color: var(--text-primary); }
.amb-success .download__badges { justify-content: center; margin-top: 1.5rem; }

/* honeypot — off-screen, never display:none (some bots skip hidden fields) */
.amb-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .amb-hero__container { grid-template-columns: 1fr; gap: 3rem; }
    .amb-hero__title { font-size: 2.7rem; }
    .amb-hero__visual { min-height: 420px; }
    .amb-stats__container { grid-template-columns: repeat(2, 1fr); }
    .amb-about { grid-template-columns: 1fr; gap: 3rem; }
    .amb-steps { grid-template-columns: repeat(2, 1fr); }
    .amb-apply__grid { grid-template-columns: 1fr; }
    .amb-rail { order: -1; }
}

@media (max-width: 768px) {
    .amb-hero { padding: 3rem 0 2.5rem; }
    .amb-hero__container { padding: 0 1rem; }
    .amb-hero__title { font-size: 2.1rem; }
    .amb-hero__subtitle { font-size: 1.02rem; }
    .amb-hero__cta-row .cta-button { width: 100%; }
    .amb-hero__visual { min-height: 0; margin-top: 0.5rem; }
    .amb-hero__phone { width: 230px; }
    .amb-chip--pay { right: 0; top: 4%; }
    .amb-chip--count { left: -4px; bottom: 30%; }
    .amb-chip--cert { right: 0; bottom: 2%; }
    .amb-stats__container { padding: 1.5rem 1rem; gap: 1.25rem; }
    .amb-stat__value { font-size: 1.4rem; }
    .amb-stat__label { font-size: 0.78rem; }
    .amb-steps { grid-template-columns: 1fr; }
    .amb-ladder { padding: 1.5rem 1.25rem; }
    .amb-ladder__row--first { margin: 0; }
    .amb-form-card { padding: 1.5rem 1.25rem; }
    .amb-choice { grid-template-columns: 1fr; }
    .amb-deal-card { transform: none; }
    .amb-section-sub { margin-top: -1.5rem; }
}
