.quote-page {
  --quote-text: #272727;
  --quote-muted: #65615a;
  --quote-gold: #80632d;
  --quote-border: #ddd6c8;
  --quote-background: #faf8f3;

  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  padding: 28px 20px;
  color: var(--quote-text);
  background: var(--quote-background);
}

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

.quote-page [hidden] {
  display: none !important;
}

.quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto 32px;
}

.quote-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

.quote-page a {
  color: var(--quote-gold);
  text-underline-offset: 3px;
}

.quote-login-link {
  flex-shrink: 0;
  font-weight: 600;
}

.quote-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--quote-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(39 39 39 / 5%);
}

.quote-card h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.2;
}

.quote-card h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
}

.quote-intro {
  margin: 0 0 28px;
  color: var(--quote-muted);
  line-height: 1.65;
}

.quote-form {
  display: grid;
  gap: 24px;
}

.quote-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.quote-field label {
  font-weight: 600;
  line-height: 1.5;
}

.quote-field input,
.quote-field select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #aaa395;
  border-radius: 8px;
  color: var(--quote-text);
  background: #fff;
  font: inherit;
}

.quote-field input:focus-visible,
.quote-field select:focus-visible,
.quote-page a:focus-visible,
.quote-submit:focus-visible,
.quote-result:focus-visible {
  outline: 3px solid #80632d;
  outline-offset: 4px;
}

.quote-fieldset {
  display: grid;
  gap: 24px;
  min-width: 0;
  margin: 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--quote-border);
}

.quote-fieldset legend {
  padding: 0 12px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

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

.quote-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid #272727;
  border-radius: 8px;
  color: #fff;
  background: #272727;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.quote-submit:hover {
  border-color: #494237;
  background: #494237;
}

.quote-error {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid #b57373;
  border-radius: 8px;
  color: #7d2424;
  background: #fff3f3;
  line-height: 1.6;
}

.quote-result {
  margin: 0 0 32px;
  padding: 24px;
  border: 1px solid #cbb88d;
  border-radius: 12px;
  background: #fbf8ef;
  scroll-margin-top: 24px;
}

.quote-breakdown {
  margin: 0 0 20px;
}

.quote-price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  line-height: 1.5;
}

.quote-price-line dt {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quote-price-line dd {
  flex-shrink: 0;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.quote-quantity {
  color: var(--quote-muted);
  white-space: nowrap;
}

.quote-total {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--quote-border);
  font-size: 1.2rem;
  font-weight: 700;
}

.quote-result > a {
  display: inline-block;
  margin-top: 16px;
}

.quote-footer {
  margin: 28px auto 0;
  color: var(--quote-muted);
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .quote-page {
    padding: 20px 12px;
  }

  .quote-header {
    gap: 16px;
    margin-bottom: 24px;
  }

  .quote-logo {
    width: 160px;
  }

  .quote-login-link {
    font-size: 0.9rem;
  }

  .quote-card {
    padding: 24px 18px;
    border-radius: 12px;
  }

  .quote-result {
    padding: 18px;
  }

  .quote-price-line {
    gap: 12px;
    font-size: 0.95rem;
  }

  .quote-total {
    font-size: 1.1rem;
  }
}