.af-contact-page {
  overflow: clip;
}

.af-contact-hero {
  position: relative;
  color: white;
  padding: 62px 0 34px;
}

.af-contact-hero__media,
.af-contact-hero__overlay {
  position: absolute;
  inset: 0;
}

.af-contact-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-contact-hero__overlay {
  background:
    linear-gradient(90deg, rgba(5, 45, 53, 0.88) 0%, rgba(5, 45, 53, 0.62) 44%, rgba(5, 45, 53, 0.26) 100%),
    linear-gradient(180deg, rgba(0, 77, 42, 0.16), rgba(5, 45, 53, 0.22));
}

.af-contact-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: center;
  min-height: 450px;
}

.af-contact-hero__copy {
  padding: 22px 0 18px;
}

.af-contact-hero__copy h1,
.af-contact-quick-card h2,
.af-contact-final-cta h2,
.af-contact-card h2 {
  margin: 0;
}

.af-contact-hero__copy h1 {
  max-width: 10ch;
  font-size: clamp(2.9rem, 4.7vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.af-contact-hero__copy > p {
  max-width: 52ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.72;
  font-size: 1rem;
}

.af-contact-hero__proofs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.af-contact-hero__proofs article {
  display: flex;
  gap: 14px;
  align-items: start;
}

.af-contact-hero__proofs span,
.af-contact-quick-card__icon,
.af-contact-card__icon,
.af-contact-map-card__icon,
.af-contact-faq-card__icon,
.af-contact-final-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.af-contact-hero__proofs span,
.af-contact-quick-card__icon,
.af-contact-card__icon,
.af-contact-map-card__icon,
.af-contact-faq-card__icon,
.af-contact-final-cta__icon,
.af-contact-form__privacy svg {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--af-green), var(--af-green-dark));
}

.af-contact-hero__proofs span svg,
.af-contact-quick-card__icon svg,
.af-contact-card__icon svg,
.af-contact-map-card__icon svg,
.af-contact-faq-card__icon svg,
.af-contact-final-cta__icon svg,
.af-contact-form__privacy svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.af-contact-hero__proofs strong,
.af-contact-hero__proofs small {
  display: block;
}

.af-contact-hero__proofs small {
  color: rgba(255, 255, 255, 0.72);
}

.af-contact-quick-card {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  color: var(--af-text);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 70px rgba(5, 45, 53, 0.18);
  text-align: center;
}

.af-contact-quick-card__icon {
  margin: 0 auto 18px;
}

.af-contact-quick-card p {
  margin: 14px 0 0;
  color: var(--af-muted);
  line-height: 1.7;
}

.af-contact-quick-card strong {
  display: block;
  margin-top: 22px;
  color: var(--af-green);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.af-section--contact-cards,
.af-section--contact-main,
.af-section--contact-faq,
.af-section--contact-cta {
  padding-top: 20px;
}

.af-contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.af-contact-card,
.af-contact-form-panel,
.af-contact-location-panel,
.af-contact-faq-panel {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--af-border);
  background: white;
  box-shadow: var(--af-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.af-contact-card:hover,
.af-contact-location-panel:hover,
.af-contact-faq-panel:hover {
  transform: translateY(-4px);
  border-color: var(--af-border-strong);
  box-shadow: var(--af-shadow-soft);
}

.af-contact-card__icon {
  margin-bottom: 16px;
}

.af-contact-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.af-contact-card a,
.af-contact-card p {
  display: block;
  margin: 0;
  color: var(--af-text);
  line-height: 1.7;
}

.af-contact-card small {
  display: block;
  margin-top: 8px;
  color: var(--af-muted);
}

.af-contact-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 20px;
}

.af-contact-form-panel .af-section-heading p {
  margin-top: 12px;
  color: var(--af-muted);
  line-height: 1.7;
}

.af-contact-form {
  display: grid;
  gap: 18px;
}

.af-contact-form__message {
  padding: 14px 16px;
  border-radius: 18px;
  color: #0b4d30;
  background: rgba(20, 168, 92, 0.12);
  border: 1px solid rgba(20, 168, 92, 0.2);
  line-height: 1.6;
}

.af-contact-form-panel input,
.af-contact-form-panel select,
.af-contact-form-panel textarea {
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.af-contact-form-panel input:hover,
.af-contact-form-panel select:hover,
.af-contact-form-panel textarea:hover {
  border-color: var(--af-border-strong);
}

.af-contact-form-panel input:focus,
.af-contact-form-panel select:focus,
.af-contact-form-panel textarea:focus {
  border-color: rgba(20, 168, 92, 0.36);
  box-shadow: 0 0 0 4px rgba(20, 168, 92, 0.08);
  background: #fff;
}

.af-contact-checkbox {
  display: flex;
  gap: 12px;
  align-items: start;
  color: var(--af-muted);
  line-height: 1.6;
}

.af-contact-checkbox input {
  margin-top: 3px;
}

.af-contact-form__submit {
  width: 100%;
  min-height: 56px;
}

.af-contact-form__privacy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--af-muted);
}

.af-contact-form__privacy svg {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: none;
  color: var(--af-green);
}

.af-contact-map-card {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f7faf8);
  border: 1px solid var(--af-border);
}

.af-contact-map-card__media {
  height: 250px;
}

.af-contact-map-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af-contact-map-card__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px;
}

.af-contact-map-card__body h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.af-contact-map-card__body p {
  margin: 0 0 18px;
  color: var(--af-muted);
  line-height: 1.7;
}

.af-contact-map-card__button {
  border-color: var(--af-border);
}

.af-contact-faq-panel {
  background: linear-gradient(180deg, #fbfcfb, #f4f8f6);
}

.af-contact-faq-panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.af-contact-faq-panel__head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--af-green);
  font-weight: 700;
}

.af-contact-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.af-contact-faq-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--af-border);
  background: white;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.af-contact-faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(5, 45, 53, 0.12);
}

.af-contact-faq-card__icon {
  margin-bottom: 16px;
}

.af-contact-faq-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.af-contact-faq-card p {
  margin: 0;
  color: var(--af-muted);
  line-height: 1.7;
}

.af-contact-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 32px;
  border-radius: 28px;
  color: white;
  background: linear-gradient(135deg, var(--af-green), var(--af-green-dark));
  box-shadow: var(--af-shadow);
}

.af-contact-final-cta__copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.af-contact-final-cta p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 1180px) {
  .af-contact-hero__layout,
  .af-contact-cards-grid,
  .af-contact-main-layout,
  .af-contact-faq-grid {
    grid-template-columns: 1fr 1fr;
  }

  .af-contact-hero__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .af-contact-hero {
    padding: 48px 0 24px;
  }

  .af-contact-hero__copy {
    padding-top: 20px;
  }

  .af-contact-hero__copy h1 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .af-contact-hero__proofs,
  .af-contact-cards-grid,
  .af-contact-main-layout,
  .af-contact-faq-grid {
    grid-template-columns: 1fr;
  }

  .af-contact-card,
  .af-contact-form-panel,
  .af-contact-location-panel,
  .af-contact-faq-panel {
    padding: 22px;
  }

  .af-contact-map-card__media {
    height: 220px;
  }

  .af-contact-map-card__body,
  .af-contact-faq-panel__head,
  .af-contact-final-cta,
  .af-contact-final-cta__copy {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}
