/* ===== Miami IDRC 2029 - site styles ===== */
:root { --turquoise: #00bbdc; --hot-pink: #ed1579; --active-link: #0044ff; --lt-blue: #e8f4f6; --form-fill: #f5f5f7; --form-frame: #92b9c1; --field-text: #6e6e73; --ink: #1e1e1e; --font-body: 'Aptos', 'Segoe UI', system-ui, -apple-system, sans-serif; --font-ui: 'Inter', 'Segoe UI', system-ui, sans-serif; --font-display: 'Josefin Sans', 'Segoe UI', sans-serif; --page: 1440px; }

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body { font-family: var(--font-body); color: #000; background: #fff; -webkit-font-smoothing: antialiased; }

img { display: block; border: 0; }
a { color: var(--active-link); }

.page { max-width: var(--page); margin: 0 auto; }

/* ===== Hero ===== */
.hero { position: relative; height: 400px; overflow: hidden; background-size: cover; background-position: bottom; }

.hero-logo { position: absolute; left: 0; top: 0; bottom: 0; width: 223px; display: flex; align-items: center; justify-content: center; padding: 10px 10px 50px; }
    .hero-logo img { width: 130px; height: 174px; }

.hero-wmda { position: absolute; left: 219px; top: 118px; width: 221px; height: 93px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
    .hero-wmda img { width: 100%; height: 100%; object-fit: contain; }

/* Landing: white badge card with the IDRC logo */
.hero-badge { position: absolute; top: 50%; left: calc(50% + 100px); transform: translate(-50%, -50%); width: 532px; max-width: 60vw; background: rgba(255,255,255,.9); border-radius: 0 25px 25px 25px; box-shadow: 0 4px 4px rgba(0,0,0,.25); padding: 22px 26px; display: flex; align-items: center; justify-content: center; }
    .hero-badge img { width: 100%; height: auto; }

/* Attractions: big page title over hero */
.hero-title { position: absolute; top: 50%; left: calc(50% + 110px); transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 400; font-size: 60px; letter-spacing: 2px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.35); text-align: center; }

/* ===== Sections ===== */
.band { width: 100%; }
    .band.white { background: #fff; }
    .band.blue { background: var(--lt-blue); }

.band-inner { max-width: var(--page); margin: 0 auto; display: flex; gap: 60px; align-items: center; justify-content: center; padding: 100px; }

/* ---- Intro (video + text) ---- */
.intro .video { position: relative; width: 541px; max-width: 100%; border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
    .intro .video img { width: 100%; height: auto; }
.intro .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
    .intro .play svg { width: 84px; height: 84px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }

.intro .copy { width: 541px; max-width: 100%; font-size: 20px; line-height: 1.35; color: #000; }
    .intro .copy p { margin: 0 0 1em; }
        .intro .copy p:last-child { margin-bottom: 0; }

/* ===== Cards (4 options) ===== */
.options { align-items: stretch; gap: 40px; flex-wrap: wrap; }
.card { width: 250px; min-height: 300px; background: #fff; border-radius: 25px; border: 3px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; padding: 16px 16px 16px; text-align: center; text-decoration: none; color: #000; transition: border-color .15s ease, box-shadow .15s ease; }
    a.card, .card.clickable { cursor: pointer; }
        a.card:hover, .card.clickable:hover { border-color: var(--hot-pink); box-shadow: 0 6px 18px rgba(0,0,0,.08); }

    .card .icon { height: 96px; display: flex; align-items: center; justify-content: center; }
        .card .icon svg { width: 72px; height: 72px; }
        .card .icon img { max-width: 200px; max-height: 137px; width: auto; height: auto; }

    .card h3 { font-family: var(--font-ui); font-weight: 700; font-size: 20px; margin: 0; color: #000; }
    .card p { margin: 4px 0 0; font-size: 16px; line-height: 1.35; }
    .card .link { color: var(--active-link); text-decoration: underline; }
    .card.blurb > .icon { margin: 30px 0; }
    .card.blurb p { font-size: 15px; }

/* ===== Slide-down forms ===== */
.form-band { background: var(--lt-blue); overflow: hidden; max-height: 0; transition: max-height .45s ease; }
    .form-band.open { max-height: 1400px; }

.form-wrap { max-width: 800px; margin: 0 auto; padding: 40px 60px; }
    .form-wrap h2 { font-family: var(--font-ui); font-weight: 700; font-size: 36px; color: var(--ink); text-align: center; margin: 0 0 18px; }

/* Floating-label fields (x-field pattern, matching BiologicsSite) */
x-row { display: flex; gap: 20px; margin-bottom: 20px; }
    x-row > x-field { flex: 1; }
x-field { position: relative; display: block; height: 56px; background: var(--form-fill); border: 1px solid var(--form-frame); border-radius: 10px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
    x-field.area { height: auto; overflow: visible; }
    x-field > label { position: absolute; left: 15px; top: 50%; font-family: var(--font-ui); font-size: 12px; color: var(--field-text); transform-origin: left center; transform: translateY(-50%) scale(1.34); transition: top .2s ease, transform .2s ease; pointer-events: none; white-space: nowrap; }
        x-field.area > label { top: 20px; transform: translateY(0) scale(1.34); }
        x-field > label > x-req { color: var(--hot-pink); margin-left: 2px; transition: opacity .2s ease; }
    x-field > input, x-field > select, x-field > textarea { width: 100%; height: 100%; border: none; outline: none; background: none; font-family: var(--font-ui); font-size: 16px; color: #000; padding: 22px 15px 4px; }
        x-field > textarea { min-height: 148px; padding-top: 30px; resize: vertical; }
    x-field.sm-lbl > label, x-field:has(input:-webkit-autofill) > label { top: 9px; transform: translateY(0) scale(1); }
        x-field.sm-lbl > label > x-req, x-field:has(input:-webkit-autofill) > label > x-req { opacity: 0; }
    x-field:focus-within { border-color: var(--turquoise); box-shadow: inset 0 0 0 1px var(--turquoise); }
    x-field > .masked-phone { display: flex; height: 100%; }
        x-field > .masked-phone > input { height: 100%; border: none; outline: none; background: none; font-family: var(--font-ui); font-size: 16px; color: #000; padding: 22px 15px 4px; }
        x-field > .masked-phone > .cc { flex: none; width: 64px; padding-left: 4px; padding-right: 4px; text-align: center; border-right: 1px solid var(--form-frame); }
        x-field > .masked-phone > .num { flex: 1 0 0; min-width: 0; }
    x-field:has(> .masked-phone) > label { left: 79px; } /* clears the country-code box */

.pref-row { display: flex; gap: 40px; justify-content: center; margin-bottom: 20px; font-family: var(--font-ui); font-weight: 600; font-size: 18px; }
    .pref-row label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
    .pref-row input { width: 20px; height: 20px; accent-color: var(--turquoise); }

.btn-submit { display: block; margin: 6px auto 0; min-width: 150px; background: var(--hot-pink); color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: 20px; border: 0; border-radius: 10px; padding: 16px 20px; cursor: pointer; }
    .btn-submit:hover { filter: brightness(1.05); }

/* ===== Attractions carousel sections ===== */
.attraction .carousel { position: relative; width: 541px; max-width: 100%; height: 334px; border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
    .attraction .carousel img { width: 100%; height: 100%; object-fit: cover; }
.attraction .arrow { position: absolute; right: 42px; top: 50%; transform: translateY(-50%); width: 72px; height: 72px; border: 0; background: transparent; cursor: pointer; padding: 0; }
    .attraction .arrow svg { width: 72px; height: 72px; }

.attraction .listbox { width: 541px; max-width: 100%; padding: 10px; }
.attraction h2 { font-family: var(--font-display); font-weight: 500; font-size: 48px; line-height: 1.05; margin: 0 0 14px; }
.attraction.pink h2 { color: var(--hot-pink); }
.attraction.teal h2 { color: var(--turquoise); }

.attraction ul { list-style: disc; margin: 0; padding-left: 28px; font-size: 24px; line-height: 1.5; color: #000; }
    .attraction ul li { transition: none; }
        .attraction ul li.active { font-weight: 700; }

/* ===== Video lightbox ===== */
.video-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
    .video-modal.open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.video-modal-inner { position: relative; width: 100%; max-width: 960px; }
.video-frame { position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */ background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
    .video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-modal-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border: 0; background: transparent; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* ===== Footer ===== */
.contact-info { background: var(--turquoise); color: #fff; text-align: center; padding: 30px 20px; font-family: var(--font-ui); font-weight: 600; font-size: 16px; }
    .contact-info a { color: #fff; text-decoration: underline; }

/* ===== Thanks ===== */
.thanks { max-width: 800px; margin: 0 auto; padding: 90px 40px; text-align: center; }
    .thanks h1 { font-family: var(--font-ui); color: var(--hot-pink); font-size: 40px; margin: 0 0 16px; }
    .thanks p { font-size: 20px; line-height: 1.4; }
    .thanks .back { display: inline-block; margin-top: 24px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .band-inner { flex-direction: column; padding: 40px 20px; gap: 30px; align-items: center; }
    .intro .video, .intro .copy,
    .attraction .carousel, .attraction .listbox { width: 100%; max-width: 520px; }
    /* keep image above text on every attraction row */
    .attraction { flex-direction: column !important; }
        .attraction .carousel { order: 0; }
        .attraction .listbox { order: 1; }
    .options { gap: 24px; }
}

@media (max-width: 640px) {
    /* Stack the banner: logo + WMDA row on top, white IDRC box below */
    .hero { height: auto; min-height: 312px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding: 24px 16px; }
    .hero-logo, .hero-wmda, .hero-badge, .hero-title { position: static; transform: none; }
    .hero-logo { width: auto; padding: 0; }
        .hero-logo img { width: 72px; height: 96px; }
    .hero-wmda { width: 150px; height: 64px; }
    .hero-badge { flex-basis: 100%; width: 100%; max-width: 340px; margin: 4px auto 0; padding: 16px 20px; }
    .hero-title { flex-basis: 100%; font-size: 40px; }
    x-row { flex-direction: column; }
    .form-wrap { padding: 30px 20px; }
    .attraction .carousel { height: 240px; }
    .attraction h2 { font-size: 36px; }
    .attraction ul { font-size: 20px; }
}
