/* ==========================================================================
   Contact page (loaded only on template-contact.php)
   ========================================================================== */
.contact-hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 var(--section); overflow: hidden; }
.contact-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 45% at 85% 30%, rgba(200, 240, 49, .08), transparent 70%); }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro { display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 32px); }
.contact__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 7vw, 6rem); line-height: .98; letter-spacing: -0.035em; }
.contact__direct { display: grid; border-top: 1px solid var(--line); }
.contact__direct a { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.contact__direct a:hover { color: var(--accent); }
.contact__direct .icon { width: 22px; height: 22px; color: var(--accent); }
.contact__direct span { display: grid; font-weight: 500; font-size: 1.05rem; line-height: 1.3; }
.contact__direct small { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact__next { padding: 24px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.contact__next-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 14px; }
.contact__next ol { display: grid; gap: 12px; counter-reset: step; }
.contact__next li { position: relative; padding-left: 36px; color: var(--muted); font-size: .97rem; counter-increment: step; }
.contact__next li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 700; }
.contact__next strong { color: var(--ink); font-weight: 700; }
.contact__where { color: var(--muted); font-size: .95rem; }

.contact__panel {
	border-radius: 28px; background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -50px rgba(200, 240, 49, .25);
	padding: clamp(24px, 4vw, 44px);
	scroll-margin-top: calc(var(--header-h) + 24px);
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .reach legend { font-weight: 500; font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: 4px; }
.field input, .field textarea, .select select {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-input);
	padding: 13px 14px; min-height: 50px;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:hover, .field textarea:hover, .select select:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus, .select select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 240, 49, .18); }
.has-error input, .has-error textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: .88rem; font-weight: 500; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select select option, .select select optgroup { background: var(--surface); color: var(--ink); }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.pkg-summary { margin-top: 6px; padding: 18px 20px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(200, 240, 49, .35); display: grid; gap: 10px; }
.pkg-summary[hidden] { display: none; }
.pkg-summary__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pkg-summary__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.pkg-summary__price { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--accent); white-space: nowrap; }
.pkg-summary__price small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); margin-left: 2px; }
.pkg-summary__for { color: var(--muted); font-size: .9rem; }
.pkg-summary .ticks { gap: 6px; padding: 0; }
.pkg-summary .ticks li { font-size: .9rem; }
.pkg-summary__more { color: var(--muted); font-size: .85rem; }

.reach { border: 0; padding: 0; margin: 0; min-width: 0; }
.reach legend { margin-bottom: 8px; padding: 0; }
.reach__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.reach__opt { position: relative; cursor: pointer; }
.reach__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.reach__opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: .95rem; transition: background-color .2s, box-shadow .2s, color .2s; }
.reach__opt:hover span { box-shadow: inset 0 0 0 1px var(--muted); }
.reach__opt input:checked + span { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.reach__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__alert { grid-column: 1 / -1; padding: 12px 16px; border-radius: var(--r-input); background: rgba(255, 138, 107, .1); color: var(--error); box-shadow: inset 0 0 0 1px rgba(255, 138, 107, .4); font-weight: 500; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form__submit[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form__note { color: var(--muted); font-size: .88rem; max-width: 32ch; }

.form-sent { display: grid; gap: 14px; justify-items: start; padding: clamp(8px, 2vw, 24px) 0; outline: none; }
.form-sent__icon { width: 56px; height: 56px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.form-sent__icon .icon { width: 28px; height: 28px; }
.form-sent__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
.form-sent p { color: var(--muted); max-width: 46ch; }
.form-sent__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

@media (max-width: 960px) {
	.contact__grid { grid-template-columns: 1fr; }
	.contact__intro { position: static; }
}
@media (max-width: 560px) {
	.form { grid-template-columns: 1fr; }
	.form__submit { width: 100%; }
}

.form__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
