/* =========================
   CONTACT PAGE (page-specific only)
   Global header/nav/footer/fonts are handled by /styles.css
========================= */

/* Header block */
.contact-header-section{
  background:#f1f8f8;
  text-align:center;
  padding: var(--section-y) 18px;
  border-radius: 12px;
  margin-top: var(--section-y-sm);
}

.contact-header-section h1{
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 1.9em;
  font-weight: 800;
}

.contact-intro{
  margin: 0 auto;
  max-width: 900px;
  color:#555;
  font-size: 1.05em;
  line-height: 1.65;
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Layout: form + sidebar */
.contact-form-wrapper{
  display:grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 24px;
  padding: var(--section-y) 0;
  align-items:start;
}

/* Form card */
.contact-form{
  background:#fff;
  border-radius:12px;
  padding:26px;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
  border:1px solid #e6f0f0;

  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.form-row{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-row label{
  font-weight:800;
  color: var(--teal);
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.form-row small{
  font-weight:600;
  color:#666;
}

.half-width{
  grid-column: span 1;
}

.full-width{
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 15px;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid #d9e6e6;
  background: #f8fbfb;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59, 153, 150, 0.15);
  background:#ffffff;
}

.full-width textarea{
  resize: vertical;
  min-height: 160px;
}

.contact-error{
  margin: 4px 0 0;
  color:#b00020;
  font-size:0.95em;
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Submit */
.submit-button{
  grid-column: 1 / -1;
  width:100%;
  padding: 12px 16px;
  border:none;
  border-radius: 10px;
  background-color: var(--teal);
  color:#fff;
  font-weight: 900;
  cursor:pointer;
  font-size: 16px;
  transition: transform 0.06s ease, opacity 0.2s ease;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.submit-button:hover{
  opacity: 0.92;
}

.submit-button:active{
  transform: translateY(1px);
}

/* Sidebar */
.contact-sidebar .sidebar-box{
  background:#ffffff;
  border-radius:12px;
  padding:22px;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
  border-left: 6px solid var(--teal);
  border: 1px solid #e6f0f0;
}

.contact-sidebar h3{
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 1.15em;
}

.contact-sidebar p{
  margin: 0;
  color:#555;
  line-height: 1.6;
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.sidebar-link{
  color: var(--teal);
  font-weight: 800;
  text-decoration:none;
}

.sidebar-link:hover{
  text-decoration: underline;
}

/* Thank you */
.thank-you-message{
  padding: var(--section-y) 0;
  text-align:center;
}

.thank-you-message h2{
  margin: 0 0 10px;
  color: var(--teal);
}

.thank-you-message p{
  margin:0;
  color:#555;
  font-family:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Accessibility helper */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border:0;
}

/* Responsive */
@media (max-width: 900px){
  .contact-form-wrapper{
    grid-template-columns: 1fr;
  }

  .contact-form{
    grid-template-columns: 1fr;
  }

  .half-width{
    grid-column: 1 / -1;
  }
}
