/* ==========================================================================
   DUNESCAPE JOURNEYS — FORMS & FAQ
   1. Contact layout   2. Contact info   3. Booking form   4. FAQ accordion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CONTACT LAYOUT
   -------------------------------------------------------------------------- */

.contact { background: var(--sand); }

.contact__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 991px) {
  .contact__inner { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* --------------------------------------------------------------------------
   2. CONTACT INFO
   -------------------------------------------------------------------------- */

.contact__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left var(--dur) var(--ease-out);
}

a.contact-item:hover { padding-left: 8px; }

.contact-item__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  transition: background-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out);
}

.contact-item__icon svg { width: 17px; height: 17px; stroke-width: 1.5; }

a.contact-item:hover .contact-item__icon {
  background: var(--gold);
  color: var(--deep);
}

.contact-item__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }

.contact-item__label {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-item__value {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--deep);
  word-break: break-word;
}

.contact-item__note {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  line-height: 1.5;
}

/* Direct-line panel */
.direct {
  position: relative;
  background: var(--deep);
  color: var(--ink-inv);
  padding: var(--space-md);
  overflow: hidden;
}

.direct .bloom {
  width: 320px;
  height: 320px;
  right: -140px;
  bottom: -160px;
  opacity: 0.4;
}

.direct__inner { position: relative; z-index: 2; }

.direct h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink-inv);
  margin-bottom: 0.5rem;
}

.direct p {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-inv-soft);
  margin-bottom: var(--space-sm);
}

.direct .btn { width: 100%; }

/* --------------------------------------------------------------------------
   3. BOOKING FORM
   -------------------------------------------------------------------------- */

.form-panel {
  background: var(--pearl);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  border-top: 2px solid var(--gold);
}

@media (max-width: 560px) {
  .form-panel { padding: var(--space-md) var(--space-sm); }
}

.form-panel__head {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--rule);
}

.form-panel__head h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  margin-top: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md) var(--gutter);
}

.field--full { grid-column: 1 / -1; }

@media (max-width: 620px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* --- Field --- */
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.field__label {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color var(--dur) var(--ease-out);
}

.field__label .req { color: var(--terracotta); }

.field:focus-within .field__label { color: var(--gold-deep); }

.field__control {
  position: relative;
  display: block;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0 0.85rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--deep);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--deep-12);
  border-radius: 0;
  transition: border-color var(--dur) var(--ease-out);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 0.6rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-faint);
  opacity: 0.75;
}

/* Gold underline sweeping in from the left on focus */
.field__control::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
  pointer-events: none;
}

.field:focus-within .field__control::after { transform: scaleX(1); }

/* --- Select --- */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2rem;
  cursor: pointer;
  color: var(--deep);
}

.field select:invalid,
.field select option[value=""] { color: var(--ink-faint); }

.field__control--select::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
  pointer-events: none;
  transition: border-color var(--dur) var(--ease-out);
}

.field:focus-within .field__control--select::before { border-color: var(--gold-deep); }

/* --- Date --- */
.field input[type="date"] { cursor: pointer; }

.field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.45;
  transition: opacity var(--dur) var(--ease-out);
}

.field input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* --- Validation --- */
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-bottom-color: var(--terracotta); }

.field.has-error .field__label { color: var(--terracotta); }

/* Taken out of flow — an in-flow error message would add a permanent
   gap under every field, including the ones that can never error. */
.field__error {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 5px;
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--terracotta);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.field.has-error .field__error { opacity: 1; transform: translateY(0); }

/* --- Consent + submit --- */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink-soft);
  cursor: pointer;
}

.form-consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  border: 1px solid var(--deep-12);
  border-radius: var(--radius-ui);
  background: var(--pearl);
  cursor: pointer;
  position: relative;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.form-consent input:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.form-consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--deep);
  border-bottom: 2px solid var(--deep);
  transform: rotate(45deg);
}

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-2xs);
  padding-top: var(--space-md);
  border-top: 1px solid var(--rule);
}

.form-foot .btn { flex: none; }

/* --- Success state --- */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-md);
}

.form-success.is-shown { display: flex; }

.form-success__mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-deep);
  margin-bottom: var(--space-2xs);
}

.form-success__mark svg { width: 26px; height: 26px; stroke-width: 1.5; }

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.form-success p {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.7;
}

.form-note {
  font-family: var(--font-label);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   4. FAQ / POLICIES ACCORDION
   -------------------------------------------------------------------------- */

.faq { background: var(--pearl); }

.faq__inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 991px) {
  .faq__inner { grid-template-columns: 1fr; gap: var(--space-lg); }
}

.faq__list { border-top: 1px solid var(--rule); }

.faq__list .accordion__trigger { gap: var(--space-sm); align-items: center; }

.faq__q {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--deep);
  transition: color var(--dur) var(--ease-out);
  padding-right: var(--space-sm);
}

.accordion__trigger:hover .faq__q { color: var(--gold-deep); }

.faq__list .accordion__icon { color: var(--deep); }

.faq__list .accordion__trigger:hover .accordion__icon,
.faq__list .accordion__item.is-open .accordion__icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep);
}

.faq__a {
  font-size: var(--fs-sm);
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 68ch;
}

.faq__a + .faq__a { margin-top: 0.85rem; }

.faq__a strong { color: var(--deep); font-weight: 500; }

/* Sticky aside on the FAQ */
.faq__aside { position: sticky; top: 110px; }

@media (max-width: 991px) {
  .faq__aside { position: static; }
}

.faq__help {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--sand);
  border-left: 2px solid var(--gold);
}

.faq__help p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}
