/* BrandLift Studio – contact page */
.contact-section { padding-top: clamp(24px, 4vw, 48px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

/* Form card */
.form-card {
  position: relative; overflow: hidden;
  background: radial-gradient(480px 200px at 50% -10%, rgba(201, 164, 92, 0.12), transparent 70%), var(--glass), var(--surface);
  border: 1px solid var(--line-strong); border-radius: 24px;
  padding: clamp(22px, 4vw, 44px); min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 40px 90px -56px rgba(201, 164, 92, 0.5);
}
.form-card::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); opacity: .7; }
.form-title { font-size: clamp(1.3rem, 1.6vw + .8rem, 1.7rem); margin-bottom: 22px; }

.field { margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.req { color: var(--gold); }

.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; /* 16px+ avoids iOS zoom */ color: var(--text);
  background: rgba(7, 7, 8, 0.7); border: 1px solid rgba(244, 239, 230, 0.14); border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(201, 164, 92, 0.45); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--gold); background: rgba(7, 7, 8, 0.9); box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.24), 0 0 24px -6px rgba(201, 164, 92, 0.45);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5l6 6 6-6' stroke='%23c9a45c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select option { background: var(--surface); color: var(--text); }

.field [aria-invalid="true"] { border-color: #e58f7f; }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(229, 143, 127, 0.3); }
.field-error { color: #f0a597; font-size: 0.88rem; margin-top: 6px; }

/* Honeypot: off-screen but present in the DOM */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.submit { width: 100%; margin-top: 6px; }
.submit[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.form-note { font-size: 0.86rem; margin-top: 16px; }

/* Status / feedback */
.form-status:empty { display: none; }
.form-status { border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; outline: none; }
.form-status.is-success { border: 1px solid var(--line-strong); background: rgba(201, 164, 92, 0.08); }
.form-status.is-error { border: 1px solid rgba(229, 143, 127, 0.5); background: rgba(229, 143, 127, 0.08); color: #f6c3b9; }
.form-status .status-title { font-weight: 600; color: var(--text); }
.form-status.is-success .status-title { color: var(--gold-light); }
.form-status .btn { margin-top: 16px; min-height: 44px; }
.notice { border: 1px solid var(--line-strong); background: rgba(201, 164, 92, 0.08); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
#contact-form[hidden] { display: none; }

/* Details */
.contact-details {
  position: relative; min-width: 0; padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--glass-line); border-radius: 22px;
  background: var(--glass), rgba(16, 16, 18, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.contact-details::before { content: ""; position: absolute; left: 24px; top: -1px; width: 56px; height: 2px; border-radius: 2px; background: var(--gold-gradient); }
.contact-details h2 { font-size: 1.4rem; margin-bottom: 16px; }
.contact-details h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 32px 0 14px; }
.contact-details .contact-booking { margin-top: 24px; }
.detail-list dt::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; box-shadow: 0 0 8px var(--gold-glow); }
.detail-list dt { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.detail-list dd { margin-top: 4px; overflow-wrap: anywhere; font-weight: 600; }
.check-list li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); position: relative; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(-45deg); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.context-note { border: 1px solid var(--line-strong); background: rgba(201, 164, 92, 0.08); border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; overflow-wrap: anywhere; }
.context-note strong { color: var(--gold-light); }
.context-note .text-link { margin-left: 8px; font-size: 0.9rem; }

/* Contact: soft ambient glow only; the form stays dominant */
.contact-section { position: relative; isolation: isolate; overflow: clip; }
.contact-section::before { content: ""; position: absolute; z-index: -1; top: -80px; right: -10%; width: min(780px, 100vw); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.12) 0%, rgba(201, 164, 92, 0.03) 42%, transparent 68%); }

/* Contact, large desktop: centered content system matching the finalized pages. */
@media (min-width: 1200px) {
  body:has(#contact-h1) .site-header > .container,
  body:has(#contact-h1) .site-footer > .container,
  .page-intro:has(#contact-h1) > .container,
  .page-intro:has(#contact-h1) + .contact-section > .contact-grid {
    max-width: 1480px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }
  .page-intro:has(#contact-h1) + .contact-section { padding-top: 32px; padding-bottom: 72px; }
  .page-intro:has(#contact-h1) + .contact-section > .contact-grid { gap: 40px; align-items: stretch; }
  .page-intro:has(#contact-h1) + .contact-section .contact-details { display: flex; flex-direction: column; }
  /* booking button follows its text instead of being pinned to the card bottom (no dead gap above it) */
  .page-intro:has(#contact-h1) + .contact-section .contact-booking { margin-top: 0; padding-top: 24px; }
  /* compact two-column form: Namn | E-post side by side; every other row (incl. the existing Telefon | Företag pair) spans both.
     :not([hidden]) keeps the form hideable after a successful send. */
  .page-intro:has(#contact-h1) + .contact-section #contact-form:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .page-intro:has(#contact-h1) + .contact-section #contact-form > * { grid-column: 1 / -1; }
  .page-intro:has(#contact-h1) + .contact-section #contact-form > .field:nth-child(-n+2) { grid-column: auto; }
  .page-intro:has(#contact-h1) .eyebrow { font-size: 0.84rem; margin-bottom: 20px; }
  .page-intro:has(#contact-h1) h1 { font-size: 4.25rem; max-width: none; margin-bottom: 22px; }
  .page-intro:has(#contact-h1) .lead { font-size: 1.3rem; max-width: 54ch; }
}
