/* ============================================================
   08-contact.css — contact / quote form section
   Module: <section id="contact">
   Dark navy background. Two columns: contact info left, form right.
   Form wired for Netlify (data-netlify="true").
   ============================================================ */

#contact {
  background: var(--c-navy);
  color: var(--c-white);
  border-top: 4px solid var(--c-yellow);
}
#contact h2, #contact h3 { color: var(--c-white); }
#contact .eyebrow { color: var(--c-yellow); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--s-7);
  align-items: start;
}

/* ---- Left: info + direct contact ---- */
.contact-info h2 { margin-bottom: var(--s-3); }
.contact-info > p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--s-5);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.contact-method {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.contact-method-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-method-icon svg {
  width: 20px; height: 20px;
  stroke: var(--c-yellow);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-method-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  display: block;
}
.contact-method-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--c-white);
  display: block;
  margin-top: 2px;
}
.contact-method-value a {
  color: var(--c-white);
  transition: color 0.15s ease;
}
.contact-method-value a:hover { color: var(--c-yellow); }

.contact-promise {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.contact-promise strong { color: var(--c-yellow); }

/* ---- Right: the form ---- */
.contact-form-wrap {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-lg);
}
.contact-form-wrap h3 {
  color: var(--c-navy);
  margin-bottom: var(--s-5);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.form-full { grid-column: 1 / -1; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
}
.form-field label .required {
  color: var(--c-green);
  margin-left: 2px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg);
  font-family: var(--f-body);
  font-size: 0.97rem;
  color: var(--c-black);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--c-navy);
  background: var(--c-white);
  box-shadow: 0 0 0 3px rgba(15, 59, 95, 0.1);
}
.form-field textarea { resize: vertical; min-height: 110px; }

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-4);
}
.form-small {
  font-size: 0.8rem;
  color: var(--c-muted);
  flex: 1;
  min-width: 140px;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: var(--s-5);
}
.form-success.is-visible { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.form-success-icon {
  width: 60px; height: 60px;
  background: var(--c-green);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.form-success-icon svg {
  width: 28px; height: 28px;
  stroke: var(--c-white);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success p { color: var(--c-muted); margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: var(--s-4); }
  .form-submit-row { flex-direction: column; align-items: stretch; }
  .form-submit-row .btn { width: 100%; justify-content: center; }
}
