/* =========================================
   CONTACT — layout inspired by attached refs
========================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px) 0 clamp(28px, 4vw, 40px);
  background:
    radial-gradient(ellipse 55% 60% at 0% 0%, rgba(204, 251, 241, 0.55), transparent 60%),
    radial-gradient(ellipse 45% 50% at 100% 20%, rgba(240, 253, 250, 0.9), transparent 55%),
    #ffffff;
  text-align: center;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.contact-hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.contact-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--primary-800);
}

.contact-hero p {
  margin: 0 auto 22px;
  max-width: 48ch;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--text-secondary);
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-btn--primary {
  background: var(--primary-700);
  color: #ffffff;
  border: 1.5px solid var(--primary-700);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.contact-btn--primary:hover {
  background: var(--primary-800);
  border-color: var(--primary-800);
  color: #ffffff;
  transform: translateY(-1px);
}

.contact-btn--secondary {
  background: transparent;
  color: var(--primary-800);
  border: 1.5px solid rgba(15, 118, 110, 0.28);
}

.contact-btn--secondary:hover {
  background: rgba(15, 118, 110, 0.06);
  border-color: var(--primary-700);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .contact-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-btn {
    width: 100%;
  }
}

/* ---------- Main: info + form ---------- */
.contact-main {
  padding: clamp(16px, 3vw, 28px) 0 clamp(48px, 7vw, 72px);
  background: #ffffff;
}

.contact-main-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.contact-info {
  display: grid;
  gap: 28px;
  align-content: start;
  padding: clamp(28px, 3.5vw, 40px);
  background:
    linear-gradient(180deg, #f0fdfa 0%, #f8fafc 48%, #f8fafc 100%);
  border-right: 1px solid var(--border);
}

.contact-info-group {
  display: grid;
  gap: 20px;
}

.contact-info-group + .contact-info-group {
  padding-top: 24px;
  border-top: 1px solid rgba(15, 118, 110, 0.12);
}

.contact-info-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.contact-info-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-700);
}

.contact-info-icon svg,
.contact-info-icon i {
  width: 20px;
  height: 20px;
  stroke-width: 1.9;
}

.contact-info-item h3 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-info-item p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  word-break: break-word;
}

.contact-info-item a {
  color: var(--primary-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

.contact-info-item a:hover {
  color: var(--primary-800);
}

.contact-info-note {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-light);
}

.contact-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: #ffffff;
  color: var(--primary-800);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.contact-maps-link svg,
.contact-maps-link i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-maps-link span {
  flex: 1;
}

.contact-maps-link:hover {
  background: rgba(15, 118, 110, 0.06);
  border-color: var(--primary-700);
  transform: translateY(-1px);
}

.contact-form-panel {
  min-width: 0;
  padding: clamp(32px, 4vw, 48px);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 20px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field--full {
  margin-bottom: 24px;
}

.contact-field span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-field span em {
  font-style: normal;
  color: var(--danger);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-field input,
.contact-field select {
  height: 48px;
  padding: 0 14px;
}

.contact-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.contact-field textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--primary-700);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  background: var(--primary-700);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-submit:hover {
  background: var(--primary-800);
  transform: translateY(-1px);
}

.contact-alert {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.contact-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.contact-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ---------- FAQ ---------- */
.contact-faq {
  padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 56px);
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(204, 251, 241, 0.45), transparent 70%),
    #f8fafc;
}

.contact-faq-shell {
  max-width: 920px;
  margin: 0 auto;
}

.contact-faq-intro {
  max-width: 560px;
  margin: 0 auto 36px;
  text-align: center;
}

.contact-faq-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-700);
}

.contact-faq-intro h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary-800);
}

.contact-faq-intro h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-700), var(--primary-400));
}

.contact-faq-intro p {
  margin: 18px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.contact-faq-list {
  display: grid;
  gap: 12px;
}

.contact-faq-item {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.contact-faq-item:hover {
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: 0 14px 36px rgba(15, 118, 110, 0.08);
  transform: translateY(-1px);
}

.contact-faq-item[open] {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.1);
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.95) 0%, #ffffff 55%);
}

.contact-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text-primary);
}

.contact-faq-item summary::-webkit-details-marker {
  display: none;
}

.contact-faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-faq-index {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary-700);
  font-variant-numeric: tabular-nums;
}

.contact-faq-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-700);
  transition: background 0.25s ease, transform 0.28s ease, color 0.25s ease;
}

.contact-faq-toggle svg,
.contact-faq-toggle i {
  width: 18px;
  height: 18px;
  transition: transform 0.28s ease;
}

.contact-faq-item[open] .contact-faq-toggle {
  background: var(--primary-700);
  color: #ffffff;
}

.contact-faq-item[open] .contact-faq-toggle svg,
.contact-faq-item[open] .contact-faq-toggle i {
  transform: rotate(180deg);
}

.contact-faq-answer {
  padding: 0 22px 22px 56px;
}

.contact-faq-answer p {
  margin: 0;
  border-top: 1px solid rgba(15, 118, 110, 0.1);
  padding-top: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ---------- Map (flush with footer) ---------- */
.contact-map {
  margin: 0;
  padding: 0;
  background: #ffffff;
  line-height: 0;
}

.contact-map-frame {
  width: 100%;
  height: clamp(340px, 42vw, 460px);
  overflow: hidden;
  border: 0;
  margin: 0;
}

.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  vertical-align: top;
}

/* Map sits directly on the footer */
.contact-map + .footer {
  margin-top: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-main-shell {
    grid-template-columns: 1fr;
  }

  .contact-info {
    gap: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-faq-item summary {
    padding: 16px 18px;
  }

  .contact-faq-q {
    font-size: 15px;
    gap: 10px;
  }

  .contact-faq-answer {
    padding: 0 18px 18px 18px;
  }
}
