/* ================================
   CONTACT PAGE (scoped)
   - Uses shared slab system from work.css
   - Avoids overriding global .btn styles (CTA system)
   ================================ */

/* Keep both columns top-aligned */
.slab-hero--contact .slab-grid{
  align-items: start;
}

/* Left stack: no weird offsets */
.slab-hero--contact .hero-stack{
  margin: 0;
  align-self: start;
}

/* Right column behaves like the "reading lane" */
.slab-hero--contact .hero-slab__right{
  width: 100%;
  max-width: 58ch;
  justify-self: start;
  align-self: start;
  margin: 0;
  padding: 0;
}

/* Intro copy above form */
.slab-hero--contact .slab-copy{
  margin: 0 0 1.25rem;
}

/* ================================
   Form card
   ================================ */

.contact-form{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;

  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Hide honeypot */
.contact-honeypot{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form rows */
.contact-form .form-row{
  display: flex;
  flex-direction: column;
}

/* Labels */
.contact-form .form-row label{
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Inputs + textarea */
.contact-form .form-row input,
.contact-form .form-row textarea{
  width: 100%;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid #d0d4e0;
  font: inherit;
  color: inherit;
  box-sizing: border-box;
  background-color: #f9fafb;
}

.contact-form .form-row textarea{
  resize: vertical;
  min-height: 160px;
}

/* Focus */
.contact-form .form-row input:focus,
.contact-form .form-row textarea:focus{
  outline: 2px solid #022351;
  outline-offset: 1px;
  background: #fff;
}

/* Error */
.form-error{
  color: #b00020;
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

/* ================================
   Submit button
   - IMPORTANT: do not restyle .btn globally
   - Only set layout/width here
   ================================ */

.contact-form .btn{
  align-self: flex-start; /* matches CTA buttons */
  width: auto;
  margin-top: 0.25rem;
}

/* On small screens, full width feels better */
@media (max-width: 640px){
  .contact-form{
    padding: 1.25rem;
  }

  .contact-form .btn{
    width: 100%;
    justify-content: center;
  }
}
