/* ==========================================================================
   ZANTI PHARMACY — CONTACT PAGE STYLES  (assets/css/pages/contact.css)
   Loaded after the shared design system (assets/css/style.css).
   Contains only what contact.html needs beyond the shared components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Quick contact method cards
   -------------------------------------------------------------------------- */
.method-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}

.method-card h3 { margin: 0; }

.method-card p {
  margin: 0;
  flex-grow: 1;
}

.method-card .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   Form + info panel layout
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}

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

/* --------------------------------------------------------------------------
   Enquiry form card
   -------------------------------------------------------------------------- */
.contact-form-card h2 { margin-bottom: var(--sp-3); }

.contact-form-intro {
  color: var(--slate);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-6);
}

.contact-form-card .alert { margin-bottom: var(--sp-5); }

.contact-form-actions { margin-top: var(--sp-6); }

/* Submit button loading state (no motion — label swaps to "Sending…"). */
#enquiry-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

#enquiry-submit.is-loading .icon-arrow { visibility: hidden; }

/* Honeypot field: kept out of sight and out of the tab order, but not
   display:none, so automated form fillers still complete it. */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Submission result panel (success / fallback, injected by contact.js)
   -------------------------------------------------------------------------- */
.enquiry-result { outline: none; }

.enquiry-result:not(:empty) { margin-bottom: var(--sp-5); }

.enquiry-result .alert { margin-bottom: 0; }

.enquiry-result h3 {
  font-size: var(--fs-md);
  margin: 0 0 var(--sp-2);
}

.enquiry-result p { margin: 0 0 var(--sp-2); }

.enquiry-result p:last-child { margin-bottom: 0; }

.enquiry-reference {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.enquiry-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

/* --------------------------------------------------------------------------
   Info panel (address, hours, note)
   -------------------------------------------------------------------------- */
.contact-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.contact-panel h2 { margin-bottom: var(--sp-4); }

.contact-address {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  color: var(--slate);
  margin-bottom: var(--sp-4);
}

.contact-address .icon {
  flex: none;
  color: var(--brand);
  margin-top: 2px;
}

.contact-panel-subtitle {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-md);
}

.contact-panel .status-pill { margin-bottom: var(--sp-4); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.hours-table th,
.hours-table td {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }

.hours-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding-right: var(--sp-3);
}

.hours-table td {
  text-align: right;
  color: var(--slate);
  white-space: nowrap;
}

.contact-note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  color: var(--slate);
  font-size: var(--fs-sm);
}

.contact-note .icon {
  flex: none;
  color: var(--brand);
  margin-top: 2px;
}

.contact-note p { margin: 0; }
