	:root {
  --forest: #163f35;
  --forest-dark: #0d2f28;
  --sage: #7f9b6c;
  --olive: #a7a33d;
  --cream: #f7f1e5;
  --paper: #fffdf8;
  --ink: #17342e;
  --muted: #66766f;
  --line: #dfe5dd;
  --danger: #a33c34;
  --shadow: 0 28px 80px rgba(24, 57, 48, 0.14);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 17px; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.public-page { min-height: 100vh; padding: 28px 18px; position: relative; overflow-x: hidden; background: linear-gradient(145deg, #f8f2e7 0%, #edf2e9 100%); }
.ambient { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .6; }
.ambient-one { width: 420px; height: 420px; top: -180px; left: -160px; background: radial-gradient(circle, rgba(165,161,61,.25), transparent 68%); }
.ambient-two { width: 560px; height: 560px; right: -250px; bottom: -240px; background: radial-gradient(circle, rgba(23,81,66,.2), transparent 68%); }
.form-shell { width: min(100%, 760px); margin: 0 auto; background: rgba(255,253,248,.96); border: 1px solid rgba(255,255,255,.9); border-radius: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.form-shell::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--forest), var(--olive), var(--sage)); }
.brandbar { height: 84px; padding: 8px 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0eb; }
.brand-logo { width: 78px; height: 67px; object-fit: contain; object-position: center; border-radius: 8px; box-shadow: 0 3px 10px rgba(13,47,40,.13); }
.share-link { border: 1px solid #cfdad2; background: transparent; color: var(--forest); border-radius: 100px; padding: 10px 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: .2s ease; }
.share-link:hover { background: #edf3ef; border-color: var(--forest); transform: translateY(-1px); }
.share-link span { font-size: 21px; line-height: 1; }
.progress-wrap { padding: 15px 48px 0; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.progress-track { height: 4px; background: #e7ebe6; border-radius: 10px; margin-top: 10px; overflow: hidden; }
.progress-track span { display: block; height: 100%; width: 25%; border-radius: inherit; background: var(--olive); transition: width .35s ease; }
.affinity-meter { margin-top: 11px; padding: 10px 12px; border: 1px solid; border-radius: 12px; transition: .25s ease; }
.affinity-meter[hidden] { display: none; }
.affinity-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.affinity-heading span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.affinity-heading strong { font-family: "Playfair Display", serif; font-size: 24px; line-height: 1; }
.affinity-track { height: 7px; margin: 7px 0 6px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.75); }
.affinity-track span { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .3s ease, background .3s ease; }
.affinity-meter small { display: block; font-size: 11px; line-height: 1.35; }
.affinity-meter.affinity-low { border-color: #e2c55c; background: #fff5c9; color: #705609; }
.affinity-meter.affinity-low .affinity-track span { background: #d5a90e; }
.affinity-meter.affinity-high { border-color: #8bc3a0; background: #e3f4e8; color: #1f6840; }
.affinity-meter.affinity-high .affinity-track span { background: #279158; }
.form-step { display: none; padding: 27px 60px 34px; animation: reveal .38s ease both; }
.form-step.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.intro-step { text-align: center; padding-top: 22px; }
.opportunity-badge { width: fit-content; margin: 0 auto 14px; padding: 7px 13px; display: flex; align-items: center; gap: 9px; border: 1px solid #d7dfce; border-radius: 100px; background: #f4f7ee; color: var(--forest); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.opportunity-badge span { padding-right: 9px; border-right: 1px solid #ccd6c7; color: #777c2e; font-weight: 800; }
.opportunity-badge strong { font-size: 11px; }
.hero-subtitle { max-width: 570px; margin: -4px auto 13px; color: var(--forest); font-size: 19px; font-weight: 800; line-height: 1.35; }
.club-intro { max-width: 610px; margin: 0 auto 17px; color: #536760; font-size: 15px; line-height: 1.5; }
.club-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 15px; text-align: left; }
.club-benefits > div { min-height: 82px; padding: 13px; display: flex; align-items: center; gap: 10px; border: 2px solid #d4dfd3; border-radius: 14px; background: #fff; box-shadow: 0 5px 14px rgba(22,63,53,.06); }
.club-benefits span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: #eaf0e4; color: var(--forest); font-size: 15px; font-weight: 900; }
.club-benefits strong { color: var(--forest-dark); font-size: 16px; line-height: 1.2; }
.exclusivity-card { margin: 0 0 16px; padding: 15px 17px; display: grid; grid-template-columns: 76px 1fr; gap: 15px; align-items: center; text-align: left; border: 1px solid rgba(216,215,127,.55); border-radius: 16px; background: linear-gradient(135deg, var(--forest-dark), var(--forest)); color: white; box-shadow: 0 12px 25px rgba(22,63,53,.14); }
.simple-exclusivity-card { grid-template-columns: 1fr; text-align: center; padding: 14px 20px; }
.simple-exclusivity-card h3 { margin-bottom: 5px; }
.simple-exclusivity-card p { max-width: 560px; margin: 0 auto; }
.threshold-mark { width: 72px; height: 72px; display: grid; place-content: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; text-align: center; background: rgba(255,255,255,.08); }
.threshold-mark strong, .threshold-mark span { display: block; }
.threshold-mark strong { font-family: "Playfair Display", serif; color: #e5e58f; font-size: 24px; line-height: 1; }
.threshold-mark span { margin-top: 2px; color: white; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.exclusivity-card h3 { margin: 0 0 4px; color: white; font-size: 20px; }
.exclusivity-card p { margin: 0 0 7px; color: #d3e0db; font-size: 12px; line-height: 1.4; }
.minimum-rule { display: block; color: #e5e58f; font-size: 12px; line-height: 1.35; }
.premium-cta { min-height: 56px; font-size: 15px; }
.date-card { width: 70px; height: 70px; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--forest); color: white; border-radius: 19px; box-shadow: 0 10px 25px rgba(22,63,53,.2); transform: rotate(-2deg); }
.date-card strong { font-family: "Playfair Display", serif; font-size: 35px; line-height: 1; }
.date-card span { font-size: 11px; font-weight: 700; line-height: 1.25; letter-spacing: .08em; text-align: left; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 700; color: #777c2e; }
h1, h2, h3 { font-family: "Playfair Display", serif; margin-top: 0; color: var(--forest-dark); }
h1 { font-size: clamp(37px, 6vw, 51px); line-height: 1.03; margin-bottom: 15px; letter-spacing: -.035em; }
h1 em { color: #777c2e; font-weight: 600; }
h2 { font-size: clamp(33px, 5vw, 41px); margin-bottom: 7px; letter-spacing: -.025em; }
h3 { font-size: 29px; line-height: 1.18; }
.lead { color: #536760; font-size: 17px; line-height: 1.5; margin: 0 auto 20px; max-width: 570px; }
.section-copy { margin: -2px 0 20px; color: var(--muted); line-height: 1.45; }
.data-invite-lead { margin: 2px 0 7px; padding: 13px 15px; border-left: 5px solid #279158; border-radius: 0 12px 12px 0; background: #e3f4e8; color: #1f6840; font-family: "Playfair Display", serif; font-size: 24px; font-weight: 700; line-height: 1.2; }
.data-invite-lead[hidden] { display: none; }
.high-affinity-data #dataTitle { margin-bottom: 8px; color: #1f6840; }
.high-affinity-data #dataCopy { margin-top: 0; color: var(--forest-dark); font-size: 18px; font-weight: 800; }
.club-confirmation-data { margin: -7px 0 18px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; border: 2px solid #d6b84d; border-radius: 12px; background: #fff5c9; color: #6e5509; font-size: 13px; line-height: 1.45; }
.club-confirmation-data[hidden] { display: none; }
.club-confirmation-data strong { padding: 3px 7px; border-radius: 6px; background: #d5a90e; color: white; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; margin: 20px 0; }
.promise-grid > div { border: 1px solid var(--line); border-radius: 14px; padding: 13px; display: grid; grid-template-columns: 30px 1fr; }
.promise-grid > div > span { grid-row: 1 / 3; width: 24px; height: 24px; background: #edf2e8; color: var(--forest); border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.promise-grid strong { font-size: 15px; }
.promise-grid small { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.4; }
.primary-btn, .secondary-btn { border: 0; border-radius: 13px; min-height: 52px; padding: 0 22px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 22px; transition: .2s ease; }
.primary-btn { color: white; background: var(--forest); box-shadow: 0 10px 22px rgba(22,63,53,.17); }
.primary-btn:hover { background: var(--forest-dark); transform: translateY(-1px); }
.primary-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.public-page .primary-btn { color: #14352e; background: #f2b544; border: 2px solid #d89518; box-shadow: 0 8px 18px rgba(216,149,24,.28); animation: ctaPulse 1.35s ease-in-out infinite; }
.public-page .primary-btn:hover, .public-page .primary-btn:focus-visible { color: #102f28; background: #ffc75a; border-color: #bd7d0b; box-shadow: 0 10px 25px rgba(216,149,24,.42); }
.public-page .primary-btn:disabled { animation: none; opacity: .65; }
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 18px rgba(216,149,24,.26); }
  50% { transform: scale(1.035); box-shadow: 0 12px 30px rgba(216,149,24,.52), 0 0 0 7px rgba(242,181,68,.13); }
}
.intro-step > .primary-btn { width: min(100%, 360px); }
.microcopy { font-size: 12px; color: #84918b; margin: 13px 0 0; }
label > span, legend { display: block; font-size: 15px; font-weight: 800; margin-bottom: 6px; color: #203f36; }
label { display: block; margin-bottom: 15px; }
label small { display: block; margin-top: 7px; color: #84918b; font-size: 12px; }
.tuscany-rule { padding: 10px 12px; color: #654f16; background: #fff5d8; border-left: 4px solid #a7a33d; border-radius: 0 9px 9px 0; font-size: 13px; line-height: 1.45; }
.tuscany-rule b { color: #4c3b0d; }
input[type="text"], input[type="tel"], input[type="number"], input:not([type]) { width: 100%; min-height: 48px; border: 2px solid #9daf9f; border-radius: 11px; padding: 0 14px; color: var(--ink); background: #fffefb; outline: none; box-shadow: inset 0 1px 2px rgba(24,63,53,.035); transition: border-color .18s, box-shadow .18s; }
input:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(127,155,108,.13); }
input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(163,60,52,.1); }
.required-field > span::after { content: "  • da compilare"; color: #85892e; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.field-grid { display: grid; gap: 16px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.number-input { position: relative; }
.number-input input { padding-right: 80px; }
.number-input b { position: absolute; right: 16px; top: 17px; color: #75827d; font-size: 14px; }
.olive-range-fieldset { margin-bottom: 20px; }
.olive-range-fieldset > legend { margin-bottom: 10px; font-size: 16px; }
.olive-range-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.olive-range-card { position: relative; min-height: 142px; margin: 0; padding: 15px 10px 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; border: 2px solid #aebdad; border-radius: 16px; background: linear-gradient(180deg, #fff 0%, #f5f8f2 100%); cursor: pointer; box-shadow: 0 5px 15px rgba(22,63,53,.06); transition: .18s ease; }
.olive-range-card input { position: absolute; opacity: 0; pointer-events: none; }
.olive-range-icon { width: 54px; height: 54px; margin: 0; display: grid; place-items: center; border-radius: 50%; background: #e7eee3; font-size: 29px; line-height: 1; }
.olive-range-card strong, .olive-range-card small { display: block; }
.olive-range-card strong { color: var(--forest-dark); font-size: 16px; line-height: 1.15; }
.olive-range-card small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.olive-range-card i { position: absolute; right: 10px; top: 10px; width: 19px; height: 19px; border: 2px solid #aebbad; border-radius: 50%; }
.olive-range-card:hover { border-color: var(--forest); transform: translateY(-2px); }
.olive-range-card:has(input:checked) { border: 3px solid var(--forest); padding: 14px 9px 12px; background: #e9f2e8; box-shadow: 0 9px 22px rgba(22,63,53,.14); }
.olive-range-card:has(input:checked) .olive-range-icon { background: var(--forest); }
.olive-range-card:has(input:checked) i { border: 6px solid var(--forest); }
.olive-range-card.ineligible-range:has(input:checked) { border-color: #a33c34; background: #faece9; }
.olive-range-card.ineligible-range:has(input:checked) .olive-range-icon { background: #a33c34; }
.olive-range-card.ineligible-range:has(input:checked) i { border-color: #a33c34; }
.eligibility-message { margin-top: 10px; padding: 11px 13px; text-align: left; border-left: 4px solid var(--danger); border-radius: 0 10px 10px 0; background: #fbebe8; color: var(--danger); }
.eligibility-message[hidden] { display: none; }
.eligibility-message strong, .eligibility-message span { display: block; }
.eligibility-message strong { font-size: 15px; }
.eligibility-message span { margin-top: 2px; font-size: 13px; line-height: 1.4; }
.olive-subpanel[hidden] { display: none; }
.contributor-check-panel, .rejection-panel { min-height: 430px; padding: 25px 0 8px; text-align: center; animation: reveal .3s ease both; }
.history-mark, .rejection-mark { width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; font-size: 34px; font-weight: 800; }
.history-mark { background: #e7eee3; color: var(--forest); }
.rejection-mark { background: #f8e5e2; color: var(--danger); }
.contributor-check-panel .section-copy { max-width: 590px; margin: 0 auto 21px; }
.contributor-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; }
.contributor-type-btn { min-height: 112px; padding: 17px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px solid #bac8bd; border-radius: 15px; background: white; color: var(--forest-dark); transition: .18s ease; }
.contributor-type-btn strong { font-size: 17px; }
.contributor-type-btn span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.contributor-type-btn.historical { border-color: #7da18b; background: #e9f2ec; }
.contributor-type-btn.historical:hover, .contributor-type-btn.historical:focus-visible { border-color: var(--forest); background: #dcebe1; transform: translateY(-2px); }
.contributor-type-btn.new-contributor:hover, .contributor-type-btn.new-contributor:focus-visible { border-color: #ad7d76; background: #fbefed; transform: translateY(-2px); }
.panel-back-btn { margin-top: 5px; }
.rejection-panel > p:not(.eyebrow) { max-width: 560px; margin: 0 auto 13px; color: #556a62; font-size: 17px; line-height: 1.5; }
.rejection-panel .rejection-note { padding: 13px 15px; border-radius: 11px; background: #f7f3e8; font-size: 13px !important; }
fieldset { border: 0; padding: 0; margin: 4px 0 18px; }
.choice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-list.igp-choices { grid-template-columns: 1fr 1fr; }
.choice-card { margin: 0; padding: 15px 12px; border: 1.5px solid #dce3dd; border-radius: 13px; display: flex; align-items: center; gap: 10px; cursor: pointer; background: white; transition: .18s; }
.choice-card input, .people-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-dot { flex: 0 0 18px; height: 18px; border: 2px solid #b6c2ba; border-radius: 50%; position: relative; }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.choice-card:has(input:checked) { border-color: var(--forest); background: #f0f5f1; }
.choice-card input:checked + .radio-dot { border-color: var(--forest); }
.choice-card input:checked + .radio-dot::after { content: ""; position: absolute; inset: 3px; background: var(--forest); border-radius: 50%; }
.needs-step { padding-top: 23px; }
.survey-question { margin: 0 0 14px; padding: 14px; border: 1px solid #dbe3da; border-radius: 14px; background: #fafbf7; }
.survey-question legend { width: 100%; margin-bottom: 10px; display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; font-size: 15px; line-height: 1.3; }
.survey-question legend b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-size: 12px; }
.survey-question legend span { margin: 0; }
.survey-options { display: grid; gap: 7px; }
.survey-options.three-options { grid-template-columns: repeat(3, 1fr); }
.survey-options.priority-options { grid-template-columns: 1fr 1fr; }
.survey-options label { margin: 0; }
.survey-options input { position: absolute; opacity: 0; pointer-events: none; }
.survey-options label > span { height: 100%; min-height: 42px; margin: 0; padding: 9px 11px; display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px solid #cbd6cc; border-radius: 10px; background: white; color: #3d554d; font-size: 13px; font-weight: 700; line-height: 1.25; cursor: pointer; transition: .16s ease; }
.survey-options label:hover > span { border-color: var(--sage); }
.survey-options input:checked + span { border: 2px solid var(--forest); padding: 8.5px 10.5px; background: #e9f2ec; color: var(--forest-dark); box-shadow: 0 4px 12px rgba(22,63,53,.1); }
.survey-options input:disabled + span { opacity: .43; cursor: not-allowed; }
.selection-help { margin: -2px 0 10px 37px; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.selection-help strong { color: #777c2e; }
.affinity-inline { margin: 17px 0 4px; padding: 15px 17px; border: 2px solid; border-radius: 15px; box-shadow: 0 7px 18px rgba(22,63,53,.08); transition: .25s ease; }
.affinity-inline > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.affinity-inline > div:first-child span { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.affinity-inline > div:first-child strong { font-family: "Playfair Display", serif; font-size: 32px; line-height: 1; }
.affinity-inline-track { height: 9px; margin: 10px 0 8px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.8); }
.affinity-inline-track span { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .3s ease, background .3s ease; }
.affinity-inline p { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.4; }
.affinity-inline.affinity-low { border-color: #e2c55c; background: #fff5c9; color: #705609; }
.affinity-inline.affinity-low .affinity-inline-track span { background: #d5a90e; }
.affinity-inline.affinity-high { border-color: #79b990; background: #e3f4e8; color: #1f6840; }
.affinity-inline.affinity-high .affinity-inline-track span { background: #279158; }
.participation-fieldset { padding: 17px; border: 2px solid #becbbf; border-radius: 18px; background: #f6f8f3; }
.dinner-invite-banner { margin: -5px 0 18px; padding: 10px 15px; display: flex; align-items: center; gap: 14px; border: 1px solid #d9dfd2; border-radius: 15px; background: #f6f7ef; }
.dinner-invite-banner .date-card { width: 62px; height: 62px; flex: 0 0 62px; margin: 0; }
.dinner-invite-banner .date-card strong { font-size: 30px; }
.dinner-invite-banner > div:last-child span, .dinner-invite-banner > div:last-child strong { display: block; }
.dinner-invite-banner > div:last-child span { margin-bottom: 3px; color: #777c2e; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.dinner-invite-banner > div:last-child strong { color: var(--forest-dark); font-family: "Playfair Display", serif; font-size: 20px; }
.participation-fieldset > legend { padding: 0 8px; color: var(--forest); font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }
.people-options { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.people-card { margin: 0; min-height: 112px; border: 2px solid #9faf9f; border-radius: 16px; background: #fff; padding: 17px; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 22px; align-items: center; gap: 12px; box-shadow: 0 5px 16px rgba(22,63,53,.07); transition: .18s; }
.participant-count { width: 52px; height: 52px; margin: 0; display: grid; place-items: center; border-radius: 50%; background: #e8eee6; color: var(--forest); font-family: "Playfair Display", serif; font-size: 29px; font-weight: 700; }
.people-card strong, .people-card small { display: block; }
.people-card strong { color: var(--forest-dark); font-size: 19px; line-height: 1.15; }
.people-card small { color: var(--muted); margin-top: 5px; font-size: 13px; }
.people-card i { width: 20px; height: 20px; border: 2px solid #bcc6bf; border-radius: 50%; }
.people-card:hover { border-color: var(--forest); transform: translateY(-1px); }
.people-card:has(input:checked) { border: 3px solid var(--forest); padding: 16px; background: #e9f2ec; box-shadow: 0 8px 22px rgba(22,63,53,.15); }
.people-card:has(input:checked) .participant-count { background: var(--forest); color: white; }
.people-card:has(input:checked) i { border: 6px solid var(--forest); }
.guest-panel { margin: 15px 0 20px; padding: 17px 18px 3px; border: 2px solid #85892e; border-radius: 16px; background: #fffdf0; animation: reveal .25s ease both; }
.guest-panel-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.guest-panel-heading > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 50%; background: #85892e; color: white; font-weight: 900; }
.guest-panel-heading strong, .guest-panel-heading small { display: block; }
.guest-panel-heading strong { font-size: 18px; color: var(--forest-dark); }
.guest-panel-heading small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.child-fieldset { margin: 15px 0 18px; padding: 16px; border: 2px solid #d5c86a; border-radius: 16px; background: #fffced; }
.child-fieldset > legend { padding: 0 8px; color: #665b10; font-size: 16px; }
.child-toggle { margin: 0; padding: 13px 15px; display: grid; grid-template-columns: 48px 1fr 24px; align-items: center; gap: 12px; border: 2px solid #c8c27e; border-radius: 13px; background: white; cursor: pointer; transition: .18s ease; }
.child-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.child-toggle span { margin: 0; }
.child-plus { width: 46px; height: 46px; display: grid !important; place-items: center; border-radius: 50%; background: #f1edc8; color: #665b10 !important; font-size: 19px !important; font-weight: 900 !important; }
.child-toggle strong, .child-toggle small { display: block; }
.child-toggle strong { color: var(--forest-dark); font-size: 17px; }
.child-toggle small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.child-toggle i { width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid #bbb77b; border-radius: 50%; color: transparent; font-size: 13px; font-style: normal; }
.child-toggle:hover { border-color: #8a8429; }
.child-toggle:has(input:checked) { border-color: var(--forest); background: #e9f2ec; box-shadow: 0 6px 15px rgba(22,63,53,.1); }
.child-toggle:has(input:checked) .child-plus { background: var(--forest); color: white !important; }
.child-toggle:has(input:checked) i { border-color: var(--forest); background: var(--forest); color: white; }
.allergy-fieldset { border-top: 1px solid var(--line); padding-top: 15px; }
.segmented { width: 180px; display: grid; grid-template-columns: 1fr 1fr; background: #edf0ed; padding: 4px; border-radius: 11px; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { margin: 0; text-align: center; padding: 8px; border-radius: 8px; cursor: pointer; }
.segmented input:checked + span { background: white; color: var(--forest); box-shadow: 0 2px 7px rgba(20,55,45,.11); }
.allergy-panel { margin-top: 18px; padding: 18px; border-radius: 13px; background: #f4f5ef; }
.allergy-panel p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-grid label { margin: 0; }
.check-grid input { position: absolute; opacity: 0; }
.check-grid span { margin: 0; padding: 9px 10px; border: 1px solid #d8dfd7; border-radius: 9px; background: white; font-size: 13px; font-weight: 600; cursor: pointer; }
.check-grid input:checked + span { border-color: var(--forest); color: var(--forest); background: #eaf1ec; }
#otherAllergyLabel { margin: 14px 0 0; }
.privacy-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; margin: 14px 0; }
.privacy-check input { width: 17px; height: 17px; accent-color: var(--forest); margin-top: 2px; }
.privacy-check span { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); font-weight: 500; }
.notice-box { display: grid; grid-template-columns: 30px 1fr; gap: 11px; background: #f0f4ee; border-left: 3px solid var(--olive); padding: 11px 14px; border-radius: 0 11px 11px 0; }
.notice-box > span { width: 24px; height: 24px; border: 1px solid var(--sage); color: var(--forest); border-radius: 50%; display: grid; place-items: center; font-family: serif; font-weight: 700; }
.notice-box p { margin: 0; font-size: 12px; line-height: 1.55; color: #4f635d; }
.form-error { min-height: 22px; margin: 11px 0 0; font-size: 16px; line-height: 1.4; font-weight: 800; color: var(--danger); }
.form-error:not(:empty) { padding: 10px 12px; background: #fbebe8; border-left: 4px solid var(--danger); border-radius: 0 9px 9px 0; }
.button-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 12px; }
.back-btn { border: 0; background: transparent; color: #65756f; font-weight: 700; padding: 13px 4px; }
.button-row .primary-btn { min-width: 170px; }
.success-step { text-align: center; }
.success-mark { width: 68px; height: 68px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--forest); font-size: 31px; box-shadow: 0 10px 28px rgba(22,63,53,.22); }
.reference-box { width: 220px; margin: 0 auto 25px; padding: 12px; background: #f1f4ef; border-radius: 10px; }
.reference-box span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.reference-box strong { display: block; margin-top: 2px; font-size: 19px; letter-spacing: .12em; }
.next-step { max-width: 520px; margin: 0 auto 25px; text-align: left; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 15px; border: 1px solid var(--line); border-radius: 13px; }
.next-step > span { width: 30px; height: 30px; background: #e5eee8; color: var(--forest); border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.next-step p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.confirmation-callout { max-width: 570px; margin: 0 auto 24px; padding: 21px 24px; display: grid; grid-template-columns: 66px 1fr; gap: 18px; align-items: center; text-align: left; color: white; background: linear-gradient(135deg, var(--forest-dark), var(--forest)); border-radius: 18px; box-shadow: 0 13px 30px rgba(22,63,53,.2); }
.confirmation-callout > span { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: #d8d77f; color: var(--forest-dark); font-size: 15px; font-weight: 900; letter-spacing: .06em; }
.confirmation-callout strong { display: block; font-family: "Playfair Display", serif; font-size: 26px; line-height: 1.1; color: white; }
.confirmation-callout p { margin: 7px 0 0; color: #d9e5e0; font-size: 13px; line-height: 1.45; }
.friend-card { position: relative; overflow: hidden; padding: 28px; border-radius: 20px; background: var(--forest); color: white; }
.friend-card::after { content: ""; position: absolute; width: 180px; height: 180px; border: 34px solid rgba(255,255,255,.04); border-radius: 50%; right: -70px; top: -70px; }
.friend-card .eyebrow { color: #d8d77f; }
.friend-card h3 { color: white; max-width: 520px; margin: 0 auto 10px; }
.friend-card p:not(.eyebrow) { color: #c9d8d2; font-size: 14px; }
.secondary-btn { position: relative; z-index: 1; margin-top: 7px; background: white; color: var(--forest); }
.secondary-btn:hover { transform: translateY(-1px); background: var(--cream); }
.final-note { font-size: 11px; color: #84918b; margin: 18px 0 0; }
footer { height: 52px; border-top: 1px solid #edf0eb; display: flex; align-items: center; justify-content: center; gap: 8px; color: #8a958f; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 18px); background: #102f28; color: white; padding: 12px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Back office */
.admin-page { min-height: 100vh; background: #eef1ed; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(100%, 400px); padding: 34px; border-radius: 20px; background: white; box-shadow: var(--shadow); text-align: center; }
.login-card .brand-logo { width: 170px; height: 146px; margin-bottom: 18px; }
.login-card h1 { font-size: 35px; margin-bottom: 8px; }
.login-card p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.login-card label { text-align: left; }
.login-card .primary-btn { width: 100%; }
.admin-app[hidden], .admin-login[hidden] { display: none; }
.admin-header { min-height: 76px; padding: 12px clamp(20px, 4vw, 56px); background: var(--forest-dark); display: flex; align-items: center; justify-content: space-between; color: white; }
.admin-brand { display: flex; align-items: center; gap: 16px; }
.admin-brand .brand-logo { width: 72px; height: 62px; }
.admin-brand strong, .admin-brand small { display: block; }
.admin-brand small { color: #adc1b9; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.admin-header-actions { display: flex; align-items: center; gap: 9px; }
.public-form-btn { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #d8d77f; color: var(--forest-dark); font-weight: 800; font-size: 13px; text-decoration: none; transition: .18s ease; }
.public-form-btn:hover { background: #e7e69a; transform: translateY(-1px); }
.copy-public-url-btn { min-height: 42px; padding: 0 15px; border: 1px solid rgba(255,255,255,.34); border-radius: 9px; color: white; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.1); transition: .18s ease; }
.copy-public-url-btn:hover, .copy-public-url-btn:focus-visible { border-color: #d8d77f; background: rgba(216,215,127,.16); }
.logout-btn { border: 1px solid rgba(255,255,255,.25); background: transparent; color: white; padding: 9px 14px; border-radius: 9px; }
.admin-main { width: min(100% - 36px, 1280px); margin: 32px auto 60px; }
.admin-title-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.admin-title-row h1 { font-size: 41px; margin-bottom: 5px; }
.admin-title-row p { margin: 0; color: var(--muted); }
.refresh-btn { border: 1px solid #c8d2cb; background: white; color: var(--forest); border-radius: 9px; padding: 10px 14px; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { border-radius: 14px; background: white; padding: 18px; box-shadow: 0 5px 18px rgba(32,58,50,.05); }
.stat-card span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { display: block; font-family: "Playfair Display", serif; font-size: 35px; margin-top: 3px; }
.toolbar { background: white; padding: 12px; border-radius: 14px 14px 0 0; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e8ece8; }
.toolbar input { max-width: 330px; min-height: 42px; }
.filter-group { display: flex; gap: 6px; margin-left: auto; }
.filter-btn { border: 1px solid #d6ded8; background: white; color: #5d6d67; border-radius: 8px; padding: 8px 11px; font-size: 13px; font-weight: 700; }
.filter-btn.active { color: white; background: var(--forest); border-color: var(--forest); }
.requests-wrap { overflow-x: auto; background: #eef1ed; border-radius: 0 0 14px 14px; padding: 0 5px 5px; }
.requests-table { width: 100%; min-width: 1120px; table-layout: fixed; border-collapse: separate; border-spacing: 0 5px; }
.requests-table th { padding: 9px 8px; text-align: left; font-size: 10px; color: #6f7d77; text-transform: uppercase; letter-spacing: .04em; background: #fafbf9; }
.requests-table td { padding: 9px 8px; border: 0; background: white; font-size: 12px; line-height: 1.25; vertical-align: middle; overflow-wrap: anywhere; }
.requests-table tbody tr:nth-child(even) td { background: #f5f8f5; }
.requests-table tbody tr:hover td { background: #eef6f0; }
.requests-table tbody td:first-child { border-left: 4px solid #c6d3ca; border-radius: 6px 0 0 6px; }
.requests-table tbody td:last-child { border-radius: 0 6px 6px 0; }
.requests-table tbody .request-row-pending td:first-child { border-left-color: #d6a62d; }
.requests-table tbody .request-row-approved td:first-child { border-left-color: #3b8a5a; }
.requests-table tbody .request-row-rejected td:first-child { border-left-color: #b85b53; }
.requests-table th:nth-child(1) { width: 15%; }
.requests-table th:nth-child(2) { width: 7%; }
.requests-table th:nth-child(3) { width: 9%; }
.requests-table th:nth-child(4) { width: 19%; }
.requests-table th:nth-child(5) { width: 10%; }
.requests-table th:nth-child(6) { width: 6%; }
.requests-table th:nth-child(7) { width: 6%; }
.requests-table th:nth-child(8) { width: 8%; }
.requests-table th:nth-child(9) { width: 9%; }
.requests-table th:nth-child(10) { width: 11%; }
.person-cell strong, .person-cell small { display: block; }
.person-cell small { color: var(--muted); margin-top: 2px; }
.requests-table td.person-cell.contact-known { background: #d7f0de !important; box-shadow: inset 5px 0 #25834c; }
.person-cell.contact-known > strong { color: #145a33; }
.person-cell.contact-known > small { color: #267045; font-weight: 800; }
.contact-record { max-width: 100%; display: block; margin-top: 5px; padding: 5px 6px; overflow: hidden; border: 2px solid #4c9a67; border-radius: 4px; background: #f1fbf4; color: #145a33; font-size: 9px; line-height: 1.2; }
.contact-record b, .contact-record span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.contact-record b { margin-bottom: 3px; color: #0f512c; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.contact-record span { font-weight: 800; }
.registration-date-cell { white-space: nowrap; }
.registration-date-cell time,
.registration-date-cell time strong,
.registration-date-cell time small { display: block; }
.registration-date-cell time strong { color: var(--ink); font-size: 13px; }
.registration-date-cell time small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.registration-date-missing { color: var(--muted); font-size: 12px; }
.needs-summary { min-width: 0; display: flex; align-items: center; gap: 7px; color: #52655e; font-size: 10px; line-height: 1.15; }
.maximum-needs { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 7px; }
.maximum-needs .need-maximum { min-width: 0; display: block; color: var(--forest-dark); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maximum-needs .need-maximum:nth-child(3), .maximum-needs .needs-none { grid-column: 1 / -1; }
.maximum-needs .needs-none { color: #687870; font-size: 9px; font-style: italic; white-space: normal; }
.admin-affinity { flex: 0 0 auto; width: fit-content; margin: 0; padding: 3px 6px; display: inline-flex; border-radius: 100px; font-size: 10px; font-weight: 900; line-height: 1; }
.admin-affinity.high { background: #e1f2e7; color: #267045; }
.admin-affinity.low { background: #fff3d7; color: #906b16; }
.child-admin-badge { display: inline-flex; margin-top: 5px; padding: 4px 7px; border-radius: 100px; background: #fff3d7; color: #7a5b10; font-size: 11px; font-weight: 800; }
.historical-admin-badge { display: inline-flex; margin-top: 5px; padding: 4px 7px; border-radius: 100px; background: #e1f2e7; color: #267045; font-size: 11px; font-weight: 800; }
.note-cell { min-width: 0; white-space: normal; line-height: 1.25; color: #52655e; }
.note-cell span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 100px; padding: 5px 7px; font-weight: 700; font-size: 10px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { background: #fff3d7; color: #906b16; }
.status-approved { background: #e1f2e7; color: #267045; }
.status-rejected { background: #f6e3e1; color: #943f38; }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.action-btn { border: 1px solid #d4ddd6; background: white; border-radius: 7px; padding: 6px 7px; font-weight: 700; font-size: 10px; }
.action-btn.approve { color: #267045; }
.action-btn.reject { color: #943f38; }
.action-btn.note { border-color: #c4ad62; background: #fff9e8; color: #6d5714; }
.empty-state { padding: 55px 20px; text-align: center; color: var(--muted); display: none; }
.empty-state.show { display: block; }
.admin-error { color: var(--danger); font-size: 16px; line-height: 1.4; font-weight: 800; min-height: 20px; margin-top: 10px; }
.admin-error:not(:empty) { padding: 10px 12px; background: #fbebe8; border-radius: 9px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(9,31,25,.56); z-index: 30; display: grid; place-items: center; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(100%, 500px); background: white; border-radius: 18px; padding: 28px; box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.modal h2 { font-size: 31px; }
.modal textarea { width: 100%; min-height: 100px; resize: vertical; border: 1.5px solid #d5ddd7; border-radius: 11px; padding: 12px; outline: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-actions button { border-radius: 9px; padding: 10px 14px; font-weight: 700; }
.cancel-btn { border: 1px solid #d4ddd6; background: white; }

@media (max-width: 700px) {
  .public-page { padding: 0; background: var(--paper); }
  .form-shell { border-radius: 0; min-height: 100vh; box-shadow: none; border: 0; }
  .brandbar { padding: 7px 18px; height: 78px; }
  .brand-logo { width: 70px; height: 60px; }
  .share-link { padding: 9px 12px; font-size: 13px; }
  .progress-wrap { padding: 12px 22px 0; }
  .affinity-meter { padding: 9px 10px; }
  .affinity-heading strong { font-size: 22px; }
  .form-step { padding: 23px 22px 30px; }
  .intro-step { padding-top: 20px; }
  .club-benefits { grid-template-columns: 1fr; gap: 6px; }
  .club-benefits > div { min-height: 62px; }
  .exclusivity-card { grid-template-columns: 62px 1fr; gap: 12px; padding: 13px; }
  .simple-exclusivity-card { grid-template-columns: 1fr; padding: 13px 15px; }
  .threshold-mark { width: 60px; height: 60px; }
  .threshold-mark strong { font-size: 21px; }
  .exclusivity-card h3 { font-size: 18px; }
  .promise-grid, .two-columns, .choice-list, .people-options { grid-template-columns: 1fr; }
  .choice-list.igp-choices { grid-template-columns: 1fr 1fr; }
  .survey-options.three-options, .survey-options.priority-options { grid-template-columns: 1fr; }
  .survey-options label > span { justify-content: flex-start; text-align: left; min-height: 44px; }
  .selection-help { margin-left: 0; flex-direction: column; gap: 2px; }
  .affinity-inline { padding: 13px 14px; }
  .affinity-inline > div:first-child span { max-width: 190px; font-size: 12px; }
  .affinity-inline > div:first-child strong { font-size: 29px; }
  .olive-range-options { grid-template-columns: 1fr; gap: 8px; }
  .olive-range-card { min-height: 76px; padding: 10px 42px 10px 12px; flex-direction: row; justify-content: flex-start; text-align: left; }
  .olive-range-card:has(input:checked) { padding: 9px 41px 9px 11px; }
  .olive-range-icon { width: 46px; height: 46px; flex: 0 0 46px; font-size: 25px; }
  .olive-range-card i { right: 14px; top: 50%; transform: translateY(-50%); }
  .contributor-type-options { grid-template-columns: 1fr; }
  .contributor-type-btn { min-height: 92px; }
  .contributor-check-panel, .rejection-panel { min-height: 390px; padding-top: 18px; }
  .promise-grid { gap: 8px; }
  .choice-card { min-height: 62px; }
  .people-card { min-height: 88px; grid-template-columns: 48px 1fr 20px; }
  .participant-count { width: 44px; height: 44px; font-size: 25px; }
  .guest-panel { padding: 15px 15px 1px; }
  .child-fieldset { padding: 13px; }
  .child-toggle { grid-template-columns: 43px 1fr 22px; padding: 11px; gap: 10px; }
  .child-plus { width: 41px; height: 41px; }
  .button-row { align-items: stretch; }
  .button-row .primary-btn { min-width: 0; flex: 1; }
  .back-btn { font-size: 13px; }
  .confirmation-callout { grid-template-columns: 52px 1fr; padding: 17px; gap: 13px; }
  .confirmation-callout > span { width: 50px; height: 50px; font-size: 12px; }
  .confirmation-callout strong { font-size: 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-header { align-items: flex-start; gap: 12px; }
  .admin-header-actions { flex-direction: column; align-items: stretch; }
  .public-form-btn { min-height: 38px; padding: 0 11px; font-size: 11px; }
  .copy-public-url-btn { min-height: 38px; padding: 0 11px; font-size: 11px; }
  .logout-btn { padding: 7px 11px; }
  .admin-title-row { align-items: start; flex-direction: column; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar input { max-width: none; }
  .filter-group { margin-left: 0; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
