/* =========================================================
   ORIGINAL DIAGNÓSTICO — contato.css
   Seções exclusivas da página Contato (medidas do Figma, base 1366px)
   ========================================================= */

/* =================== TOPO =================== */
.contact-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: max(551px, 40.34vw); /* proporção do Figma (1366 × 551) */
  background: var(--c-green);
  color: var(--c-white);
}
/* foto ocupa a parte direita (826 de 1366 px no Figma) */
.contact-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 60.47%; }
.contact-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.contact-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--c-green) 40.885%, rgba(9, 61, 41, 0) 84.272%);
  pointer-events: none;
}
.contact-hero__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 24px 73px; /* centralizado na altura do banner; em 1366px cai na mesma posição do Figma */
}
.contact-hero__title {
  max-width: 699px;
  margin: 23px 0 39px;
  font-family: var(--ff-title);
  font-size: clamp(2.4rem, 1.2rem + 3.6vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
}
.contact-hero__text { max-width: 526px; font-size: 0.8125rem; font-weight: 600; line-height: 20px; }
.contact-band { height: 56px; }

/* =================== CANAIS DE ATENDIMENTO =================== */
.channels { padding: 57px var(--gutter) 47px; }
.channels__inner { max-width: 922px; margin-inline: auto; }
.channels__title { text-align: center; line-height: 40px; }
.channels__row { display: grid; }
.channels__row--top { grid-template-columns: 257fr 253fr 363fr; gap: 15px 24.5px; margin-top: 45px; }
.channels__row--bottom { grid-template-columns: 1fr 1fr; gap: 15px 30px; margin-top: 15px; }

.info-card {
  display: flex;
  align-items: center;
  min-height: 124px;
  background: var(--c-white);
  border: 1px solid #d5e3d8;
  border-radius: var(--radius);
  color: var(--c-green);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
a.info-card:hover { border-color: var(--c-gold); box-shadow: 0 6px 20px rgba(5, 45, 30, .06); }

/* redes sociais */
.info-card--social { flex-direction: column; justify-content: flex-start; padding-top: 24px; }
.info-card__socials { display: flex; gap: 14px; list-style: none; padding: 0; }
.info-card__socials a {
  display: grid; place-items: center;
  width: 49px; height: 46px;
  border: 1px solid #d5e3d8;
  border-radius: var(--radius);
  color: var(--c-gold);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.info-card__socials a:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-white); }
.info-card__socials .icon { width: 20px; height: 20px; }
.info-card__handle { margin-top: 19px; font-family: var(--ff-ui); font-size: 1rem; font-weight: 700; line-height: 20px; color: var(--c-green-text); }
.info-card__handle:hover { color: var(--c-gold-dark); }

/* telefones */
.info-card--phones { flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; padding-left: 39px; }
.info-card__phone {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-ui); font-size: 1rem; font-weight: 700; line-height: 25px;
  color: var(--c-gold);
}
a.info-card__phone:hover { color: var(--c-gold-dark); }
.info-card__phone-icon { width: 25px; height: 25px; flex-shrink: 0; color: var(--c-green); }

/* e-mail */
.info-card--mail { gap: 19px; padding-left: 19px; font-size: 0.875rem; color: #333; overflow-wrap: anywhere; } /* 14px: o contato@ cabe numa linha */
.info-card__mail-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 49px; height: 46px;
  border: 1px solid #d5e3d8;
  border-radius: var(--radius);
  color: var(--c-green);
}
.info-card__mail-icon .icon { width: 20px; height: 20px; }

/* endereço e funcionamento */
.info-card--split {
  display: grid;
  grid-template-columns: 149px 1px minmax(0, 1fr);
  align-items: center;
  min-height: 107px;
  padding: 19px 16px 19px 37px;
}
.info-card--split::before {
  content: "";
  grid-column: 2; grid-row: 1;
  width: 1px; height: 67px;
  background: #d9d9d9;
}
.info-card--hours { padding-left: 43px; }
.info-card__label { position: relative; top: -4px; grid-column: 1; grid-row: 1; font-family: var(--ff-body); font-size: 1.125rem; font-weight: 700; line-height: 24px; letter-spacing: -0.022em; color: var(--c-gold); }
.info-card__label--gray { color: #575757; }
.info-card__text { grid-column: 3; grid-row: 1; padding-left: 22px; font-size: 0.8125rem; font-weight: 500; line-height: 20px; color: #0a3e2a; }
.info-card--split address.info-card__text { max-width: 222px; }

.channels__cta {
  max-width: 567px;
  margin: 28px auto 0;
  font-family: var(--ff-ui);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  color: var(--c-green);
}

/* faixa OD antes do formulário (o verde sobe por cima da base, como no Figma) */
.contact-strip { height: 50px; background-size: auto 55px; background-position: -1px 0; }

/* =================== FORMULÁRIO =================== */
.appointment { padding: 58px var(--gutter) 62px; background: var(--c-green); }
.appointment__card {
  max-width: 920px;
  margin-inline: auto;
  padding: 74px 81px 38px 79px;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .05);
}
.appointment__title { font-family: var(--ff-body); font-size: 1.25rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-gold); line-height: 1.26; }
.appointment__subtitle { margin-top: 11px; font-size: 1rem; line-height: 1.26; color: var(--c-green); }

.appointment__form {
  display: grid;
  grid-template-columns: minmax(0, 380fr) minmax(0, 350fr);
  gap: 22px 30px;
  margin-top: 60px;
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label {
  margin-bottom: 9px;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-green);
}
.field input, .field select, .field textarea {
  width: 100%;
  height: 40px;
  padding: 0 20px;
  background: #f5f5f5;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--c-green);
  outline: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { background-color: #efefef; }
.field input:focus, .field select:focus, .field textarea:focus { background-color: var(--c-white); border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .18); }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4'%3E%3Cpath d='M.5.5 4 3.5 7.5.5' fill='none' stroke='%23093d29' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 21px center;
  background-size: 8px 4px;
}
.field select.is-empty { color: #9aa7a1; }
.field select option { color: var(--c-green); }
.field--message { margin-top: 4px; }
.field--message label { margin-bottom: 18px; }
.field textarea { height: 170px; padding: 16px 20px; border-radius: 10px; resize: vertical; line-height: 1.5; }
.field.is-invalid input, .field.is-invalid select { border-color: #d9534f; background-color: #fff7f6; }

.appointment__footer {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 17px;
}
.switch { display: inline-flex; align-items: center; gap: 16px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  position: relative; flex-shrink: 0;
  width: 52px; height: 26px;
  border-radius: 13px;
  background: #d9d9d9;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
  transition: background-color .2s var(--ease);
}
.switch__track::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--c-gold); }
.switch input:checked + .switch__track::after { transform: translateX(26px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.switch.is-invalid .switch__track { box-shadow: 0 0 0 2px #d9534f; }
.switch__text { font-family: var(--ff-ui); font-size: 0.875rem; color: #000; }
.switch__text a { color: #2753ab; letter-spacing: -0.03em; }
.switch__text a:hover { text-decoration: underline; }

.appointment__submit {
  min-width: 230px; min-height: 50px;
  padding: 0 14px 0 20px;
  justify-content: space-between;
  background: var(--c-green);
  border-radius: var(--radius);
  color: var(--c-white);
  font-size: 0.875rem;
  font-weight: 700;
}
.appointment__submit .icon { color: var(--c-gold); width: 22px; height: 16px; }
.appointment__submit:hover { background: var(--c-green-deep); }
.appointment__submit:disabled { opacity: .7; cursor: default; }
.appointment__feedback { grid-column: 1 / -1; color: var(--c-green); }
.appointment__feedback:empty { display: none; }
.appointment__feedback.is-error { color: #c0392b; }
.appointment__feedback.is-success { color: #1e7a46; }

/* =================== RESPONSIVO =================== */
@media (max-width: 1100px) {
  .channels__row--top { grid-template-columns: 1fr 1fr; }
  .info-card--mail { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .contact-hero { min-height: 0; display: flex; flex-direction: column; }
  .contact-hero__media { position: relative; width: 100%; height: 62vw; min-height: 230px; }
  .contact-hero__media img {
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .contact-hero::after { display: none; }
  .contact-hero__content { justify-content: flex-start; padding-block: 1.5rem 3.5rem; }
  .contact-hero__title { margin-bottom: 24px; }

  .appointment__card { padding: 3rem 2rem 2.25rem; }
}

@media (max-width: 640px) {
  .channels { padding-top: 3rem; }
  .channels__row--top, .channels__row--bottom { grid-template-columns: 1fr; }
  .info-card { min-height: 104px; }
  .info-card--phones { align-items: center; padding-left: 0; }
  .info-card--mail { justify-content: center; gap: 12px; padding: 16px 12px; font-size: 0.875rem; }
  .info-card--split, .info-card--hours { grid-template-columns: 1fr; row-gap: 10px; padding: 22px; text-align: center; }
  .info-card--split::before { display: none; }
  .info-card__label, .info-card__text { grid-column: 1; grid-row: auto; padding-left: 0; }
  .info-card--split address.info-card__text { max-width: none; }
  .channels__cta { font-size: 1.125rem; line-height: 1.4; }

  .appointment { padding-inline: 12px; }
  .appointment__card { padding: 2.25rem 1.25rem 1.75rem; }
  .appointment__title { font-size: 1.0625rem; letter-spacing: .14em; }
  .appointment__form { grid-template-columns: 1fr; margin-top: 2rem; }
  .appointment__footer { flex-direction: column; align-items: stretch; }
  .appointment__submit { width: 100%; }
}
@media (max-width: 385px) {
  .info-card--mail { font-size: 0.8125rem; }
  .info-card__mail-icon { display: none; } /* sobra espaço para o e-mail inteiro */
}
