.contact-page {
  overflow: hidden;
}

.contact-hero {
  position: relative;
  padding: var(--subpage-hero-pad-top) 0 var(--subpage-hero-pad-bottom);
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(87, 193, 223, 0.2) 1px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.4;
  pointer-events: none;
}

.contact-hero::after {
  content: "";
  position: absolute;
  top: -88px;
  right: -72px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(87, 193, 223, 0.18), transparent 72%);
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: var(--subpage-two-col-gap);
  align-items: start;
}

.contact-hero-copy {
  max-width: 610px;
}

.contact-hero h1 {
  margin: var(--subpage-title-top-gap) 0 var(--subpage-title-bottom-gap);
  font-size: clamp(2rem, 4vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 500;
  max-width: 560px;
}

.contact-hero-copy > p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.6;
  max-width: 540px;
}

.contact-hero-actions {
  margin-top: var(--subpage-hero-cta-margin);
}

.contact-photo-frame {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border-radius: 34px;
  border: 1px solid rgba(87, 193, 223, 0.22);
  background: linear-gradient(140deg, rgba(87, 193, 223, 0.12), rgba(255, 255, 255, 0.9));
  box-shadow: var(--shadow-soft);
}

.contact-photo {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: 54% 50%;
}

.contact-photo-sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 22, 33, 0.04) 0%, rgba(8, 22, 33, 0.08) 46%, rgba(8, 22, 33, 0.38) 100%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 34%);
}

.contact-photo-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(11, 21, 32, 0.5);
  backdrop-filter: blur(10px);
}

.contact-photo-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  line-height: 1.48;
  max-width: 420px;
}

.contact-form-section,
.contact-faq-section {
  padding: 0 0 var(--subpage-stack-space);
}

.contact-form-shell,
.contact-faq-shell {
  border-radius: var(--subpage-card-radius);
  border: 1px solid rgba(87, 193, 223, 0.18);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: var(--subpage-card-padding);
}

.contact-form-shell h2,
.contact-faq-shell h2 {
  margin: 0;
  color: #132430;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.18;
  font-weight: 500;
}

.contact-form {
  margin-top: 20px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form-field {
  display: grid;
  gap: 7px;
}

.contact-form-field--full {
  grid-column: 1 / -1;
}

.contact-form-label {
  color: #304552;
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-form-label strong {
  color: #db5d5d;
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  border: 1px solid rgba(87, 193, 223, 0.28);
  border-radius: 16px;
  background: #f7fafc;
  color: #18303f;
  font: inherit;
  padding: 14px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: var(--accent-dark);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(87, 193, 223, 0.1);
  outline: 0;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: #97a4b0;
}

.contact-form-actions {
  margin-top: 18px;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.contact-form-submit {
  width: min(100%, 360px);
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: var(--accent-dark);
  color: #ffffff;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.contact-form-submit:hover {
  transform: translateY(-2px);
  background: #36a7cb;
}

.contact-form-submit:disabled {
  transform: none;
  opacity: 0.72;
  cursor: wait;
}

.contact-form-status {
  min-height: 1.5em;
  margin: 0;
  color: #5f6871;
  font-size: 0.94rem;
  line-height: 1.5;
  text-align: center;
}

.contact-form-status.is-success {
  color: #157a4f;
}

.contact-form-status.is-error {
  color: #af2f45;
}

.contact-form-direct {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.contact-form-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  min-width: 132px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(87, 193, 223, 0.3);
  background: #ffffff;
  color: #1d617c;
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-form-pill--whatsapp {
  border-color: rgba(37, 211, 102, 0.28);
  color: #1ea952;
}

.faq-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: 20px;
  border: 1px solid rgba(87, 193, 223, 0.16);
  background: #fdfefe;
  padding: 16px 18px;
}

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  color: #162737;
  font-size: 0.98rem;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(87, 193, 223, 0.12);
  color: #1d627d;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 12px 0 0;
  color: #576a78;
  font-size: 0.92rem;
  line-height: 1.52;
}

@media (max-width: 960px) {
  .contact-hero-inner,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-photo-frame,
  .contact-photo {
    min-height: 380px;
  }

  .contact-form-field--full {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .contact-hero-inner {
    gap: 14px;
  }

  .contact-hero h1 {
    font-size: clamp(1.82rem, 8vw, 2.42rem);
  }

  .contact-hero-copy > p,
  .contact-photo-copy,
  .faq-list p,
  .contact-form-status {
    font-size: 0.88rem;
    line-height: 1.48;
  }

  .contact-photo-frame,
  .contact-photo {
    min-height: 264px;
  }

  .contact-photo-frame,
  .contact-form-shell,
  .contact-faq-shell,
  .faq-list details {
    border-radius: var(--subpage-card-radius-sm);
  }

  .contact-photo-caption,
  .contact-form-shell,
  .contact-faq-shell {
    padding: var(--subpage-card-padding);
  }

  .contact-photo-caption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    border-radius: 18px;
  }

  .contact-form-shell h2,
  .contact-faq-shell h2 {
    font-size: 1.18rem;
  }

  .contact-form {
    margin-top: 16px;
  }

  .contact-form-grid,
  .faq-list {
    gap: 10px;
  }

  .contact-form-field input,
  .contact-form-field textarea {
    padding: 12px 13px;
    border-radius: 14px;
  }

  .contact-form-field textarea {
    min-height: 108px;
  }

  .faq-list summary {
    font-size: 0.91rem;
    line-height: 1.4;
  }

  .contact-form-actions {
    gap: 10px;
  }

  .contact-form-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 15px;
    font-size: 0.93rem;
  }

  .contact-form-direct {
    width: 100%;
    flex-direction: column;
  }

  .contact-form-pill {
    min-height: 44px;
    width: 100%;
  }

  .faq-list details {
    padding: 15px 16px;
  }
}
