: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 { font: inherit; }

.consultation-page {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 27px 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { display: block; width: 142px; height: auto; filter: brightness(0) saturate(100%) opacity(.72); }
.brand span { padding-left: 14px; border-left: 1px solid #d8cbc3; color: var(--muted); font-size: 11px; letter-spacing: .04em; }

.consultation-layout {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(480px, 1.18fr);
  align-items: stretch;
  min-height: 690px;
  margin: 24px 0 20px;
  overflow: hidden;
  border: 1px solid rgba(126, 95, 83, .15);
  border-radius: 24px;
  background: rgba(255,253,251,.94);
  box-shadow: 0 24px 70px rgba(77, 55, 48, .13);
}

.welcome-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(34px, 5vw, 64px) clamp(28px, 4vw, 52px);
  color: white;
  isolation: isolate;
  background: #745e53 url("/assets/home/imagens/nafis-consulta.jpg") center 30% / cover no-repeat;
}

.welcome-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(41,31,28,.72), rgba(41,31,28,.46) 48%, rgba(41,31,28,.74));
  content: "";
}

.welcome-copy { max-width: 350px; }
.eyebrow { color: var(--rose); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.welcome-panel .eyebrow { color: #f2d9d5; }
.welcome-panel h1 { margin: 18px 0 15px; font-family: "Archivo", sans-serif; font-size: clamp(34px, 4.1vw, 52px); font-weight: 600; line-height: 1.08; }
.welcome-panel p { max-width: 325px; margin: 0; color: rgba(255,255,255,.91); font-size: 14px; line-height: 1.8; }
.welcome-signature { font-family: "Archivo", sans-serif; font-size: 17px; font-weight: 600; letter-spacing: .02em; }

.form-card { padding: clamp(30px, 4vw, 52px) clamp(26px, 4vw, 54px); }
.form-heading { margin-bottom: 28px; }
.form-heading h2 { margin: 8px 0 9px; font-family: "Archivo", sans-serif; font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.17; }
.form-heading p { max-width: 510px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.field { margin-bottom: 25px; }
.field > label, .choice-group legend { display: block; margin-bottom: 10px; color: var(--ink); font-size: 12px; font-weight: 600; }
.field > label span { color: var(--rose); }
.field input[type="text"] { width: 100%; height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fff; color: var(--ink); font-size: 13px; transition: border-color .2s, box-shadow .2s; }
.field input[type="text"]::placeholder { color: #aea19a; }
.field input[type="text"]:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(169,111,112,.12); }

.choice-group { min-width: 0; margin: 0 0 23px; padding: 0; border: 0; }
.choice-group legend { width: 100%; margin-bottom: 11px; }
.optional { color: #988b84; font-size: 10px; font-weight: 400; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice span { display: inline-flex; min-height: 38px; align-items: center; padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #655853; font-size: 11px; line-height: 1.35; transition: border-color .18s, background-color .18s, color .18s, box-shadow .18s; }
.choice:hover span { border-color: #c99998; }
.choice input:checked + span { border-color: var(--rose); background: #f6e9e6; color: var(--rose-dark); box-shadow: inset 0 0 0 1px var(--rose); }
.choice input:focus-visible + span { outline: 3px solid rgba(169,111,112,.22); outline-offset: 2px; }
.temperature-options .choice span { min-width: 130px; justify-content: center; }

.form-note { margin: 2px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.submit-button { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; padding: 0 19px; border: 0; border-radius: 9px; background: var(--rose); color: #fff; cursor: pointer; font-size: 12px; font-weight: 600; 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; }
.share-form-wrap { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-form-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.share-consultation-link { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 17px; border: 1px solid #d8b9b6; border-radius: 9px; background: rgba(255,255,255,.72); color: var(--rose-dark); font-size: 11px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background .2s, border-color .2s; }
.share-consultation-link:hover { border-color: var(--rose); background: #f8efed; }
.share-consultation-link:focus-visible { outline: 3px solid rgba(169,111,112,.25); outline-offset: 3px; }
.back-link { color: var(--rose-dark); font-size: 11px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.confirmation-panel h2 { max-width: 520px; margin: 10px 0 10px; font-family: "Archivo", sans-serif; font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.16; }
.confirmation-panel > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.confirmation-panel .confirmation-whatsapp-note { margin: 20px 0 10px; font-size: 11px; }
.confirmation-link { text-decoration: none; }
.location-card { margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); }
.location-card h3 { margin: 0 0 8px; font-family: "Archivo", sans-serif; font-size: 19px; font-weight: 600; }
.location-address { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.map-link { display: inline-block; margin-bottom: 16px; color: var(--rose-dark); font-size: 11px; font-weight: 600; text-decoration: none; }
.map-link:hover { text-decoration: underline; }
.building-photo { margin: 0; overflow: hidden; border-radius: 11px; background: #eee8e2; }
.building-photo img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.building-photo figcaption { padding: 7px 10px; color: var(--muted); font-size: 9px; }
.building-photo figcaption a { color: var(--rose-dark); }

@media (max-width: 800px) {
  body { background-attachment: scroll; }
  .consultation-page { width: min(100% - 28px, 560px); padding-top: 18px; }
  .brand { gap: 10px; }
  .brand img { width: 116px; }
  .brand span { max-width: 130px; padding-left: 10px; font-size: 9px; }
  .consultation-layout { grid-template-columns: 1fr; min-height: 0; margin-top: 17px; border-radius: 17px; }
  .welcome-panel { min-height: 250px; padding: 28px 26px 22px; background-position: center 34%; }
  .welcome-copy { max-width: 360px; }
  .welcome-panel h1 { max-width: 320px; margin: 11px 0 8px; font-size: 34px; }
  .welcome-panel p { max-width: 350px; font-size: 12px; }
  .welcome-signature { margin-top: 23px; font-size: 14px; }
  .form-card { padding: 29px 23px 25px; }
  .confirmation-panel h2 { font-size: 29px; }
  .form-heading { margin-bottom: 23px; }
  .form-heading h2 { font-size: 29px; }
  .form-heading p { font-size: 12px; }
  .choice-grid { gap: 7px; }
  .choice span { min-height: 37px; padding: 8px 11px; }
  .temperature-options .choice span { min-width: 0; }
}

@media (max-width: 390px) {
  .brand span { font-size: 8px; }
  .welcome-panel { min-height: 270px; }
  .welcome-panel h1 { font-size: 31px; }
  .form-card { padding-right: 18px; padding-left: 18px; }
  .choice span { padding-right: 9px; padding-left: 9px; font-size: 10px; }
}
