/* =========================================================
   CONTACT PAGE — contact.css
   Depends on index.css for :root variables, reset, layout helpers,
   .container, .section-tag, .section-title, .form-* classes.
   ========================================================= */

/* ===== HERO ===== */
.contact-hero {
  position: relative;
  background: var(--main-color);
  overflow: hidden;
  padding: 72px 0 56px;
}

/* Decorative background shapes */
.contact-hero-bg { position: absolute; inset: 0; pointer-events: none; }

.contact-hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--accent-light);
}
.contact-hero-shape--1 {
  width: 480px; height: 480px;
  top: -160px; right: -120px;
}
.contact-hero-shape--2 {
  width: 260px; height: 260px;
  bottom: -80px; left: 10%;
  opacity: 0.05;
}
.contact-hero-shape--3 {
  width: 140px; height: 140px;
  top: 40px; left: 42%;
  opacity: 0.06;
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-hero-text .section-tag { color: #90c8f4; }

.contact-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}

.contact-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 520px;
}

/* Quick-contact pills */
.contact-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-quicklink {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
  min-width: 220px;
}

.contact-quicklink:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

.contact-quicklink-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-quicklink-icon img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

.contact-quicklink-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
}
.contact-quicklink-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}


/* ===== MAIN SECTION ===== */
.contact-main-section {
  background: var(--bg-light);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--border);
}

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


/* ===== FORM WRAPPER ===== */
.contact-form-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 40px 40px 36px;
}

.contact-form-header { margin-bottom: 28px; }

.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--main-color);
  margin-bottom: 6px;
}

.contact-form-subtitle {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Topic tabs */
.contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.topic-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.topic-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: var(--accent-light);
}
.topic-btn.active {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}
.topic-icon { font-size: 15px; line-height: 1; }

/* Callback options */
.callback-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.callback-option { cursor: pointer; }
.callback-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.callback-chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  background: var(--bg-light);
  transition: all 0.18s;
  cursor: pointer;
}
.callback-option input[type="radio"]:checked + .callback-chip {
  background: var(--accent-light);
  border-color: var(--accent-color);
  color: var(--accent-color);
  font-weight: 600;
}
.callback-option:hover .callback-chip { border-color: var(--accent-color); }

/* Char counter */
.char-counter {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

/* Consent checkbox */
.consent-group { margin-bottom: 22px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.consent-label input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.consent-box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--bg-white);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
  margin-top: 1px;
}
.consent-label input[type="checkbox"]:checked + .consent-box {
  background: var(--main-color);
  border-color: var(--main-color);
}
.consent-label input[type="checkbox"]:checked + .consent-box::after {
  content: '✓';
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.consent-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}
.consent-link {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Field errors */
.field-error {
  display: block;
  font-size: 13px;
  color: var(--alt-color);
  margin-top: 4px;
  min-height: 18px;
}
.form-input.has-error { border-color: var(--alt-color); }
.form-input.has-error:focus { box-shadow: 0 0 0 3px rgba(201,35,35,0.1); }

/* Submit button */
.contact-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--main-color);
  color: #fff;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(1,52,133,0.25);
  letter-spacing: 0.01em;
}
.contact-submit-btn:hover {
  background: #0144a8;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(1,52,133,0.35);
}
.contact-submit-btn:active { transform: translateY(0); }
.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.submit-icon img { width: 18px; height: 18px; }

/* Loading spinner on submit */
.contact-submit-btn.loading .submit-text::after {
  content: ' …';
}

/* Success state */
.form-success {
  text-align: center;
  padding: 40px 20px;
  animation: fadeInUp 0.4s ease both;
}
.success-icon {
  width: 60px; height: 60px;
  background: #e6f4ea;
  color: #2d7d46;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.success-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--main-color);
  margin-bottom: 8px;
}
.success-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ===== SIDEBAR ===== */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sidebar-card-icon {
  width: 36px; height: 36px;
  background: var(--accent-light);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-card-icon img { width: 18px; height: 18px; }

.sidebar-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-color);
}

/* Office address */
.office-address {
  font-style: normal;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.office-address strong { color: var(--text-dark); }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
  transition: gap 0.2s;
}
.map-link:hover { text-decoration: underline; }

/* Hours list */
.hours-list { display: flex; flex-direction: column; gap: 10px; }
.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bg-light);
}
.hours-item:last-child { border-bottom: none; padding-bottom: 0; }
.hours-day { color: var(--text-light); font-weight: 500; }
.hours-time { font-weight: 600; color: var(--main-color); }
.hours-item--closed .hours-time { color: var(--text-light); font-weight: 400; font-style: italic; }

/* Team list */
.team-list { display: flex; flex-direction: column; gap: 16px; }
.team-member {
  display: flex;
  align-items: center;
  gap: 14px;
}
.team-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--main-color);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.team-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.team-role {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 3px;
}
.team-phone {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
}
.team-phone:hover { text-decoration: underline; }


/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--bg-white);
  padding: 80px 0;
}

.faq-header {
  max-width: 560px;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.faq-question:hover { background: var(--bg-light); color: var(--main-color); }
.faq-question[aria-expanded="true"] {
  background: var(--accent-light);
  color: var(--main-color);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-light);
  transition: transform 0.25s;
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.faq-answer {
  padding: 0 28px 22px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.75;
  animation: fadeInUp 0.25s ease both;
}
.faq-answer[hidden] { display: none; }


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .contact-main-grid {
    grid-template-columns: 1fr;
  }
  .contact-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar-office { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .contact-form-wrapper { padding: 28px 22px 24px; }
  .contact-quicklinks { flex-direction: column; }
  .contact-quicklink { min-width: unset; }
  .contact-sidebar { grid-template-columns: 1fr; }
  .sidebar-office { grid-column: auto; }
  .contact-topics { gap: 6px; }
  .topic-btn { font-size: 13px; padding: 7px 12px; }
}

@media (max-width: 480px) {
  .contact-hero { padding: 48px 0 40px; }
  .callback-options { gap: 6px; }
  .faq-question { padding: 18px 20px; font-size: 15px; }
  .faq-answer { padding: 0 20px 18px; }
}