/* ═══════════════════════════════════════
   CONTACT.CSS — Out Shine Web Design
   The reply card: the audit request is a form pinned to a
   blush board, with the direct line on navy plaques beside it.
═══════════════════════════════════════ */

/* ── HERO ── (ruled sheet comes from main.css) */
.contact-hero { padding: 5rem 5rem 4.5rem 6rem; }
.contact-hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 1.02; }

/* ── BODY: two columns ── */
.contact-body {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: start;
  padding: var(--section-pad);
  background: var(--tint);
}
.contact-info-col,
.contact-form-col { min-width: 0; }

/* ── LEFT: info column ── */
.contact-info-col h2 { margin-bottom: 1rem; }
.contact-info-col .lead { margin-bottom: 2.5rem; }

.contact-info-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* The direct line, painted on navy plaques */
.contact-info-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--teal);
  border-radius: 14px;
  box-shadow: var(--pinstripe-panel);
  padding: 1.25rem 1.5rem;
}
.contact-info-block > div { min-width: 0; }
.contact-info-icon {
  width: 40px; height: 40px;
  background: var(--blush);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg {
  width: 17px; height: 17px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.8;
}
.contact-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 0.2rem;
}
.contact-info-value a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.contact-info-value a:hover { color: var(--blush); }
.contact-info-value {
  font-size: 1rem;
  color: var(--cream);
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── RIGHT: the form, pinned like a reply card ── */
.contact-form-col h2 { margin-bottom: 0.5rem; }
.contact-form-col .lead { margin-bottom: 2.25rem; }

.contact-form {
  position: relative;
  background: var(--cream);
  border-radius: 3px;
  padding: 2.75rem 2.5rem 2.5rem;
  box-shadow: 0 2px 0 rgba(var(--teal-rgb), .08), 0 30px 50px -28px rgba(var(--teal-rgb), .5);
}
.contact-form::before {
  content: '';
  position: absolute;
  top: -12px; left: 50%;
  width: 96px; height: 24px;
  margin-left: -48px;
  background: rgba(var(--blush-rgb), .85);
  transform: rotate(-2deg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-field label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid rgba(var(--teal-rgb), .25);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font: 400 1rem var(--font-sans);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(var(--teal-rgb), .72); }
.form-field input:hover,
.form-field textarea:hover { border-color: rgba(var(--teal-rgb), .5); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(var(--blush-rgb), .45);
}
/* Keyboard focus gets the sitewide navy ring, not just a soft glow */
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.form-req {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
}
/* Turnstile renders a fixed 300px widget; shrink it on the narrowest phones so the page doesn't scroll sideways */
@media (max-width: 360px) {
  .cf-turnstile { transform: scale(.76); transform-origin: left top; margin-bottom: -16px; }
}
.form-field textarea {
  min-height: 140px;
  resize: vertical;
  /* ruled like the sheet, so it reads as a place to write */
  background: var(--cream) repeating-linear-gradient(to bottom, transparent 0 27px, rgba(var(--teal-rgb), .1) 27px 28px);
  background-origin: content-box;
  background-clip: padding-box;
  background-attachment: local;
  line-height: 28px;
}
.form-verify-msg {
  margin: 0.85rem 0 0;
  padding: 0.65rem 0.9rem;
  background: rgba(176,38,30,0.08);
  border: 1px solid rgba(176,38,30,0.25);
  border-radius: 6px;
  color: #b0261e;
  font-size: 0.9rem;
  font-weight: 500;
}
/* Submit matches every other audit button: a blush plaque */
.form-submit {
  width: 100%;
  background: var(--blush);
  color: var(--teal);
  border: none;
  border-radius: 999px;
  box-shadow: var(--pinstripe);
  padding: 1.1rem 1.6rem;
  font: 600 0.95rem var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s cubic-bezier(.2,.8,.2,1);
  -webkit-appearance: none;
  appearance: none;
  margin-top: 0.75rem;
}
.form-submit:hover { background: var(--blush-soft); transform: translateY(-2px); }
.form-submit:active { transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .contact-hero { padding: 4rem 3rem 4rem 4rem; }
  .contact-body { gap: 3rem; }
}
@media (max-width: 768px) {
  .contact-hero { padding: 2.5rem 1.25rem 3rem 2rem; }
  .contact-body {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 2.25rem 1.25rem 1.5rem; }

  /* Readability bump */
  .contact-info-label { font-size: 0.82rem; }
  .contact-info-value { font-size: 1.12rem; }
  .form-field label { font-size: 0.86rem; }
  .form-submit { font-size: 1rem; }
}
/* Cloudflare's human check is a fixed 300px box; keep it inside the card on small phones */
@media (max-width: 400px) {
  .contact-form { padding-left: 0.8rem; padding-right: 0.8rem; }
}
