/* ============================================================
   contact.css — contact page: page header, form, info sidebar
   Markup: includes/contact-middle.php
   ============================================================ */

/* ---- Page header band ---- */
.page-head {
  background: linear-gradient(100deg, var(--blue-dark), var(--blue));
  color: #fff; padding: 40px 0;
}
.page-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; }
.page-head p { margin-top: 10px; font-size: 15.5px; color: #dbeafe; max-width: 560px; }

/* ---- Layout ---- */
.contact-grid {
  display: grid; grid-template-columns: 1.5fr minmax(0, 1fr); gap: 24px;
  align-items: start; padding: 28px 0 8px;
}

/* ---- Form card ---- */
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 26px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.contact-card .form-intro { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input,
.field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 13px; font-size: 14px; color: var(--text); background: #f9fafb;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input.invalid,
.field textarea.invalid { border-color: var(--red); background: #fef2f2; }
.field-error { color: var(--red); font-size: 12.5px; margin-top: 5px; }

.submit-btn {
  background: var(--blue); color: #fff; border: none; border-radius: 8px;
  padding: 12px 28px; font-size: 15px; font-weight: 600; margin-top: 4px;
  transition: background .15s;
}
.submit-btn:hover { background: var(--blue-dark); }

/* Honeypot — hidden from humans, tempting to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success / error banners */
.alert {
  border-radius: 8px; padding: 13px 16px; font-size: 14px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 9px;
}
.alert.success { background: var(--green-bg); border: 1px solid #bbf7d0; color: #166534; }
.alert.error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ---- Info sidebar ---- */
.info-card {
  background: #fff; border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); margin-bottom: 14px;
  display: flex; align-items: flex-start; gap: 13px;
}
.info-card .info-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: #e0ecff;
}
.info-card .info-title { font-size: 14px; font-weight: 700; }
.info-card .info-detail { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.info-card a.info-detail:hover { color: var(--blue); }

/* Map placeholder (no external embed — keeps the strict CSP intact) */
.map-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.map-inner {
  background:
    repeating-linear-gradient(45deg, #eef2f7 0 12px, #e6ebf2 12px 24px);
  height: 170px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center;
}
.map-inner .map-pin { font-size: 34px; }
.map-inner .map-place { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.map-inner .map-link {
  font-size: 13px; font-weight: 600; color: var(--blue);
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px;
}
.map-inner .map-link:hover { background: #f0f5ff; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-head { padding: 30px 0; }
  .page-head h1 { font-size: 26px; }
  .contact-card { padding: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
