/* ============================================================
   Contact Page Styles
   ============================================================ */

/* ── Page hero banner ── */
.page-hero {
  background: linear-gradient(105deg, #0d1b2e 0%, #1a3558 100%);
  padding: 64px 0 56px;
}
.page-hero .hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  padding-left: 40px;
  position: relative;
}
.page-hero .hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 2px;
  background: var(--primary);
}
.page-hero h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}
.page-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.62);
  max-width: 480px;
}
.page-hero-logo {
  display: block;
  height: 64px;
  width: auto;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ── Contact section ── */
.contact-section {
  padding: 72px 0 96px;
  background: #f7f9fc;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

/* ── Form panel ── */
.contact-form-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 40px 40px 44px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.contact-form-wrap h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 22px;
  color: var(--heading);
  font-weight: 700;
  margin-bottom: 6px;
}
.form-intro {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 28px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.field-row .field-group { margin-bottom: 0; }

.field-group label {
  font-size: 12px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 5px;
}
.req  { color: var(--primary); }
.optional { font-weight: 400; color: #a0aec0; }

.field-group input,
.field-group select,
.field-group textarea {
  padding: 10px 13px;
  border: 1.5px solid #dde3ec;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  color: var(--heading);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,163,242,0.12);
}
.field-group textarea { resize: vertical; }
.field-invalid { border-color: #e53e3e !important; }

.field-error {
  display: none;
  font-size: 11px;
  color: #e53e3e;
  margin-top: 4px;
  font-weight: 600;
}

.btn-submit {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 13px 30px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
  letter-spacing: 0.2px;
}
.btn-submit:hover { background: #1a90e0; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.65; cursor: default; transform: none; }
.btn-submit .btn-icon { width: 16px; height: 16px; }

/* ── Success state ── */
.form-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
}
.success-icon {
  width: 64px; height: 64px;
  background: #e6f9ef;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: #27ae60;
}
.success-icon svg { width: 30px; height: 30px; }
.form-success h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 20px;
  color: var(--heading);
  margin-bottom: 8px;
}
.form-success p { font-size: 14px; color: var(--text); margin-bottom: 24px; }
.btn-reset {
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 9px 22px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-reset:hover { background: var(--primary); color: #fff; }

/* ── Info panel ── */
.contact-info {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.info-card {
  display: flex;
  gap: 16px;
  padding: 24px 24px;
  border-bottom: 1px solid #f0f4f8;
}
.info-card:last-of-type { border-bottom: none; }

.info-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: #e8f4fd;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.info-icon svg { width: 20px; height: 20px; }

.info-card h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8a9bb0;
  margin-bottom: 4px;
}
.info-card p, .info-card a {
  font-size: 13px;
  color: var(--heading);
  line-height: 1.65;
}
.info-card a:hover { color: var(--primary); }

.info-divider {
  height: 1px;
  background: #f0f4f8;
}

.info-services {
  padding: 24px 24px 28px;
}
.info-services h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8a9bb0;
  margin-bottom: 12px;
}
.info-services ul { list-style: none; }
.info-services li {
  font-size: 13px;
  color: var(--heading);
  padding: 5px 0 5px 16px;
  position: relative;
  border-bottom: 1px solid #f5f7fa;
}
.info-services li:last-child { border-bottom: none; }
.info-services li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  background: var(--primary);
  border-radius: 50%;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info { position: static; }
}

@media (max-width: 560px) {
  .contact-form-wrap { padding: 28px 20px 32px; }
  .field-row { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 28px; }
}
