*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --quote-cream: #f5f0e8;
  --quote-warm-white: #faf7f2;
  --quote-stone: #c8b89a;
  --quote-stone-dark: #9b8670;
  --quote-charcoal: #2a2420;
  --quote-espresso: #1a1210;
  --quote-gold: #c9a96e;
  --quote-gold-light: #e8c98a;
  --quote-green: #4a5e4a;
  --quote-text-soft: #6b5e52;
}

html {
  scroll-behavior: smooth;
}

body.styll-orcamento-page {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--quote-espresso);
  color: var(--quote-cream);
  font-family: "Montserrat", sans-serif;
  line-height: 1.5;
}

.quote-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px;
  text-align: center;
}

.quote-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 169, 110, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(74, 94, 74, 0.15) 0%, transparent 50%),
    linear-gradient(160deg, #1a1210 0%, #2a2420 40%, #1e1a15 100%);
}

.quote-hero__texture {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A96E' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.quote-hero__line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--quote-gold), transparent);
}

.quote-hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.quote-brand-label,
.quote-section-eyebrow,
.quote-step-desc,
.quote-option-name,
.quote-field-label,
.quote-dim-label,
.quote-submit-btn,
.quote-nav-btn,
.quote-progress__label,
.quote-footer__tagline {
  text-transform: uppercase;
}

.quote-brand-label {
  margin: 0 0 32px;
  color: var(--quote-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.36em;
  opacity: 0;
  animation: quoteFadeUp 0.8s ease 0.2s forwards;
}

.quote-hero__title {
  margin: 0 0 8px;
  color: var(--quote-cream);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 300;
  line-height: 0.9;
  opacity: 0;
  animation: quoteFadeUp 0.9s ease 0.4s forwards;
}

.quote-hero__title em {
  display: block;
  color: var(--quote-gold-light);
  font-style: italic;
}

.quote-hero__subtitle {
  margin: 24px 0 40px;
  color: var(--quote-stone);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0;
  animation: quoteFadeUp 0.9s ease 0.6s forwards;
}

.quote-hero__cta,
.quote-submit-btn,
.quote-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--quote-gold);
  background: transparent;
  color: var(--quote-gold);
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.2;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.4s ease, border-color 0.4s ease, opacity 0.2s ease;
}

.quote-hero__cta {
  padding: 16px 48px;
  opacity: 0;
  animation: quoteFadeUp 0.9s ease 0.8s forwards;
}

.quote-hero__cta::before,
.quote-submit-btn::before,
.quote-nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--quote-gold);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.quote-hero__cta span,
.quote-submit-btn span,
.quote-nav-btn span,
.quote-submit-arrow {
  position: relative;
  z-index: 1;
}

.quote-hero__cta:hover,
.quote-submit-btn:hover,
.quote-nav-btn:hover {
  color: var(--quote-espresso);
}

.quote-hero__cta:hover::before,
.quote-submit-btn:hover::before,
.quote-nav-btn:hover::before {
  transform: translateX(0);
}

.quote-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-50%);
  animation: quoteFadeIn 1s ease 1.5s forwards;
}

.quote-scroll span {
  color: var(--quote-stone-dark);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.quote-scroll__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--quote-gold), transparent);
  animation: quoteScrollPulse 2s ease-in-out infinite;
}

.quote-form-section {
  min-height: 100vh;
  background: var(--quote-warm-white);
  color: var(--quote-charcoal);
  padding: 100px 24px;
}

.quote-form-container {
  max-width: 860px;
  margin: 0 auto;
}

.quote-product-context {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 34px;
  padding: 18px 0 24px;
  border-bottom: 1px solid rgba(200, 184, 154, 0.45);
}

.quote-product-context__media {
  width: 96px;
  height: 96px;
  overflow: hidden;
  background: rgba(201, 169, 110, 0.08);
}

.quote-product-context__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-product-context__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--quote-stone-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quote-product-context__title {
  margin: 0 0 8px;
  color: var(--quote-charcoal);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.05;
}

.quote-product-context__link {
  color: var(--quote-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quote-product-context__variation {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
}

.quote-product-context__variation-row {
  display: grid;
  grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.quote-product-context__variation dt {
  color: var(--quote-stone-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quote-product-context__variation dd {
  margin: 0;
  color: var(--quote-charcoal);
  font-size: 14px;
  font-weight: 400;
}

.quote-form-header {
  margin-bottom: 48px;
  text-align: center;
}

.quote-section-eyebrow {
  display: block;
  margin-bottom: 20px;
  color: var(--quote-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
}

.quote-form-title {
  margin: 0 0 20px;
  color: var(--quote-charcoal);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.1;
}

.quote-form-title em {
  color: var(--quote-stone-dark);
  font-style: italic;
}

.quote-form-description {
  max-width: 500px;
  margin: 0 auto;
  color: var(--quote-text-soft);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

.quote-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 44px;
}

.quote-progress__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(155, 134, 112, 0.55);
}

.quote-progress__dot {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(155, 134, 112, 0.6);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.quote-progress__item.is-active,
.quote-progress__item.is-complete {
  color: var(--quote-charcoal);
}

.quote-progress__item.is-active .quote-progress__dot,
.quote-progress__item.is-complete .quote-progress__dot {
  border-color: var(--quote-gold);
  background: var(--quote-gold);
}

.quote-progress__line {
  width: clamp(12px, 3vw, 38px);
  height: 1px;
  background: rgba(200, 184, 154, 0.45);
}

.quote-progress__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.quote-form-step {
  display: none;
  min-height: 360px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(200, 184, 154, 0.3);
}

.quote-form-step.is-active {
  display: block;
  animation: quoteFadeUp 0.35s ease both;
}

.quote-step-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 36px;
}

.quote-step-number {
  flex-shrink: 0;
  color: rgba(200, 184, 154, 0.25);
  font-family: "Cormorant Garamond", serif;
  font-size: 72px;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
}

.quote-step-title {
  color: var(--quote-charcoal);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

.quote-step-desc {
  margin-top: 4px;
  color: var(--quote-text-soft);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.quote-options-grid {
  display: grid;
  gap: 12px;
}

.quote-options-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.quote-options-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.quote-options-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.quote-option-card {
  position: relative;
  cursor: pointer;
}

.quote-option-card input[type="radio"],
.quote-option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quote-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 20px 16px;
  border: 1.5px solid rgba(200, 184, 154, 0.4);
  background: var(--quote-warm-white);
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}

.quote-option-label:hover {
  border-color: var(--quote-gold);
  background: rgba(201, 169, 110, 0.05);
}

.quote-option-card input:focus-visible + .quote-option-label,
.quote-option-card input:checked + .quote-option-label {
  border-color: var(--quote-gold);
  background: rgba(201, 169, 110, 0.1);
  box-shadow: inset 0 0 0 1px var(--quote-gold);
}

.quote-option-label.is-invalid {
  border-color: #9f3e2f;
  box-shadow: inset 0 0 0 1px rgba(159, 62, 47, 0.35);
}

.quote-option-icon {
  margin-bottom: 10px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.quote-option-card input:checked + .quote-option-label .quote-option-icon {
  opacity: 1;
}

.quote-option-name {
  color: var(--quote-charcoal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.quote-option-sub {
  margin-top: 3px;
  color: var(--quote-text-soft);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
}

.quote-dims-grid,
.quote-personal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.quote-dim-field,
.quote-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quote-dim-label,
.quote-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--quote-text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.quote-dim-badge {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--quote-gold);
  border-radius: 50%;
  color: var(--quote-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.quote-dim-input,
.quote-field-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(200, 184, 154, 0.4);
  border-radius: 0;
  outline: none;
  background: var(--quote-warm-white);
  color: var(--quote-charcoal);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 300;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
}

.quote-dim-input:focus,
.quote-field-input:focus {
  border-color: var(--quote-gold);
}

.quote-dim-input::placeholder,
.quote-field-input::placeholder {
  color: rgba(107, 94, 82, 0.4);
}

.quote-field-input.is-invalid,
.quote-dim-input.is-invalid {
  border-color: #9f3e2f;
  box-shadow: 0 0 0 1px rgba(159, 62, 47, 0.3);
}

.quote-stone-card .quote-option-label {
  min-height: 110px;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.quote-stone-swatch {
  position: relative;
  width: 52px;
  flex-shrink: 0;
  overflow: hidden;
  border-right: 1px solid rgba(200, 184, 154, 0.3);
}

.quote-stone-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 16px;
}

.quote-personal-grid .full-width {
  grid-column: 1 / -1;
}

.quote-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quote-error {
  min-height: 22px;
  margin: 18px 0 0;
  color: #9f3e2f;
  font-size: 14px;
  text-align: center;
}

.quote-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
}

.quote-nav-btn,
.quote-submit-btn {
  min-height: 52px;
  padding: 16px 34px;
}

.quote-nav-btn[data-quote-next] {
  border-color: var(--quote-gold);
  background: var(--quote-gold);
  color: var(--quote-espresso);
}

.quote-nav-btn[data-quote-next]::before {
  background: var(--quote-gold-light);
}

.quote-nav-btn[data-quote-next]:hover {
  color: var(--quote-espresso);
}

.quote-nav-btn[hidden],
.quote-submit-btn[hidden] {
  display: none;
}

.quote-nav-btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.quote-submit-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.quote-submit-btn[disabled]::before {
  transform: translateX(-100%);
}

.quote-submit-btn[disabled]:hover {
  color: var(--quote-cream);
}

.quote-submit-btn.is-submitting {
  cursor: wait;
}

.quote-submit-btn.is-submitting span {
  font-size: 0;
}

.quote-submit-btn.is-submitting span::after {
  content: "Enviando";
  font-size: 12px;
}

.quote-submit-btn {
  border-color: var(--quote-charcoal);
  background: var(--quote-charcoal);
  color: var(--quote-cream);
  gap: 16px;
}

.quote-submit-btn::before {
  background: var(--quote-gold);
}

.quote-submit-arrow {
  transition: transform 0.3s ease;
}

.quote-submit-btn:hover .quote-submit-arrow {
  transform: translateX(6px);
}

.quote-submit-note {
  max-width: 460px;
  margin: 0 auto 24px;
  color: var(--quote-text-soft);
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  text-align: center;
}

.quote-success {
  display: none;
  padding: 60px 24px;
  text-align: center;
}

.quote-success.visible {
  display: block;
}

.quote-success__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  border: 2px solid var(--quote-gold);
  border-radius: 50%;
  color: var(--quote-gold);
}

.quote-success__title {
  margin: 0 0 16px;
  color: var(--quote-charcoal);
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  font-weight: 300;
}

.quote-success__text {
  margin: 0;
  color: var(--quote-text-soft);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

.quote-footer {
  padding: 60px 24px;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  background: var(--quote-espresso);
  text-align: center;
}

.quote-footer__logo {
  margin-bottom: 12px;
  color: var(--quote-cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.2em;
}

.quote-footer__tagline {
  margin-bottom: 32px;
  color: var(--quote-stone-dark);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
}

.quote-footer__line {
  width: 40px;
  height: 1px;
  margin: 0 auto 24px;
  background: var(--quote-gold);
}

.quote-footer__copy {
  margin: 0;
  color: var(--quote-stone-dark);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

@media (max-width: 760px) {
  .quote-product-context {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 28px;
  }

  .quote-product-context__media {
    width: 72px;
    height: 72px;
  }

  .quote-form-section {
    padding: 76px 18px;
  }

  .quote-progress {
    justify-content: center;
    gap: 6px;
    overflow-x: auto;
    padding-inline: 4px;
  }

  .quote-progress__line {
    width: 14px;
  }

  .quote-progress__label {
    display: none;
  }

  .quote-options-grid.cols-4,
  .quote-options-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-options-grid.cols-2,
  .quote-personal-grid {
    grid-template-columns: 1fr;
  }

  .quote-dims-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-wizard-nav {
    flex-direction: column-reverse;
  }

  .quote-nav-btn,
  .quote-submit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .quote-hero {
    padding-inline: 18px;
  }

  .quote-brand-label {
    letter-spacing: 0.32em;
  }

  .quote-hero__title {
    font-size: clamp(48px, 15vw, 70px);
  }

  .quote-step-header {
    gap: 14px;
  }

  .quote-step-number {
    font-size: 54px;
  }

  .quote-dims-grid,
  .quote-options-grid.cols-4,
  .quote-options-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

@keyframes quoteFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes quoteFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes quoteScrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.1);
  }
}
