/* Surreal: contact form section (brand colors from the brief) */
:focus-visible { outline: 3px solid var(--c-label); outline-offset: 3px; }

.contact-wrap { background: var(--c-cream); padding: var(--section-y, 96px) var(--gutter, 24px); font-family: Inter, system-ui, sans-serif; }
.contact-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: var(--stack-gap, 48px); align-items: flex-start; }
.contact-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-copy .eyebrow { margin: 0; font-size: var(--eyebrow, 17px); font-weight: 700; color: var(--c-label); }
.contact-copy h2 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.contact-copy > p { margin: 0; font-size: 18px; color: var(--c-muted); }
.contact-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; gap: 2px; }
.contact-list span { font-size: 13px; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-list a { font-weight: 600; color: var(--c-button); }

.contact-form { flex: 1.3 1 440px; min-width: 0; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; box-shadow: 0 18px 40px rgba(31, 26, 23, 0.07); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field small { font-weight: 400; color: var(--c-muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--c-ink); background: var(--c-white); border: 1px solid var(--c-line-strong); border-radius: 12px;
  padding: 12px 14px; width: 100%; box-sizing: border-box;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-button); box-shadow: 0 0 0 3px var(--c-pink-soft); }
.field .invalid { border-color: var(--c-button); background: var(--c-cream); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.submit-btn {
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; background: var(--c-button); color: var(--c-on-dark);
  border: 0; border-radius: 999px; padding: 16px 28px; transition: transform .15s;
}
.submit-btn:hover { transform: translateY(-2px); }
.submit-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: var(--c-teal-dark); }
.form-status.err { color: var(--c-button); }
.form-note { margin: 0; font-size: 13px; color: var(--c-muted); text-align: center; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; box-shadow: 0 12px 28px rgba(31, 26, 23, 0.07); }
  #cta > div { padding: 40px 24px !important; }
}

/* Book a call (module): checkbox + "Pick a time" panel shown after a successful send */
.field-check label { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; min-height: 44px; padding-top: 10px; }
.field-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--c-button); }
.booking-panel { border: 1px solid var(--c-line); background: var(--c-pink-soft); border-radius: 14px; padding: 18px 20px; display: grid; gap: 8px; justify-items: start; }
.booking-panel p { margin: 0; color: var(--c-ink); }
.booking-panel .booking-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 19px; }
.booking-btn { text-decoration: none; background: var(--c-button); color: var(--c-on-dark); padding: 13px 26px; border-radius: 999px; font-weight: 600; margin-top: 4px; min-height: 44px; }

/* Calendar pop-up (Cal.com in a dialog) */
.cal-open { overflow: hidden; }
.cal-dialog { font-family: Inter, system-ui, sans-serif; width: min(980px, calc(100vw - 32px)); height: min(760px, calc(100dvh - 32px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--c-line); border-radius: 16px; background: var(--c-white); color: var(--c-ink); box-shadow: 0 24px 60px rgba(31, 26, 23, .25); overflow: hidden; }
.cal-dialog[open] { display: flex; flex-direction: column; }
.cal-dialog::backdrop { background: rgba(31, 26, 23, .55); }
.cal-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--c-line); }
.cal-title { margin: 0; flex: 1; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 18px; }
.cal-newtab { font-size: 14px; color: var(--c-muted); }
.cal-close { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--c-ink); font-size: 20px; cursor: pointer; }
.cal-close:hover, .cal-close:focus-visible { background: var(--c-cream); }
.cal-body { position: relative; flex: 1; }
.cal-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cal-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--c-muted); }
@media (max-width: 640px) {
  .cal-dialog { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .cal-newtab { display: none; }
}

/* After a successful send: only the thank-you, the booking panel and "Send another message" stay */
.contact-form.is-sent > :not(.form-status):not(.booking-panel):not(.send-another) { display: none !important; }
.contact-form.is-sent .form-status { font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; line-height: 1.3; }
.send-another { align-self: flex-start; background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-size: 15px; color: var(--c-muted); text-decoration: underline; cursor: pointer; }
.send-another:hover { color: var(--c-ink); }
