/* ============================================================
   APEC 2026 — Contact Component Stylesheet (contact.css)
   ============================================================ */

/* ── Top Grid Block ── */
#contact-departments {
  background-color: var(--white);
  padding: 80px 5% 60px;
}

.container-text-center {
  text-align: center;
  margin-bottom: 60px;
}

.contact-welcome-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: #1e293b;
  line-height: 1.6;
}

.underline-accent {
  border-bottom: 2px solid #1e293b;
  padding-bottom: 2px;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.dept-col h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.dept-col p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.dept-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dept-icon {
  font-size: 1.1rem;
}

.dept-info-row a {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s;
}

.dept-info-row a:hover {
  color: var(--primary-blue);
}

/* ── Form & Map Component Grid block ── */
#form-map-split-section {
  background-color: #f8fafc; /* Subtle grey background */
  padding: 80px 5%;
}

.form-map-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: stretch;
}

.form-card-wrapper {
  background-color: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 40px;
}

.form-card-wrapper h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.form-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Form Fields */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: #f1f5f9; /* Soft filled field style */
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #334155;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #cbd5e1;
  background-color: #e2e8f0;
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

/* Yellow Flat Call To Action Button styling */
.submit-btn-yellow {
  background-color: #fcd34d;
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.submit-btn-yellow:hover {
  background-color: #fbbf24;
}

.submit-btn-yellow span {
  font-size: 1.1rem;
}

/* Map frame handling */
.map-card-wrapper {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.map-card-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  color: #0f172a;
}

/* ── Responsive adjustments ── */
@media (max-width: 960px) {
  .department-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .form-map-layout {
    grid-template-columns: 1fr;
  }
  .map-card-wrapper {
    height: 400px;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-card-wrapper {
    padding: 24px;
  }
}