/* MDL Crew Portal – public registration page */
:root {
    --navy: #292b47;
    --navy-deep: #171a31;
    --heading: #1f2f5c;
    --green: #20b26b;
    --green-dark: #159759;
    --tint: #eef1f0;
    --ink: #25283e;
    --muted: #697080;
    --line: #dde4e1;
    --field: #f9fbfa;
    --white: #fff;
    --danger: #9b3030;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--ink); background: var(--white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Header */
.crew-header { position: sticky; top: 0; z-index: 20; height: 84px; padding: 0 max(5vw, 20px); display: flex; align-items: center; justify-content: space-between; background: var(--white); box-shadow: 0 2px 18px rgba(23, 26, 49, .08); }
.crew-brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font-size: 21px; font-weight: 800; }
.crew-brand img { width: 40px; height: 56px; object-fit: contain; }
.crew-nav { display: flex; align-items: center; gap: 28px; }
.crew-nav a { color: var(--navy); font-weight: 600; font-size: 15px; }
.crew-nav a.active { color: var(--green); }
.crew-nav__cta { padding: 11px 20px; border-radius: 22px 0 22px 0; background: var(--navy); color: #fff !important; }
.crew-nav__cta i { margin-left: 6px; color: #69dca3; }

/* Buttons */
.crew-btn { display: inline-flex; align-items: center; gap: 22px; padding: 17px 34px; border: 0; border-radius: 30px 0 30px 0; background: var(--heading); color: #fff; font: 700 17px Inter, Arial, sans-serif; cursor: pointer; transition: transform .2s, background .2s; }
.crew-btn i { color: #69dca3; font-size: 22px; transition: transform .2s; }
.crew-btn:hover { background: var(--navy-deep); transform: translateY(-2px); }
.crew-btn:hover i { transform: translateX(4px); }
.crew-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.crew-btn--lg { padding: 20px 46px; font-size: 18px; }

/* Hero: media with a curved white panel, as in the reference */
.crew-hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: var(--navy-deep); }
.crew-hero__media { position: absolute; inset: 0; }
.crew-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.crew-hero__media:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 26, 49, .82) 0%, rgba(23, 26, 49, .45) 55%, rgba(23, 26, 49, .15) 100%); }
.crew-hero:after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 120px; background: var(--white); border-radius: 0 100% 0 0 / 0 100% 0 0; }
.crew-hero__panel { position: relative; z-index: 2; width: min(1200px, 90%); margin: 0 auto; padding: 80px 0 150px; color: #fff; }
.crew-eyebrow { display: inline-block; color: #69dca3; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.crew-hero h1 { margin: 14px 0 10px; font-size: clamp(48px, 7vw, 86px); line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.crew-hero__lead { margin: 0 0 34px; font-size: clamp(24px, 3vw, 36px); font-weight: 700; line-height: 1.25; }
.crew-hero .crew-btn { background: var(--green); }
.crew-hero .crew-btn i { color: #fff; }
.crew-hero .crew-btn:hover { background: var(--green-dark); }

/* Sections */
.crew-section { padding: 90px 0; }
.crew-section--tint { background: var(--tint); }
.crew-shell { width: min(1200px, 90%); margin: 0 auto; }
.crew-shell--narrow { width: min(820px, 90%); }
.crew-title { margin: 0 0 26px; color: var(--heading); font-size: clamp(30px, 4vw, 46px); line-height: 1.15; font-weight: 800; text-transform: uppercase; text-align: center; }
.crew-title--left { text-align: left; }
.crew-subtitle { margin: -10px 0 46px; text-align: center; color: var(--muted); font-size: 18px; }
.crew-intro { text-align: center; padding-top: 50px; }
.crew-intro p { color: #444a5c; font-size: 19px; line-height: 1.7; }
.crew-intro p a { color: var(--green-dark); font-weight: 700; }
.crew-intro .crew-btn { margin-top: 18px; }
.crew-muted { color: var(--muted); }

.crew-begin { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.crew-begin p { font-size: 18px; line-height: 1.7; color: #444a5c; }
.crew-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.crew-checklist li { display: flex; gap: 15px; padding: 20px; border-radius: 12px; background: var(--white); box-shadow: 0 8px 24px rgba(28, 38, 48, .06); }
.crew-checklist i { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #e6f6ee; color: var(--green-dark); font-size: 20px; }
.crew-checklist strong { display: block; margin-bottom: 4px; color: var(--heading); }
.crew-checklist span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.crew-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.crew-steps li { position: relative; padding: 34px 26px 28px; border: 1px solid var(--line); border-radius: 16px; text-align: center; counter-increment: step; transition: transform .25s, box-shadow .25s; }
.crew-steps li:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(23, 26, 49, .1); }
.crew-steps li:before { content: counter(step); position: absolute; top: 14px; right: 18px; color: #d7dedb; font-size: 34px; font-weight: 800; }
.crew-steps i { width: 70px; height: 70px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--heading); color: #fff; font-size: 28px; }
.crew-steps h3 { margin: 20px 0 8px; color: var(--heading); font-size: 19px; }
.crew-steps p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Form */
.crew-section--form { background: linear-gradient(180deg, var(--navy) 0 340px, var(--tint) 340px); }
.crew-form-head { margin-bottom: 34px; color: #fff; text-align: center; }
.crew-form-head h2 { margin: 10px 0; font-size: clamp(32px, 4vw, 46px); text-transform: uppercase; }
.crew-form-head p { color: #cfd2df; }
.crew-form-head b, .crew-form label b { color: var(--green); }
.crew-form { display: grid; gap: 24px; }
.crew-card { margin: 0; padding: 34px 36px 36px; border: 0; border-radius: 18px; background: var(--white); box-shadow: 0 18px 45px rgba(23, 26, 49, .08); min-width: 0; }
.crew-card legend { float: left; width: 100%; display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding: 0 0 18px; border-bottom: 1px solid #edf0ef; color: var(--heading); font-size: 21px; font-weight: 800; }
.crew-card legend + * { clear: both; }
.crew-card legend span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px 0 10px 0; background: var(--green); color: #fff; font-size: 16px; }
.crew-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.crew-grid--3 { grid-template-columns: repeat(3, 1fr); }
.crew-grid--1 { grid-template-columns: 1fr; }
.crew-grid__wide { grid-column: span 2; }
.crew-form label { display: block; min-width: 0; }
.crew-form label > span { display: block; color: #3e4358; font-size: 13px; font-weight: 700; }
.crew-form input:not([type="checkbox"]):not([type="file"]), .crew-form select, .crew-form textarea { width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: var(--field); color: #282b42; font: inherit; font-size: 15px; transition: border .2s, box-shadow .2s; }
.crew-form textarea { resize: vertical; min-height: 110px; }
.crew-form input:focus, .crew-form select:focus, .crew-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(32, 178, 107, .12); background: #fff; }
.crew-form input:user-invalid, .crew-form select:user-invalid { border-color: #d77; }
.crew-hint { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.crew-subhead { margin: 30px 0 14px; color: var(--heading); font-size: 16px; }

.crew-personal { display: grid; grid-template-columns: 190px 1fr; gap: 30px; align-items: start; }
.crew-photo { position: relative; text-align: center; cursor: pointer; }
.crew-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.crew-photo__preview { width: 190px; height: 220px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 2px dashed #c6d3cd; border-radius: 16px; background: var(--field) center / cover no-repeat; color: var(--muted); transition: border-color .2s; }
.crew-photo:hover .crew-photo__preview { border-color: var(--green); }
.crew-photo__preview i { font-size: 34px; color: var(--green); }
.crew-photo__preview em { font-style: normal; font-weight: 700; font-size: 14px; }
.crew-photo__preview.has-photo { border-style: solid; border-color: var(--green); }
.crew-photo__preview.has-photo i, .crew-photo__preview.has-photo em { display: none; }
.crew-photo small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.crew-chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.crew-chips > span { width: 100%; color: #3e4358; font-size: 13px; font-weight: 700; }
.crew-chips label { cursor: pointer; }
.crew-chips input { position: absolute; opacity: 0; }
.crew-chips em { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 20px; font-style: normal; font-size: 14px; color: #444a5c; transition: all .2s; }
.crew-chips input:checked + em { border-color: var(--green); background: #e6f6ee; color: var(--green-dark); font-weight: 700; }
.crew-chips input:focus-visible + em { box-shadow: 0 0 0 3px rgba(32, 178, 107, .25); }

.crew-file { position: relative; display: flex !important; align-items: center; gap: 16px; padding: 16px 18px; border: 1px dashed #c6d3cd; border-radius: 10px; background: var(--field); cursor: pointer; transition: border-color .2s; }
.crew-file:hover, .crew-file.has-file { border-color: var(--green); }
.crew-file > i { font-size: 26px; color: var(--green); }
.crew-file > span { flex: 1; min-width: 0; }
.crew-file strong { display: block; color: var(--heading); }
.crew-file em { display: block; overflow: hidden; color: var(--muted); font-size: 13px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.crew-file.has-file em { color: var(--green-dark); font-weight: 600; }
.crew-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.crew-file b { padding: 9px 14px; border-radius: 6px; background: var(--heading); color: #fff; font-size: 13px; white-space: nowrap; }
.crew-file--inline { margin-top: 8px; padding: 9px 9px 9px 14px; }

.crew-rows { display: grid; gap: 14px; margin-top: 14px; }
.crew-row { position: relative; display: grid; gap: 14px; padding: 18px 50px 18px 18px; border-radius: 12px; background: #f6f8f7; }
.crew-row--doc { grid-template-columns: 1fr 1.6fr; }
.crew-row--sea { grid-template-columns: repeat(4, 1fr); }
.crew-row--edu { grid-template-columns: 2fr 2fr 1fr; }
.crew-row__remove { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #fff; color: var(--danger); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.crew-add { margin-top: 14px; padding: 11px 16px; border: 1px solid var(--green); border-radius: 8px; background: #fff; color: var(--green-dark); font: 700 14px Inter, Arial, sans-serif; cursor: pointer; }
.crew-add:hover { background: #e6f6ee; }

.crew-declaration { display: flex !important; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 18px; border-radius: 10px; background: #f6f8f7; cursor: pointer; }
.crew-declaration input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--green); }
.crew-declaration span { font-weight: 500 !important; font-size: 14px !important; line-height: 1.6; }

.crew-submit { display: grid; justify-items: center; gap: 16px; padding: 10px 0 0; }
.crew-progress { width: min(420px, 100%); height: 8px; border-radius: 8px; background: #dbe3df; overflow: hidden; }
.crew-progress span { display: block; width: 0; height: 100%; background: var(--green); transition: width .2s; }

.crew-alert { margin: 0 0 24px; padding: 18px 22px; border-radius: 12px; background: #fff0f0; color: var(--danger); box-shadow: 0 10px 30px rgba(23, 26, 49, .08); }
.crew-alert ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.7; }
.crew-success { padding: 60px 30px; border-radius: 18px; background: var(--white); text-align: center; box-shadow: 0 18px 45px rgba(23, 26, 49, .08); }
.crew-success > i { font-size: 64px; color: var(--green); }
.crew-success h3 { margin: 16px 0 8px; color: var(--heading); font-size: 30px; }
.crew-success p { margin: 0 0 28px; color: #444a5c; font-size: 17px; line-height: 1.7; }
.crew-success strong { color: var(--green-dark); }
.crew-honeypot { position: absolute !important; left: -9999px !important; }

/* FAQ */
.crew-faq { display: grid; gap: 12px; }
.crew-faq details { border-radius: 12px; background: var(--white); box-shadow: 0 8px 24px rgba(28, 38, 48, .05); }
.crew-faq summary { padding: 20px 24px; color: var(--heading); font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.crew-faq summary::-webkit-details-marker { display: none; }
.crew-faq summary:after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; }
.crew-faq details[open] summary:after { content: "–"; }
.crew-faq p { margin: 0; padding: 0 24px 22px; color: #505766; line-height: 1.7; }

.crew-footer { padding: 26px 20px; text-align: center; background: var(--navy-deep); color: #aeb3c5; }

/* Responsive */
@media (max-width: 1100px) {
    .crew-row--sea { grid-template-columns: repeat(2, 1fr); }
    .crew-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .crew-begin { grid-template-columns: 1fr; gap: 30px; }
    .crew-grid--3 { grid-template-columns: 1fr 1fr; }
    .crew-grid__spacer { display: none; }
    .crew-personal { grid-template-columns: 1fr; justify-items: center; }
    .crew-personal .crew-grid { width: 100%; }
    .crew-nav a:not(.active):not(.crew-nav__cta) { display: none; }
}
@media (max-width: 640px) {
    .crew-header { height: 70px; padding: 0 16px; }
    .crew-brand span { display: none; }
    .crew-nav { gap: 14px; }
    .crew-hero { min-height: 480px; }
    .crew-hero:after { height: 70px; }
    .crew-hero__panel { padding: 60px 0 110px; }
    .crew-section { padding: 60px 0; }
    .crew-checklist, .crew-steps, .crew-grid, .crew-grid--3, .crew-row--doc, .crew-row--sea, .crew-row--edu { grid-template-columns: 1fr; }
    .crew-grid__wide { grid-column: auto; }
    .crew-card { padding: 24px 18px; }
    .crew-row { padding: 16px 16px 16px; padding-top: 48px; }
    .crew-btn { padding: 15px 26px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .crew-btn, .crew-steps li { transition: none; }
}
