.quote-page {
  min-height: 100svh;
  background: var(--black);
  color: var(--text-light);
  padding-top: 68px;
}

.quote-page .site-header {
  background: rgba(0, 0, 0, 0.95);
}

.quote-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 4vw 64px;
}

.quote-hero {
  margin-bottom: 28px;
}

.quote-hero .eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.quote-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.quote-hero p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.tms-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.tms-key-btn {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 215, 0, 0.42);
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.1);
  color: var(--gold);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tms-key-state {
  min-width: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

.quote-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.quote-tab {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.quote-tab:hover,
.quote-tab:focus-visible {
  color: var(--gold);
  outline: none;
}

.quote-tab.is-active {
  background: var(--gold);
  color: var(--black);
}

.quote-panel {
  display: none;
}

.quote-panel.is-active {
  display: block;
}

.quote-form {
  display: grid;
  gap: 16px;
}

.quote-conditional[hidden],
.quote-recent[hidden] {
  display: none;
}

.quote-result-list {
  display: grid;
  gap: 14px;
}

.quote-result-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  padding: 18px;
}

.quote-result-head,
.quote-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.quote-result-price {
  color: var(--gold);
  font-size: 24px;
  font-weight: 800;
}

.quote-result-meta {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.quote-formula {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.quote-formula summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
}

.quote-formula ul {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.7;
}

.quote-error {
  color: #ff8a80;
}

.quote-recent {
  margin-top: 22px;
}

.quote-recent-list {
  display: grid;
  gap: 10px;
}

.quote-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-light);
  padding: 12px 14px;
}

.quote-recent-item button {
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: var(--black);
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.form-field select,
.form-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font: inherit;
  transition: border-color 160ms ease;
}

.form-field select:focus,
.form-field input:focus {
  border-color: var(--gold);
  outline: none;
}

.form-field select option {
  background: #111;
  color: var(--text-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-btn {
  min-height: 48px;
  margin-top: 4px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: var(--black);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, transform 80ms ease;
}

.quote-btn:hover:not(:disabled) {
  background: var(--gold-soft);
}

.quote-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.quote-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.result-card {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.result-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

.result-price {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}

.result-meta {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--text-muted);
}

.result-remote {
  margin: 8px 0 0;
  font-size: 13px;
  color: #fbbf24;
  line-height: 1.5;
}

.result-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.result-empty {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.result-error {
  margin: 0;
  font-size: 14px;
  color: #f87171;
}

.tracking-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tracking-timeline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tracking-timeline h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.tracking-event {
  position: relative;
  padding: 0 0 16px 16px;
  border-left: 2px solid var(--gold);
  margin-left: 4px;
}

.tracking-event:last-child {
  padding-bottom: 0;
}

.tracking-event-time {
  font-size: 12px;
  color: var(--text-muted);
}

.tracking-event-desc {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.site-nav a.is-current {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.quote-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.quote-footer a {
  font-size: 14px;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .tms-key-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tms-key-state {
    text-align: left;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-main {
    padding-top: 24px;
  }
}
