:root {
  color-scheme: light;
  --ink: #443a36;
  --muted: #827570;
  --rose: #a96f70;
  --rose-dark: #895355;
  --cream: #f7f3ef;
  --line: #e9dfd9;
  --white: #fffdfb;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--cream); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  background: linear-gradient(90deg, rgba(247,243,239,.92), rgba(247,243,239,.86)), url("/assets/home/imagens/8.png") center / cover fixed;
}
button, input, select, textarea { font: inherit; }

.contact-page { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 32px; }

.contact-card {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(420px, 1.15fr);
  margin: 24px 0 20px;
  overflow: hidden;
  border: 1px solid rgba(126, 95, 83, .15);
  border-radius: 24px;
  background: rgba(255,253,251,.96);
  box-shadow: 0 24px 70px rgba(77, 55, 48, .13);
}
.contact-intro {
  display: flex;
  min-height: 650px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 52px);
  color: #fff;
  background: linear-gradient(180deg, rgba(41,31,28,.68), rgba(41,31,28,.35) 48%, rgba(41,31,28,.72)), url("/assets/home/imagens/nafis-consulta.jpg") center 30% / cover no-repeat;
}
.eyebrow { color: var(--rose); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.contact-intro .eyebrow { color: #f2d9d5; }
.contact-intro h1 { max-width: 370px; margin: 17px 0 15px; font-family: "Archivo", sans-serif; font-size: clamp(38px, 4.4vw, 55px); font-weight: 600; line-height: 1.08; }
.contact-intro p { max-width: 340px; margin: 0; color: rgba(255,255,255,.92); font-size: 13px; line-height: 1.8; }
.contact-signature { display: flex; align-items: center; gap: 13px; font-family: "Archivo", sans-serif; font-size: 15px; font-weight: 600; }
.contact-signature small { display: block; margin-top: 4px; color: rgba(255,255,255,.78); font-family: "Poppins", sans-serif; font-size: 9px; font-weight: 400; }
.contact-monogram { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; font-family: "Archivo", sans-serif; font-size: 21px; }

.contact-form-panel { padding: clamp(32px, 4vw, 54px) clamp(28px, 4vw, 58px); }
.contact-form-panel h2, .confirmation-panel h2 { margin: 9px 0 25px; font-family: "Archivo", sans-serif; font-size: clamp(27px, 3vw, 35px); font-weight: 600; line-height: 1.17; }
.field { margin-bottom: 19px; }
.field > label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 11px; font-weight: 600; }
.field > label > span:not(.optional) { color: var(--rose); }
.optional { color: #988b84; font-size: 10px; font-weight: 400; }
.field input, .field select, .field textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fff; color: var(--ink); font-size: 12px; transition: border-color .2s, box-shadow .2s; }
.field input, .field select { height: 47px; padding: 0 13px; }
.field textarea { min-height: 105px; padding: 12px 13px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #aea19a; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(169,111,112,.12); }
.interest-field { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.interest-field legend { margin-bottom: 9px; color: var(--ink); font-size: 11px; font-weight: 600; }
.interest-field legend span:not(.optional) { color: var(--rose); }
.interest-options { display: flex; flex-wrap: wrap; gap: 9px; }
.interest-option { position: relative; display: inline-flex; cursor: pointer; }
.interest-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.interest-option span { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 15px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #655853; font-size: 11px; transition: border-color .18s, background-color .18s, color .18s, box-shadow .18s; }
.interest-option:hover span { border-color: #c99998; }
.interest-option input:checked + span { border-color: var(--rose); background: #f6e9e6; color: var(--rose-dark); box-shadow: inset 0 0 0 1px var(--rose); }
.interest-option input:focus-visible + span { outline: 3px solid rgba(169,111,112,.22); outline-offset: 2px; }
.submit-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--rose); color: #fff; cursor: pointer; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s; }
.submit-button:hover { transform: translateY(-1px); background: var(--rose-dark); }
.submit-button:focus-visible { outline: 3px solid rgba(169,111,112,.3); outline-offset: 3px; }
.button-arrow { font-size: 19px; font-weight: 400; }
.privacy-note { margin: 10px 0 0; color: #988b84; font-size: 9px; line-height: 1.6; text-align: center; }
.confirmation-panel[hidden] { display: none; }
.confirmation-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #edf4ed; color: #47704e; font-size: 20px; }
.confirmation-panel h2 { margin: 18px 0 9px; }
.confirmation-panel p { margin: 0 0 23px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.back-link { color: var(--rose-dark); font-size: 11px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .contact-page { width: min(100% - 28px, 580px); padding-top: 20px; }
  .contact-card { grid-template-columns: 1fr; margin-top: 17px; border-radius: 17px; }
  .contact-intro { min-height: 245px; padding: 28px 26px 22px; background-position: center 33%; }
  .contact-intro h1 { margin: 10px 0 8px; font-size: 36px; }
  .contact-intro p { max-width: 420px; font-size: 12px; }
  .contact-signature { margin-top: 22px; font-size: 13px; }
  .contact-monogram { width: 38px; height: 38px; font-size: 18px; }
  .contact-form-panel { padding: 28px 23px 25px; }
  .contact-form-panel h2 { margin-bottom: 22px; font-size: 29px; }
  .field { margin-bottom: 17px; }
}
@media (max-width: 390px) {
  .contact-intro { min-height: 260px; }
  .contact-intro h1 { font-size: 32px; }
  .contact-form-panel { padding-right: 18px; padding-left: 18px; }
}
