/* =========================================================
   contact.css — matches styles.css “Bone + Charcoal + Faded Blue”
   ========================================================= */

/* Contact section spacing (header is fixed) */
.content-section {
  padding-top: 120px;
  padding-bottom: 80px;
}

/* Contact page layout */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 5%;
}

/* Ensure container doesn't inherit old centering assumptions */
.contact .container {
  margin: 0 auto;
  text-align: center;
}

/* Title + intro */
.contact .section-title {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  margin-bottom: 0.75rem;
  color: var(--text);
}

.contact .section-text {
  font-size: 1.06rem;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

/* =========================================================
   Form card
   ========================================================= */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.75rem;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text);
  margin: 0 auto;
}

/* Labels */
.contact-form label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

/* Inputs */
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(31, 31, 31, 0.45);
}

/* Focus ring */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(107, 124, 147, 0.55); /* faded blue focus */
  box-shadow: 0 0 0 4px rgba(107, 124, 147, 0.18);
}

/* =========================================================
   Multi-step visibility
   ========================================================= */
.form-step {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.form-step-active {
  display: flex;
}

/* =========================================================
   Buttons — align with your global .btn, but keep layout sane
   ========================================================= */

/* Step 1 "Next" uses .btn directly, keep it from stretching weirdly */
.form-step .btn {
  align-self: flex-end;
}

/* Button row for steps with Back + Next/Submit */
.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.25rem;
}

/* Make sure .btn doesn’t look odd inside the form */
.contact-form .btn {
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
}

/* Back button as “secondary” */
.form-actions .prev-btn {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.form-actions .prev-btn:hover {
  transform: translateY(-1px);
  background: rgba(107, 124, 147, 0.08) !important;
}

/* =========================================================
   Progress indicator
   ========================================================= */
.form-progress {
  width: 100%;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.75rem;
  border: 1px solid var(--border);
}

.form-progress .progress-bar {
  height: 8px;
  width: 0%;
  background: var(--accent);
  transition: width 260ms ease;
  border-radius: 999px;
}

/* =========================================================
   intl-tel-input — make it match the light theme
   ========================================================= */
.iti {
  width: 100%;
}

.iti__selected-flag {
  border-radius: 10px 0 0 10px;
}

/* Country dropdown */
.iti__country-list {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
}

.iti__country {
  color: var(--text);
}

.iti__divider {
  border-bottom: 1px solid var(--border);
}

.iti__country.iti__highlight {
  background: rgba(107, 124, 147, 0.10);
}

/* Dial code + search */
.iti__selected-dial-code,
.iti__search-input {
  color: var(--text);
}

/* =========================================================
   Toasts — refined to match your new aesthetic
   ========================================================= */
#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms ease, transform 220ms ease;
  max-width: 360px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Small-screen tweaks
   ========================================================= */
@media (max-width: 560px) {
  .contact-form {
    padding: 1.25rem;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  .form-step .btn {
    align-self: stretch;
  }
}

.contact .container.contact-container {
  margin-top: 64px;
}

.field-error {
  border: 1px solid #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.req {
  color: #ef4444;
  margin-left: 4px;
  font-weight: 600;
}

