:root {
  --blue: #0758b7;
  --blue-dark: #064793;
  --blue-soft: #eef5fc;
  --orange: rgba(226, 123, 1, 1);
  --ink: #172033;
  --muted: #6f7785;
  --line: #dfe4ea;
  --surface: #f7f9fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: #fff; color: var(--ink); font-family: Figtree, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }

.site-header { height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid #edf0f3; }
.brand img { display: block; width: 235px; height: 58px; object-fit: contain; object-position: left center; }
.header-trust { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 12px; font-weight: 600; }
.header-trust i { color: var(--orange); font-size: 19px; }
.header-trust small { color: var(--muted); font-weight: 400; }

.shell { width: min(720px, calc(100% - 40px)); min-height: calc(100vh - 86px); margin: 0 auto; padding: 54px 0 120px; }
.intro-panel { margin-bottom: 40px; }
.eyebrow, .step-tag { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.eyebrow span { display: inline-block; width: 26px; height: 2px; margin-right: 9px; background: var(--orange); vertical-align: middle; }
.intro-panel h1 { max-width: 650px; margin: 15px 0 11px; font-size: 24px; line-height: 1.08; letter-spacing: -.035em; font-weight: 400; color: var(--orange);}
.rotating-word { display: inline-block; opacity: 1; transform: translateY(0); font-weight:600; transition: opacity .18s ease, transform .18s ease; }
.rotating-word.is-changing { opacity: 0; transform: translateY(5px); }
.intro-panel > p { max-width: 580px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.trust-list { display: grid; grid-template-columns: max-content 28px max-content 28px max-content; align-items: stretch; justify-content: space-between; gap: 0; margin-top: 22px; color: var(--muted); font-size: 12px; }
.trust-list > div { opacity: 0.8; cursor: crosshair; position: relative; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 4px 8px; background: #f9f9f9; border: 1px solid #f2f2f2; padding: 10px !important; border-radius: 14px; }
.trust-list > div:hover { opacity: 1; border: 1px solid var(--orange); transition: cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.4s; }
.trust-arrow { opacity: 0.6; align-self: end; justify-self: center; width: 28px; height: 10px; margin-bottom: 22px; background: var(--orange); clip-path: polygon(0 40%, 74% 40%, 74% 8%, 100% 50%, 74% 92%, 74% 60%, 0 60%); }
.trust-step { border-radius: 3px; grid-column: 1 / -1; color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: .13em; max-width: 20px; background: #eee; padding: 1px 4px; justify-self: end;}
.trust-list i { color: var(--blue); font-size: 17px; text-align: center; }
.trust-list span { line-height: 1.35; }
.trust-list strong { color: var(--ink); font-weight: 600; }

.form-card { padding: 28px; border: 1px solid rgba(7, 88, 183, 0.16); border-radius: 8px; box-shadow: 0px 0px 50px rgba(7, 88, 183, 0.2); }
.progress-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.progress-head strong { color: var(--blue); }
.progress { height: 9px; overflow: hidden; margin-bottom: 34px; background: #eee; border-radius: 10px; }
.progress span { display: block; width: 20%; height: 100%; background: var(--orange); transition: width .3s ease; }
.step { display: none; min-height: 270px; animation: step-in .28s ease; }
.step.active { display: block; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
.step h2, .success h2 { margin: 10px 0 7px; font-size: 27px; line-height: 1.25; letter-spacing: -.025em; font-weight: 600; }
.step-copy { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.option-grid.compact { grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; }
.option-card, .quality-card { position: relative; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.option-card { min-height: 106px; padding: 17px; }
.option-card:hover, .quality-card:hover { border-color: #a8bdd6; background: #fbfdff; }
.option-card.selected, .quality-card.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.option-card > i { display: block; margin-bottom: 14px; color: var(--blue); font-size: 20px; }
.option-card strong, .option-card small { display: block; }
.option-card strong { font-size: 16px; font-weight: 900; }
.option-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.option-card .check { position: absolute; top: 11px; right: 11px; display: none; color: var(--blue); font-size: 12px; }
.option-card.selected .check { display: block; }

.field-label, .form-grid label > span { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 600; }
.sqm-field { display: flex; align-items: center; height: 54px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sqm-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7, 88, 183, .08); }
.sqm-field input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 17px; }
.sqm-field span { color: var(--muted); font-weight: 600; }

.quality-grid { display: grid; gap: 9px; }
.quality-card { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 12px; padding: 13px 14px; }
.quality-card > i { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 7px; background: var(--surface); color: var(--blue); }
.quality-card strong, .quality-card small { display: block; }
.quality-card strong { font-size: 15px; font-weight: 800; }
.quality-card small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.quality-card .radio { width: 17px; height: 17px; border: 1px solid #bac1c9; border-radius: 50%; }
.quality-card.selected .radio { border: 5px solid var(--blue); }
.hammam-option { display: none; align-items: center; gap: 11px; margin-top: 12px; padding: 12px 14px; border: 1px dashed rgba(226,123,1,.55); border-radius: 8px; background: #fffaf3; cursor: pointer; }
.hammam-option.visible { display: flex; }
.hammam-option input, .consent input { accent-color: var(--blue); }
.hammam-option i { color: var(--orange); }
.hammam-option strong, .hammam-option small { display: block; }
.hammam-option small { color: var(--muted); font-size: 11px; }

.estimate { margin: 17px 0 21px; padding: 17px 18px; border-left: 3px solid var(--orange); background: var(--surface); border-radius: 3px 8px 8px 3px; }
.estimate > span, .estimate > small { display: block; color: var(--muted); font-size: 11px; }
.estimate strong { display: block; margin: 4px 0; color: var(--blue); font-size: 24px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid input { width: 100%; height: 49px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); }
.form-grid input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,88,183,.08); }
.consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.frontend-turnstile { display: flex; min-height: 70px; align-items: center; justify-content: center; margin-top: 13px; overflow: hidden; }
.frontend-turnstile-notice { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; border: 1px solid #d9e6f5; border-radius: 8px; background: #f2f7fd; padding: 10px 11px; color: #54708e; font-size: 10px; line-height: 1.45; }
.frontend-turnstile-notice i { margin-top: 2px; color: var(--blue); }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.actions { display: none; }
.btn { border: 0; border-radius: 7px; padding: 12px 17px; background: var(--blue); color: #fff; font-weight: 600; cursor: pointer; }
.form-error { display: none; margin: -18px 0 22px; padding: 11px 13px; border: 1px solid #f3d3d6; border-left: 4px solid #a61b29; border-radius: 6px; background: #fff4f5; color: #842029; font-size: 13px; font-weight: 500; line-height: 1.45; }
.form-error.show { display: flex; align-items: center; gap: 10px; animation: step-in .2s ease; }
.form-error-icon { display: inline-flex; flex: 0 0 30px; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1px solid #c92a3a0f; border-radius: 5px; background: #f9dfe2; color: #a61b29; font-size: 13px; }

.success { display: none; min-height: 330px; padding: 40px 0; text-align: center; }
.success.active { display: block; animation: step-in .3s; }
.success-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 23px; }
.success p { color: var(--muted); }
.success-ref { margin: 20px auto; padding: 11px; background: var(--surface); border-radius: 7px; font-size: 12px; max-width: 330px;}
.whatsapp-hint { max-width: 380px; margin: 0 auto 16px; font-size: 15px; line-height: 1.55; font-weight: 500; color: rgba(23, 141, 73, 1) !important;}
.whatsapp-hint[hidden] { display: none; }
.whatsapp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 47px; margin: 0 auto; border-radius: 999px; background: #20a95a; padding: 0 20px; color: #fff; box-shadow: 0 8px 20px rgba(32, 169, 90, .28); font-size: 13px; font-weight: 700; text-decoration: none; transform-origin: center; will-change: transform, box-shadow; animation: whatsapp-attention 1.4s ease-in-out infinite; transition: background .18s ease; }
.whatsapp-cta[hidden] { display: none; }
.whatsapp-cta i { font-size: 19px; }
.whatsapp-cta:hover { background: #178d49; }
.whatsapp-cta:focus-visible { outline: 3px solid rgba(32, 169, 90, .28); outline-offset: 3px; }
.new-quote-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 30px auto 0; background: #7f7f7f; border-radius: 50px; }
.new-quote-btn:hover { background: #6f6f6f; }
@keyframes whatsapp-attention {
  0%, 100% { transform: scale(.94); box-shadow: 0 6px 16px rgba(32, 169, 90, .24); }
  50% { transform: scale(1.06); box-shadow: 0 11px 26px rgba(32, 169, 90, .42); }
}

.navigation-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; margin-top: 16px; transition: opacity .2s; }
.navigation-footer.hidden { opacity: 0; pointer-events: none; }
.nav-buttons { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 145px; height: 43px; padding: 0 16px; border: 1px solid var(--blue); border-radius: 7px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
#footerBack { background: #fff; color: var(--blue); }
.nav-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
#footerBack:hover { background: var(--blue-soft); border-color: var(--blue); }
.nav-btn:disabled { opacity: .35; cursor: not-allowed; }

.mascot-helper { position: fixed; right: 27px; bottom: 6px; z-index: 25; pointer-events: none; transition: opacity .2s; }
.mascot-helper.hidden { opacity: 0; pointer-events: none; }
.mascot-helper.hidden .mascot-tooltip, .mascot-helper.hidden .mascot-character { pointer-events: none; }
.mascot-toggle { position: relative; width: 112px; height: 150px; padding: 0; border: 0; background: transparent; pointer-events: none; }
.mascot-character { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; pointer-events: auto; will-change: transform; animation: mascot-float 4.8s ease-in-out infinite; }
.mascot-character:focus-visible { outline: 3px solid rgba(7,88,183,.22); outline-offset: 2px; border-radius: 12px; }
.mascot-helper.is-final .mascot-character { cursor: default; }
.mascot-toggle img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 8px 9px rgba(24,44,73,.18)); transform-origin: bottom center; will-change: transform; animation: mascot-pulse 4.8s ease-in-out infinite; }
@keyframes mascot-float { 0%,100% { transform: translateY(1px); } 50% { transform: translateY(-7px); } }
@keyframes mascot-pulse { 0%,100% { transform: scale(.99); } 50% { transform: scale(1.015); } }
@keyframes tooltip-gentle-float { 0%,100% { translate: 0 2px; } 50% { translate: 0 -6px; } }
@keyframes tooltip-message-cue { 0%,100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-3px) scale(.99); } }
.mascot-tooltip { position: absolute; right: 94px; top: -32px; width: 218px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); box-shadow: 0 10px 30px rgba(23,32,51,.1); font-size: 12px; line-height: 1.45; text-align: left; opacity: 1; transform-origin: right 54px; transition: box-shadow .2s, border-color .2s; pointer-events: auto; cursor: pointer; animation: tooltip-gentle-float 5.8s ease-in-out infinite; }
.mascot-tooltip.is-changing { animation: tooltip-gentle-float 5.8s ease-in-out infinite, tooltip-message-cue .5s ease; }
.mascot-tooltip::before { content: ''; position: absolute; right: -11px; top: 27px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 11px solid var(--line); }
.mascot-tooltip::after { content: ''; position: absolute; right: -9px; top: 29px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 9px solid #fff; }
.mascot-tooltip strong { color: var(--blue); }
.mascot-tooltip.is-final-copy .mascot-message { color: #626b78; font-weight: 600; }
.mascot-tooltip.is-final-copy strong { color: inherit; font-weight: 700; }
.mascot-message-stage { position: relative; display: block; min-height: 36px; }
.mascot-message { position: absolute; inset: 0; display: block; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.mascot-message.is-active { opacity: 1; transform: translateY(0); }
.mascot-next { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; margin-top: 9px; padding: 0 10px; border: 1px solid var(--blue); border-radius: 6px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
.mascot-next:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateX(2px); }
.mascot-next:focus-visible { outline: 3px solid rgba(7,88,183,.2); outline-offset: 2px; }
.mascot-next[hidden] { display: none; }
.mascot-helper.is-final .mascot-next { border-color: var(--orange); background: var(--orange); }
.mascot-helper.is-final .mascot-next:hover { border-color: #c56b00; background: #c56b00; }
.mascot-helper.is-final .mascot-tooltip { cursor: default; }
.mascot-helper.is-open .mascot-tooltip, .mascot-toggle:hover .mascot-tooltip { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .shell { padding-top: 36px; }
  .mascot-helper { right: 12px; bottom: 4px; }
  .mascot-toggle { width: 85px; height: 118px; }
  .mascot-tooltip { right: 72px; width: 202px; }
}
@media (max-width: 600px) {
  .site-header { height: 72px; padding: 0 17px; }
  .brand img { width: 190px; height: 50px; }
  .header-trust span { display: none; }
  .shell { width: calc(100% - 30px); min-height: calc(100vh - 72px); padding: 28px 0 120px; }
  .intro-panel { margin-bottom: 30px; }
  .intro-panel h1 { display: none; }
  .intro-panel > p { font-size: 11px; }
  .trust-list { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; font-size: 10px; }
  .trust-list > div { grid-template-columns: 18px 1fr; gap: 3px 5px; min-width: 0; padding: 2px 0;}
  .trust-list i { font-size: 14px; }
  .trust-list span { min-width: 0; }
  .trust-arrow { display: none; }
  .form-card { scroll-margin-top: 10px; }
  .step { min-height: 300px; }
  .step h2 { font-size: 24px; }
  .option-grid, .option-grid.compact, .option-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-right: auto; margin-left: auto; }
  .option-card { display: flex; min-height: 83px; align-items: center; justify-content: center; flex-direction: column; padding: 14px; text-align: center; }
  .option-card > i { margin-bottom: 9px; }
  .form-grid { grid-template-columns: 1fr; }
  .whatsapp-cta { width: min(100%, 310px); padding: 0 16px; }
  .navigation-footer { margin-top: 13px; }
  .nav-btn { min-width: 0; width: calc(50% - 5px); padding: 0 11px; }
  .mascot-helper { display: none; }
  .mascot-toggle { width: 68px; height: 95px; }
  .mascot-tooltip { right: 58px; top: 0; width: 166px; }
}
