.quote-page .hero {
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: start;
}

.quote-copy {
  gap: 1.5rem;
}

.quote-copy h1 {
  max-width: 10ch;
  font-size: clamp(3.15rem, 5.4vw, 5.2rem);
}

.quote-copy .hero-text {
  max-width: 58ch;
}

.quote-actions {
  max-width: 430px;
}

.quote-points {
  margin-top: 0;
}

.quote-note-card {
  margin-top: auto;
}

.quote-panel {
  padding: clamp(1.35rem, 2.7vw, 2rem);
  gap: 1.2rem;
}

.quote-panel-head {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
}

.quote-panel-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.quote-panel-head p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.quote-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.quote-field-grid {
  display: grid;
  gap: 1rem;
}

.quote-field-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-field {
  display: grid;
  gap: 0.45rem;
}

.quote-field > span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 800;
}

.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(49, 88, 72, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.quote-field textarea {
  min-height: 132px;
  resize: vertical;
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: rgba(95, 109, 102, 0.78);
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  outline: none;
  border-color: rgba(49, 88, 72, 0.36);
  box-shadow: 0 0 0 4px rgba(49, 88, 72, 0.08);
}

.quote-field small {
  color: var(--muted);
  font-size: 0.82rem;
}

.quote-range-panel {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(49, 88, 72, 0.06);
  border: 1px solid rgba(49, 88, 72, 0.08);
}

.quote-range-group {
  display: grid;
  gap: 0.7rem;
}

.quote-range-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.quote-range-head label {
  font-weight: 700;
  line-height: 1.45;
}

.quote-range-head output {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 48px;
  min-height: 44px;
  padding: 0.35rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(49, 88, 72, 0.14);
  background: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.quote-range-panel input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.quote-range-helper {
  margin: -0.1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.quote-addon-section {
  display: grid;
  gap: 0.95rem;
}

.quote-section-copy p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.quote-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quote-addon-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(49, 88, 72, 0.09);
}

.quote-addon-copy {
  display: grid;
  gap: 0.22rem;
}

.quote-addon-copy strong {
  font-size: 1rem;
  line-height: 1.35;
}

.quote-addon-copy span,
.quote-addon-copy small {
  color: var(--muted);
}

.quote-addon-copy small {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.quote-addon-stepper {
  display: grid;
  grid-template-columns: 38px minmax(24px, auto) 38px;
  gap: 0.45rem;
  align-items: center;
}

.quote-stepper-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(49, 88, 72, 0.1);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.quote-stepper-button:hover,
.quote-stepper-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(49, 88, 72, 0.16);
  outline: none;
}

.quote-stepper-count {
  text-align: center;
  font-weight: 800;
}

.quote-summary {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(223, 232, 222, 0.48));
  border: 1px solid rgba(49, 88, 72, 0.1);
}

.quote-summary-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.quote-summary-top h3 {
  margin: 0.5rem 0 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.quote-estimate-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #244134 0%, #315848 55%, #517864 100%);
  color: #fff;
  text-align: center;
  font-size: 0.94rem;
  font-weight: 800;
}

.quote-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.quote-summary-item {
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(49, 88, 72, 0.08);
}

.quote-summary-item-wide {
  grid-column: 1 / -1;
}

.quote-summary-item span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 800;
}

.quote-summary-item strong {
  font-size: 0.97rem;
  line-height: 1.55;
}

.quote-summary-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.quote-summary.is-ready {
  border-color: rgba(49, 88, 72, 0.18);
}

.quote-result-actions {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.quote-result-actions.is-active {
  display: grid;
}

.quote-result-actions .button {
  min-width: 0;
  padding-inline: 1rem;
}

.quote-submit-row {
  display: grid;
  gap: 0.75rem;
}

.quote-submit-button {
  width: 100%;
}

.quote-submit-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.quote-page #quote-process .section-heading {
  max-width: 920px;
}

.quote-support-card {
  padding: clamp(1.45rem, 4vw, 2.3rem);
}

.quote-support-top {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  align-items: start;
}

.quote-support-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 980px) {
  .quote-page .hero {
    grid-template-columns: 1fr;
  }

  .quote-field-grid-two,
  .quote-addon-grid,
  .quote-support-links {
    grid-template-columns: 1fr;
  }

  .quote-support-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .quote-copy h1 {
    max-width: 12ch;
  }

  .quote-panel {
    padding: 1.25rem;
  }

  .quote-summary-top,
  .quote-range-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote-summary-grid,
  .quote-result-actions {
    grid-template-columns: 1fr;
  }

  .quote-result-actions .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .quote-field input,
  .quote-field select,
  .quote-field textarea {
    min-height: 52px;
    padding: 0.9rem 0.95rem;
  }

  .quote-addon-card,
  .quote-summary,
  .quote-range-panel {
    padding: 0.95rem;
  }

  .quote-estimate-pill {
    width: 100%;
  }
}
