@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --ink: #1b302c;
    --muted: #71807a;
    --green: #155e4b;
    --green-dark: #123c35;
    --green-light: #edf5f0;
    --line: #e5ebe6;
    --surface: #ffffff;
    --canvas: #f5f7f4;
    --orange: #e9a74b;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, select { font: inherit; }
a { color: var(--green); }
.page-width, .header-inner { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }

.site-header { background: var(--green-dark); color: #fff; }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.club-mark { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.club-mark__icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #87a89a; border-radius: 50%; color: #d7ecdf; font: 800 20px Manrope, sans-serif; }
.club-mark strong, .club-mark small { display: block; }
.club-mark strong { font: 700 14px Manrope, sans-serif; letter-spacing: .01em; }
.club-mark small { margin-top: 3px; color: #b7cfc2; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.header-contact { color: #d3e2d9; font-size: 12px; text-decoration: none; }
.header-contact strong { color: white; margin-left: 5px; }

.hero { padding: 66px 0 42px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -.055em; line-height: 1.08; }
.hero h1 span { color: var(--green); }
.hero-copy { max-width: 600px; margin: 18px 0 22px; color: #596a63; font-size: 15px; line-height: 1.7; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-meta span { padding: 8px 12px; border: 1px solid #e0e9e2; border-radius: 30px; background: #fff; color: #465850; font-size: 11px; font-weight: 600; }
.hero-meta span span { padding: 0; border: 0; background: transparent; margin-right: 4px; }

.trip-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px 52px; padding: 30px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 8px 30px #213c2810; }
.trip-card__intro h2 { margin: 0 0 12px; font-size: 23px; letter-spacing: -.04em; line-height: 1.25; }
.trip-card__intro > p:last-child { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.trip-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; align-content: center; }
.trip-detail { display: flex; align-items: center; gap: 11px; }
.detail-icon { display: grid; flex: 0 0 35px; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: var(--green-light); color: var(--green); font-size: 15px; font-weight: 700; }
.trip-detail small, .trip-detail strong { display: block; }
.trip-detail small { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.trip-detail strong { font-size: 11px; font-weight: 700; }
.travel-note { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 8px; background: #fff8ed; color: #786443; font-size: 11px; line-height: 1.6; }
.travel-note strong { color: #594322; }

.registration { padding: 62px 0 58px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 29px; letter-spacing: -.045em; }
.section-heading > p { max-width: 330px; margin: 0 0 3px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: right; }
.form-card { margin-bottom: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 4px 20px #213c2808; }
.card-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.step-number { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: var(--green-light); color: var(--green); font-size: 10px; font-weight: 700; }
.card-heading h3 { margin: 1px 0 5px; font-size: 15px; letter-spacing: -.02em; }
.card-heading p { max-width: 620px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.field-grid { display: grid; gap: 14px; }
.field-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #596a63; font-size: 10px; font-weight: 600; }
.field input, .field select { width: 100%; min-height: 41px; padding: 0 11px; border: 1px solid #dfe6e0; border-radius: 7px; outline: 0; background: #fff; color: var(--ink); font-size: 12px; font-weight: 400; }
.field input::placeholder { color: #a4b0a9; }
.field input:focus, .field select:focus { border-color: #69a08a; box-shadow: 0 0 0 3px #4c9a7620; }
.family-name-field { max-width: 420px; }
.card-heading--action { align-items: center; }
.card-heading--action > div { flex: 1; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 700; transition: background .15s, transform .15s; }
.button:focus-visible { outline: 3px solid #89bba4; outline-offset: 2px; }
.button--add { flex: 0 0 auto; border: 1px solid #cfe0d4; background: #f5faf6; color: var(--green); }
.button--add:hover { background: #eaf4ed; }
.button--add span { font-size: 16px; }
.button--remove { min-height: 32px; padding: 0 10px; border: 1px solid #f0d7d2; background: #fffafa; color: #a34a3e; }
.button--remove:hover { background: #fff0ed; }
.person-card { margin-top: 11px; padding: 18px; border: 1px solid #e8eee8; border-radius: 9px; background: #fbfcfb; }
.person-card:first-child { margin-top: 0; }
.person-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.person-card__title { color: var(--green); font-family: Manrope, sans-serif; font-size: 11px; font-weight: 800; }
.person-fields { display: grid; grid-template-columns: 1.2fr .8fr 1fr .8fr; gap: 12px; }
.companion-fields { grid-template-columns: .85fr 1.2fr 1fr .8fr; }
.room-options { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 22px; margin-top: 13px; padding-top: 13px; border-top: 1px solid #e9eee9; }
.room-partner { flex: 1 1 230px; }
.check-field { display: flex; min-height: 40px; align-items: center; gap: 8px; color: #465850; font-size: 11px; font-weight: 600; }
.check-field input { width: 16px; height: 16px; accent-color: var(--green); }
.empty-state { padding: 14px; border: 1px dashed #dbe5dc; border-radius: 8px; color: #849188; font-size: 11px; text-align: center; }

.costs-card { background: #fcfdfc; }
.cost-lines { max-width: 760px; margin-left: 44px; }
.cost-line { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #edf0ed; font-size: 11px; }
.cost-line > span { color: #56665f; }
.cost-line > strong { min-width: 94px; text-align: right; font-size: 11px; }
.cost-count { display: inline-block; margin-left: 5px; color: #8a978f; font-size: 10px; }
.cost-line--total { margin-top: 4px; border-bottom: 0; color: var(--green-dark); font-size: 13px; font-weight: 700; }
.cost-line--total strong { font-size: 16px; }
.cost-line--deposit { padding-top: 13px; border-bottom: 0; color: #66766e; }
.cost-line--balance { padding-top: 12px; border-top: 1px solid #e1e9e2; color: var(--green-dark); font-weight: 700; }
.cost-line--balance strong { color: var(--green); font-size: 14px; }
.bank-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 28px; margin: 0 0 18px 44px; }
.bank-details div { min-width: 0; }
.bank-details dt { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.bank-details dd { margin: 0; color: var(--ink); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.payment-qr { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 18px 44px; padding: 18px; border: 1px solid #e3ebe4; border-radius: 10px; background: #f9fbf9; }
.payment-qr h4 { margin: 0 0 7px; color: var(--green-dark); font: 700 13px Manrope, sans-serif; }
.payment-qr p { max-width: 470px; margin: 0; color: #56665f; font-size: 11px; line-height: 1.6; }
.payment-qr .payment-qr__note { margin-top: 8px; color: var(--muted); font-size: 10px; }
.payment-qr img { flex: 0 0 180px; width: 180px; height: 180px; border: 8px solid white; }
.payment-reminder { margin: 0 0 0 44px; color: var(--green); font-size: 11px; font-weight: 700; }
.submission-note { display: flex; gap: 15px; margin: 22px 0 17px; padding: 20px; border: 1px solid #dce9df; border-radius: 11px; background: #eef6ef; }
.submission-icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #fff; color: var(--green); font-size: 16px; }
.submission-note h3 { margin: 1px 0 6px; font-size: 13px; }
.submission-note p { margin: 0; color: #52665a; font-size: 11px; line-height: 1.7; }
.submission-note a { font-weight: 700; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-action-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.button--primary { min-height: 45px; padding-inline: 18px; background: var(--green); color: white; }
.button--primary:hover { background: #104c3c; }
.button--primary span { font-size: 16px; }
.button--print { min-height: 45px; border: 1px solid #cfe0d4; background: #fff; color: var(--green); }
.button--print:hover { background: #f5faf6; }
.button:disabled { cursor: wait; opacity: .65; }
.form-actions p { margin: 0; color: var(--muted); font-size: 10px; text-align: right; }
.form-status { margin: 14px 0 0; padding: 13px 15px; border-radius: 8px; background: #eef4f1; color: var(--green-dark); font-size: 12px; line-height: 1.6; }
.form-status--success { border: 1px solid #cfe3d3; background: #eef8f0; }
.form-status--error { border: 1px solid #f0d7d2; background: #fff3f0; color: #8d342b; }
.site-footer { padding: 20px 0; background: var(--green-dark); color: #d0ded5; font-size: 10px; }
.site-footer > div { display: flex; justify-content: space-between; gap: 16px; }
.site-footer a { color: #fff; text-decoration: none; }

@media (max-width: 760px) {
    .page-width, .header-inner { width: min(100% - 32px, 600px); }
    .hero { padding-top: 48px; }
    .trip-card { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
    .trip-details { gap: 15px; }
    .field-grid--three, .person-fields, .companion-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .section-heading > p { text-align: left; }
    .card-heading--action { flex-wrap: wrap; }
    .card-heading--action > div { min-width: calc(100% - 48px); }
    .card-heading--action .button { margin-left: 44px; }
    .cost-lines, .bank-details, .payment-qr, .payment-reminder { margin-left: 0; }
}

@media (max-width: 480px) {
    .header-inner { height: 66px; }
    .header-contact { max-width: 130px; font-size: 10px; text-align: right; }
    .header-contact strong { display: block; margin: 3px 0 0; }
    .hero { padding-top: 38px; }
    .hero-meta { gap: 6px; }
    .hero-meta span { font-size: 10px; }
    .trip-details { grid-template-columns: 1fr; }
    .registration { padding-top: 45px; }
    .form-card { padding: 18px 15px; }
    .field-grid--three, .person-fields, .companion-fields { grid-template-columns: 1fr; }
    .family-name-field { max-width: none; }
    .person-card { padding: 13px; }
    .cost-line { gap: 10px; font-size: 10px; }
    .cost-line > strong { min-width: 75px; font-size: 10px; }
    .cost-line--total strong, .cost-line--balance strong { font-size: 13px; }
    .cost-count { display: block; margin: 4px 0 0; }
    .bank-details { grid-template-columns: 1fr; gap: 12px; }
    .payment-qr { align-items: flex-start; flex-direction: column; }
    .payment-qr img { align-self: center; }
    .form-actions, .site-footer > div { align-items: flex-start; flex-direction: column; }
    .form-actions { align-items: stretch; }
    .form-action-buttons { flex-direction: column; }
    .form-action-buttons .button { width: 100%; }
    .form-actions p { text-align: left; }
    .site-footer > div { gap: 8px; }
}

@media print {
    :root { background: #fff; }
    body { min-width: 0; background: #fff; color: #111; font-size: 10pt; }
    .page-width, .header-inner { width: 100%; }
    .site-header { background: #fff; color: #111; border-bottom: 1px solid #bbb; }
    .header-inner { height: auto; padding: 0 0 10px; }
    .club-mark, .header-contact, .club-mark small { color: #111; }
    .club-mark__icon { border-color: #555; color: #111; }
    .hero { padding: 20px 0 14px; }
    .hero h1 { font-size: 28pt; }
    .hero-copy { margin: 8px 0; font-size: 10pt; }
    .hero-meta span { border-color: #bbb; }
    .trip-card, .form-card { box-shadow: none; border-color: #bbb; break-inside: avoid; }
    .trip-card { gap: 14px; padding: 15px; }
    .trip-details { gap: 9px; }
    .registration { padding: 24px 0; }
    .section-heading { margin-bottom: 12px; }
    .form-card { margin-bottom: 9px; padding: 15px; }
    .field input, .field select { min-height: 26px; padding: 2px 3px; border: 0; border-bottom: 1px solid #888; border-radius: 0; color: #111; background: transparent; box-shadow: none; }
    .field input::placeholder { color: transparent; }
    .field select { appearance: none; }
    .button, .header-contact, .site-footer, .form-actions, .submission-note { display: none !important; }
    .person-card { padding: 10px; background: #fff; break-inside: avoid; }
    .people-section, .costs-card, .payment-card { break-inside: auto; }
    .cost-line { padding: 6px 0; }
    .bank-details { gap: 8px 18px; }
    a { color: #111; text-decoration: none; }
    @page { margin: 14mm; }
}