/* ==========================================================
   SIDEKOM | Contact page: contact methods and the form
   ========================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.contact-methods { display: grid; gap: 14px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 700;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a.contact-method:hover { transform: translateY(-3px); border-color: var(--gold-300); box-shadow: var(--shadow); }
.contact-method .icon-badge { width: 46px; height: 46px; border-radius: 14px; flex: none; }
.contact-method .icon-badge .icon { width: 1.3rem; height: 1.3rem; }
.contact-method--note { font-weight: 600; color: var(--muted); box-shadow: none; background: var(--navy-50); }
.contact-method__text { display: grid; gap: 2px; }
.contact-method__value { color: var(--navy-600); font-weight: 600; font-size: 0.95rem; }

/* ---------- Online booking (Cal.com calendar) ---------- */

.booking__frame {
  overflow: hidden;
  max-width: 1000px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}
/* Starting heights; js/booking.js then sets the exact height the calendar asks for */
.booking__frame iframe { display: block; width: 100%; height: 720px; border: 0; transition: height 0.2s; }
.booking__fallback { margin-top: 18px; text-align: center; }
@media (max-width: 700px) {
  .booking__frame { border-radius: var(--radius); }
  .booking__frame iframe { height: 1100px; }
}

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

/* ---------- Form ---------- */

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) {
  .contact-form__row { grid-template-columns: minmax(0, 1fr); }
}

.field { display: grid; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--navy-700); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 500 1rem/1.4 var(--font-body);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356657f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat;
  background-size: 18px;
  background-position: right 16px center;
}
html[dir="rtl"] .field select { background-position: left 16px center; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 4px rgba(242, 174, 5, 0.3);
}
.field [aria-invalid="true"] { border-color: var(--danger); }

/* Hidden trap for spam bots: real visitors never see or fill this */
.field--trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
