:root {
    --cream: #fbfbf8;
    --cream-2: #f2f6ee;
    --surface: #fff;
    --deep: #1e3d29;
    --deep-2: #12281b;
    --primary: #2d5a3c;
    --primary-light: #3d754e;
    --sage: #678c70;
    --sage-2: #a2bfa9;
    --sage-card: #eaf3ec;
    --line: #dbe4da;
    --ink: #1b2920;
    --muted: #5e6f63;
    --danger: #dc3545;
    --shadow: 0 22px 60px rgba(27, 61, 43, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font: 15px/1.55 Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; }
[hidden] { display: none !important; }

.topbar-wrap { position: sticky; z-index: 50; top: 0; padding: 4px 0; pointer-events: none; }
.nav-register {
    width: min(1260px, calc(100% - 20px)); height: 54px; margin: 2px auto 0; padding: 0 20px;
    border: 1px solid rgba(27, 61, 43, .12); border-radius: 16px; background: rgba(251, 251, 248, .95);
    box-shadow: 0 10px 35px rgba(20, 48, 31, .08); backdrop-filter: blur(20px) saturate(160%);
    display: flex; align-items: center; justify-content: space-between; pointer-events: auto;
}
.brand { display: flex; flex-direction: column; color: var(--deep-2); }
.brand-title { font: 700 22px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .04em; }
.brand-sub { margin-top: 4px; color: var(--primary); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.navlinks { display: flex; align-items: center; gap: 30px; font-size: 15.5px; font-weight: 600; }
.navlinks a { position: relative; }
.navlinks a::after { position: absolute; right: 100%; bottom: -4px; left: 0; height: 2px; content: ""; background: var(--primary); transition: right .25s; }
.navlinks a:hover { color: var(--primary); }
.navlinks a:hover::after { right: 0; }

.btn-pine { color: #fff; background: linear-gradient(135deg, #3d754e, #1b3d2b); transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; }
.btn-pine:hover { background: linear-gradient(135deg, #48885b, #142e20); box-shadow: 0 12px 28px rgba(27, 61, 43, .22); transform: translateY(-1px); }
.back-button { min-height: 38px; padding: 8px 15px; border-radius: 12px; display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.back-button i { font-size: 11px; }

.register-container { width: min(1260px, calc(100% - 20px)); margin: 34px auto 75px; }
.stepper { min-height: 42px; margin-bottom: 21px; display: flex; align-items: center; }
.step { display: flex; align-items: center; gap: 9px; color: rgba(94, 111, 99, .55); font-size: 14px; font-weight: 700; white-space: nowrap; }
.step-badge { width: 28px; height: 28px; border-radius: 50%; color: var(--muted); background: #e2ebe0; display: grid; place-items: center; font-size: 12px; }
.step.is-active { color: var(--deep-2); }
.step.is-active .step-badge, .step.is-complete .step-badge { color: #fff; background: var(--primary); }
.step-line { height: 2px; margin: 0 16px; background: var(--line); flex: 1; }
.step-line span { display: block; width: 0; height: 100%; background: var(--primary); transition: width .35s; }
.register-container.is-details .step-line span { width: 100%; }

.portal-card { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.portal-banner { padding: 28px 32px; color: #fff; background: var(--deep); }
.banner-topline { margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.banner-pill { padding: 5px 13px; border-radius: 999px; color: var(--deep-2); background: var(--sage-card); font-size: 12px; font-weight: 800; }
.portal-banner h1 { margin: 7px 0 0; color: #fff; font: 700 clamp(25px, 3vw, 32px)/1.15 "Cormorant Garamond", Georgia, serif; }
.portal-banner p { max-width: 980px; margin: 7px 0 0; color: #dce8df; font-size: 13.5px; }
.auth-tabs { padding: 4px; border: 1px solid #2b5238; border-radius: 12px; background: rgba(18, 40, 27, .8); display: inline-flex; align-items: center; gap: 4px; }
.auth-tab { padding: 9px 15px; border-radius: 9px; color: var(--sage-2); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-tab.is-active { color: var(--deep); background: #fff; box-shadow: 0 2px 7px rgba(0, 0, 0, .1); }
.auth-tab-disabled:hover { color: #fff; }
.returning-note { padding: 8px 11px; border: 1px solid #466a50; border-radius: 9px; background: #173522; }

.auth-content, .details-content { padding: 38px 40px; }
.section-block + .section-block { margin-top: 35px; }
.section-kicker { margin: 0 0 15px; color: var(--deep-2); font-size: 12px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
em { color: #ef4b5a; font-style: normal; }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.type-card { min-height: 180px; padding: 20px; border: 2px solid var(--line); border-radius: 17px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; transition: border .2s, background .2s, box-shadow .2s; }
.type-card:hover { border-color: var(--primary); background: rgba(234, 243, 236, .5); }
.type-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.type-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.type-icon { width: 40px; height: 40px; border-radius: 12px; color: var(--deep-2); background: var(--cream-2); display: grid; place-items: center; font-size: 18px; }
.type-check { width: 20px; height: 20px; border: 2px solid #cbd6e1; border-radius: 50%; color: transparent; background: #fff; display: grid; place-items: center; font-size: 10px; }
.type-copy { display: flex; flex-direction: column; }
.type-copy strong { color: var(--deep-2); font: 700 24px/1.2 "Cormorant Garamond", Georgia, serif; }
.type-copy small { margin-top: 6px; color: var(--muted); font-size: 14px; font-weight: 400; }
.type-card:has(input:checked) { border-color: var(--primary); background: var(--sage-card); box-shadow: 0 1px 3px rgba(27, 61, 43, .08); }
.type-card:has(input:checked) .type-icon { color: #fff; background: var(--primary); }
.type-card:has(input:checked) .type-check { border-color: var(--primary); color: #fff; background: var(--primary); }

.auth-grid, .form-grid { display: grid; gap: 16px; }
.auth-grid, .two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.four-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-span-2 { grid-column: span 2; }
.field { min-width: 0; color: var(--deep-2); font-size: 13px; font-weight: 700; }
.field > span:first-child { display: block; margin-bottom: 7px; }
.field input:not([type="checkbox"]), .field select, .field textarea,
.input-with-icon input { display: block; width: 100%; min-height: 47px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s; }
.field textarea { min-height: 95px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input-with-icon input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(45, 90, 60, .18); }
.input-with-icon { position: relative; display: block; }
.input-with-icon > i { position: absolute; z-index: 1; top: 50%; left: 14px; color: var(--muted); transform: translateY(-50%); }
.field .input-with-icon input { padding-left: 40px; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.field-error { display: block; margin-top: 5px; color: var(--danger); font-size: 11px; font-weight: 700; }
.field-error:empty { display: none; }
.input-validation-error { border-color: var(--danger) !important; }
.continue-button, .submit-button { width: 100%; min-height: 56px; margin-top: 26px; padding: 14px 20px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 800; }

.details-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.details-account { display: flex; align-items: center; gap: 8px; }
.details-account > span { max-width: 280px; overflow: hidden; padding: 5px 12px; border-radius: 999px; color: var(--deep-2); background: var(--sage-card); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; }
.details-account button { padding: 6px 11px; border: 1px solid #2b5238; border-radius: 8px; color: #dce8df; background: var(--deep-2); cursor: pointer; }
.details-content { display: grid; gap: 20px; }
.form-section { padding: 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--cream); }
.form-section > h2, .section-heading-row h2 { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--deep-2); font: 700 19px/1.2 "Cormorant Garamond", Georgia, serif; letter-spacing: .03em; text-transform: uppercase; }
.form-section > h2 > span:first-child, .section-heading-row h2 > span:first-child { display: inline-block; width: 8px; height: 20px; margin-right: 9px; border-radius: 2px; background: var(--primary); vertical-align: -4px; }
.subsection { margin-top: 22px; padding-top: 20px; border-top: 1px dashed #cfddcf; }
.first-subsection { margin-top: 0; padding-top: 0; border-top: 0; }
.subsection h3 { margin: 0 0 13px; color: var(--deep); font-size: 13px; text-transform: uppercase; }
.subsection h3 i { margin-right: 5px; }
.contact-help { margin: 11px 0 0; color: var(--primary); }
.hotel-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 18px; }
.check-line { min-height: 47px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--deep-2); background: #fff; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.check-line input, .check-card input { width: 18px; height: 18px; accent-color: var(--primary); }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.check-card { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.check-card span { display: flex; flex-direction: column; }
.check-card strong { color: var(--deep-2); font-size: 13px; }
.check-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.check-card:has(input:checked) { border-color: var(--primary); background: var(--sage-card); }
.notes-field { margin-top: 21px; }
.section-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading-row h2 { margin: 0; flex: 1; }
.compact-button { padding: 8px 13px; border-radius: 11px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.group-section { display: none; }
.group-section.is-visible { display: block; }
.member-list { margin-top: 15px; display: grid; gap: 12px; }
.member-card { padding: 16px; border: 1px solid #bdd6be; border-radius: 14px; background: #fff; }
.member-heading { margin-bottom: 13px; display: flex; justify-content: space-between; }
.member-heading strong { color: var(--deep); }
.remove-member { color: var(--danger); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.submit-help { margin: -10px 0 0; color: var(--muted); text-align: center; font-size: 11.5px; }

.validation-summary { margin: 0 0 18px; padding: 14px 18px; border: 1px solid #f0b7b2; border-radius: 13px; color: #a61b12; background: #fff3f2; }
.validation-summary:empty, .validation-summary.validation-summary-valid { display: none; }
.validation-summary ul { margin: 0; padding-left: 20px; }
.site-footer { padding: 28px 18px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; text-align: center; display: flex; flex-direction: column; }
.site-footer strong { color: var(--deep); font-family: "Cormorant Garamond", serif; font-size: 18px; }

.confirmation-shell { width: min(620px, calc(100% - 36px)); margin: 75px auto 110px; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.confirmation-shell h1 { color: var(--deep-2); font: 700 50px/1 "Cormorant Garamond", serif; }
.confirmation-mark { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; color: #fff; background: var(--primary); display: grid; place-items: center; font-size: 31px; }
.reference-card { margin: 26px 0 18px; padding: 18px; border-radius: 16px; background: var(--sage-card); display: flex; flex-direction: column; }
.reference-card span, .muted { color: var(--muted); font-size: 12px; }
.reference-card strong { color: var(--deep-2); font: 700 22px/1.3 ui-monospace, monospace; }
.confirmation-actions { margin-top: 25px; display: flex; justify-content: center; gap: 10px; }
.button-primary, .button-secondary { min-height: 44px; padding: 10px 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.button-primary { color: #fff; background: var(--deep); }
.button-secondary { border: 1px solid #b9ceb9; color: var(--deep); background: #fff; }

@media (max-width: 900px) {
    .navlinks { display: none; }
    .four-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .program-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-register { padding: 0 12px; }
    .back-button span { display: none; }
    .register-container { margin-top: 22px; }
    .step-label { font-size: 12px; }
    .portal-banner, .auth-content, .details-content { padding: 22px 18px; }
    .auth-tabs { width: 100%; }
    .auth-tab { padding: 8px 10px; flex: 1; font-size: 11px; }
    .type-grid, .auth-grid, .two-columns, .four-columns, .hotel-row { grid-template-columns: 1fr; }
    .field-span-2 { grid-column: auto; }
    .type-card { min-height: 160px; }
    .form-section { padding: 18px 14px; }
    .section-heading-row { flex-direction: column; }
    .section-heading-row h2 { width: 100%; }
    .details-account { width: 100%; justify-content: space-between; }
    .confirmation-shell { padding: 30px 20px; }
    .confirmation-actions { flex-direction: column; }
}
.service-summary-scroll { overflow-x: auto; margin: 24px 0; }
.service-summary { width: 100%; border-collapse: collapse; text-align: left; }
.service-summary th, .service-summary td { padding: 12px; border-bottom: 1px solid var(--line); }
