.registration-page {
    --registration-navy: #111e48;
    --registration-green: #0ab888;
    --registration-mint: #72e6bd;
    --registration-cyan: #06a9d6;
}
.registration-shell {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 28px 24px 42px;
    background: radial-gradient(ellipse at 100% 8%, #1b5366 0, transparent 45%), radial-gradient(ellipse at 0 90%, #143d56 0, transparent 45%), #111e48;
}
.registration-shell::before, .registration-shell::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 620px;
    height: 620px;
    border: 1px solid #ffffff0d;
    border-radius: 42%;
    transform: rotate(-30deg);
    pointer-events: none;
}
.registration-shell::before { top: 180px; left: -420px; background: #69e4ba05; }
.registration-shell::after { top: -240px; right: -320px; box-shadow: 0 0 0 70px #ffffff02, 0 0 0 140px #ffffff02; }
.registration-wrap { max-width: 900px; margin: auto; }
.registration-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 272px; padding: 8px 22px 24px; color: white; }
.registration-hero-copy { position: relative; z-index: 1; }
.registration-wordmark { display: inline-flex; align-items: baseline; font-size: 31px; font-weight: 800; line-height: 1; letter-spacing: -1.5px; }
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--registration-mint); margin-left: 4px; }
.program-label { margin: 14px 0 13px; font-size: 10px; font-weight: 600; letter-spacing: 2.4px; color: #c6dcdf; }
.registration-hero h1 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -1.7px; line-height: 1.12; margin: 0 0 10px; font-weight: 800; }
.registration-hero h1 span { color: var(--registration-mint); }
.hero-tagline { margin: 0; font-size: 15px; color: #e0e9f4; }
.hero-description { margin: 14px 0 0; font-size: 12px; line-height: 1.8; color: #aabbd2; }
.ambassador-art { width: 290px; height: auto; flex: 0 0 290px; align-self: flex-end; margin-bottom: -24px; }
.registration-card { background: #fff; border: 1px solid #ffffff99; border-radius: 18px; box-shadow: 0 24px 70px #020d2a40; overflow: hidden; }
.registration-progress { padding: 26px 38px 22px; background: #fbfdfd; border-bottom: 1px solid #edf1f4; }
.step-list { display: flex; list-style: none; margin: 0; padding: 0; }
.step-list li { flex: 1; position: relative; min-width: 0; }
.step-list li:not(:last-child)::after { content: ""; position: absolute; top: 17px; height: 2px; background: #e3e9ed; left: calc(50% + 24px); width: calc(100% - 48px); }
.step-list li.is-complete::after { background: var(--registration-green); }
.step-button { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 8px; border: 0; padding: 0; background: transparent; color: #788698; font-size: 11px; font-weight: 600; cursor: pointer; }
.step-button:disabled { cursor: default; }
.step-number { display: grid; place-items: center; width: 36px; height: 36px; background: #edf1f5; border-radius: 50%; color: #69788b; font-size: 12px; }
.step-button[aria-current="step"] { color: #087d63; }
.step-button[aria-current="step"] .step-number { background: var(--registration-green); color: white; box-shadow: 0 0 0 5px #0ab88813; }
.is-complete .step-number { background: #e1f7ef; color: #087d63; }
.registration-card-body { padding: 26px 44px 30px; }
.form-meta { display: flex; justify-content: space-between; gap: 14px; color: #8290a1; font-size: 10px; margin-bottom: 17px; }
#step-status { color: #087d63; font-weight: 600; letter-spacing: .3px; }
.required-star { color: #c83a53; }
.step-heading { margin-bottom: 25px; }
.step-heading h2 { margin: 0 0 5px; font-size: 23px; line-height: 1.3; letter-spacing: -.65px; color: var(--registration-navy); }
.step-heading p { margin: 0; font-size: 12px; color: #7a8798; }
.registration-step { scroll-margin-top: 120px; }
.registration-step + .registration-step { margin-top: 30px; }
.wizard-ready .registration-step + .registration-step { margin-top: 0; }
.registration-card .form-grid { gap: 18px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.registration-card .field { min-width: 0; gap: 7px; }
.registration-card .field label, .registration-card legend { font-size: 11px; font-weight: 600; color: #33445d; }
.registration-card .field input:not([type="checkbox"]), .registration-card .field textarea, .registration-card .field select {
    border: 1px solid #dee6ec; border-radius: 6px; padding: 11px 13px; min-height: 43px;
    background: #fbfcfd; color: #20314a; font-size: 12px; transition: border-color .15s, box-shadow .15s;
}
.registration-card .field input::placeholder, .registration-card .field textarea::placeholder { color: #8c99a9; opacity: 1; }
.registration-card .field textarea { min-height: 82px; }
.registration-card .field input:focus, .registration-card .field textarea:focus, .registration-card .field select:focus { outline: none; border-color: #0a9e7b; box-shadow: 0 0 0 3px #0ab88818; background: white; }
.registration-card .field [aria-invalid="true"] { border-color: #c83a53; }
.registration-card .field-error { font-size: 11px; margin: 0; }
.registration-card .skill-box { border: none; padding: 0; margin: 0; }
.registration-card .skill-box legend { padding: 0; margin-bottom: 4px; }
.optional-label { color: #8290a1; font-weight: 400; }
.registration-card .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.registration-card .checkbox-item { background: #fbfcfd; border-radius: 7px; font-size: 12px; padding: 12px; font-weight: 500; }
.registration-card .checkbox-item:has(input:checked) { border-color: #83d9bd; background: #f0fbf7; }
.registration-card input[type="checkbox"] { accent-color: #099f79; width: 16px; height: 16px; flex: 0 0 16px; }
.registration-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #edf1f4; }
.action-hint { color: #8a97a7; font-size: 10px; }
.registration-card .next-button { margin-left: auto; gap: 18px; padding: 12px 22px; border-radius: 7px; background: linear-gradient(110deg, #08aa80, #069fb9); color: white; font-size: 12px; box-shadow: 0 5px 12px #079e8020; white-space: nowrap; }
.next-button span { font-size: 17px; line-height: 1; }
.back-button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 0; background: transparent; border: 0; font-size: 12px; font-weight: 600; color: #5d6d83; cursor: pointer; }
.registration-page button:focus-visible, .registration-page a:focus-visible { outline: 3px solid #06a9d6; outline-offset: 4px; }
.registration-card [hidden] { display: none !important; }
.registration-footnote { margin: 24px 0 0; text-align: center; color: #c4d2e5; font-size: 11px; line-height: 1.9; }
.registration-footnote span { color: #859bb8; font-size: 10px; }
.application-review { margin-bottom: 24px; border: 1px solid #e2eae9; border-radius: 8px; overflow: hidden; }
.review-section { padding: 14px 16px; background: #fbfdfc; }
.review-section + .review-section { border-top: 1px solid #e2eae9; }
.review-heading { display: flex; align-items: center; justify-content: space-between; }
.review-heading h3 { font-size: 12px; margin: 0; color: #20314a; }
.review-heading button { background: transparent; border: 0; padding: 4px 8px; color: #087d63; cursor: pointer; font-size: 11px; }
.review-section dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 6px 16px; margin: 10px 0 0; font-size: 11px; }
.review-section dt { color: #748196; }
.review-section dd { margin: 0; color: #33445d; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 820px) {
    .registration-hero { padding-left: 6px; padding-right: 6px; }
    .ambassador-art { width: 235px; flex-basis: 235px; }
    .registration-card-body { padding: 24px 28px; }
}
@media (max-width: 600px) {
    .registration-shell { padding: 20px 14px 30px; }
    .registration-hero { min-height: 230px; position: relative; align-items: flex-start; padding-bottom: 30px; }
    .registration-wordmark { font-size: 27px; }
    .program-label { font-size: 8px; letter-spacing: 1.5px; }
    .registration-hero h1 { font-size: 33px; max-width: 240px; }
    .registration-hero h1 span { display: block; }
    .hero-tagline { font-size: 11px; }
    .hero-description { font-size: 10px; max-width: 210px; }
    .ambassador-art { position: absolute; width: 155px; right: -26px; bottom: 24px; opacity: .75; }
    .registration-card { border-radius: 12px; }
    .registration-progress { padding: 22px 8px 18px; }
    .step-number { width: 30px; height: 30px; font-size: 11px; }
    .step-button { font-size: 8px; gap: 7px; }
    .step-list li:not(:last-child)::after { top: 14px; left: calc(50% + 19px); width: calc(100% - 38px); }
    .registration-card-body { padding: 22px 20px; }
    .step-heading h2 { font-size: 21px; }
    .step-heading p { font-size: 11px; }
    .registration-card .form-grid { grid-template-columns: 1fr; gap: 16px; }
    .registration-card .field input:not([type="checkbox"]), .registration-card .field select, .registration-card .field textarea { font-size: 16px; }
    .registration-card .checkbox-grid { grid-template-columns: 1fr; }
    .action-hint { display: none; }
    .registration-card .next-button { padding: 12px 16px; }
    .registration-actions { gap: 10px; }
    .review-section dl { grid-template-columns: 1fr; gap: 3px; }
    .review-section dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .registration-page { scroll-behavior: auto; }
    .registration-page *, .registration-page *::before, .registration-page *::after { scroll-behavior: auto; transition: none !important; }
}

.field-label-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.character-count {
    color: #596574;
    font-size: 0.75rem;
    font-weight: normal;
    white-space: nowrap;
}

.phone-input-group {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 8px;
}
.phone-input-group input { min-width: 0; }

.photo-upload { display: flex; align-items: center; gap: 16px; }
.photo-upload-copy { min-width: 0; max-width: 220px; }
.photo-crop-controls strong { color: #20314a; font-size: 13px; }
.photo-upload p, .photo-crop-controls p { color: #617386; font-size: 12px; line-height: 1.4; margin: 0 0 6px; }
.photo-profile-box { position: relative; flex: 0 0 120px; width: 120px; height: 152px; overflow: hidden; border: 1px dashed #a9cebf; border-radius: 8px; background: #f0f7f4; }
.photo-profile-box:hover { border-color: #087d63; }
.photo-profile-box:focus-within { outline: 3px solid #06a9d6; outline-offset: 3px; }
.photo-placeholder { position: absolute; inset: 0 0 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #91ada2; }
.photo-placeholder svg { width: 54px; height: 54px; }
.photo-placeholder span { font-size: 10px; color: #617b70; }
.photo-profile-action { position: absolute; bottom: 0; left: 0; right: 0; padding: 7px 4px; background: #087d63e8; color: white; text-align: center; font-size: 11px; pointer-events: none; }
.registration-card .photo-profile-box input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.photo-preview { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-editor { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 16px; padding: 12px; border: 1px solid #dee6ec; border-radius: 10px; }
.photo-crop-stage { align-self: start; border: 2px solid #099f79; border-radius: 5px; overflow: hidden; }
#picture-canvas { display: block; width: 100%; height: auto; aspect-ratio: 15 / 19; touch-action: none; cursor: grab; }
#picture-canvas:active { cursor: grabbing; }
.photo-crop-controls { display: flex; flex-direction: column; gap: 4px; }
.registration-card .photo-crop-controls input[type="range"] { width: 100%; min-height: 22px; padding: 0; border: 0; accent-color: #099f79; }
.photo-crop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.photo-crop-actions .button { border: 0; cursor: pointer; background: #087d63; color: white; padding: 10px 14px; border-radius: 6px; font-size: 12px; }
.photo-crop-actions .button:disabled { opacity: .6; }
@media (max-width: 600px) {
    .photo-upload { gap: 12px; }
    .photo-editor { grid-template-columns: 1fr; padding: 10px; }
    .photo-crop-stage { width: min(100%, 160px); justify-self: center; }
}

.photo-upload #picture-status { margin: 6px 0 0; font-size: 11px; }

.photo-dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 12px; background: white; color: #20314a; box-shadow: 0 24px 80px #132b4050; }
.photo-dialog::backdrop { background: #10263bb3; }
.photo-dialog .photo-editor { border: 0; padding: 22px; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
.photo-dialog #picture-crop-title { font-size: 16px; }
.photo-dialog #picture-crop-status { margin-top: 8px; font-size: 11px; }
body.photo-crop-open { overflow: hidden; }
@media (max-width: 600px) {
    .photo-dialog .photo-editor { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
    .photo-dialog .photo-crop-stage { width: min(100%, 180px); }
}
