.submit-bid {
  margin-top: 1.75rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.submit-bid > p { margin: .4rem 0 1rem; }
.bid-contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 40rem;
  margin-bottom: 1rem;
}
.bid-contact-fields label, .review-login label { display: block; font-weight: 650; }
.bid-contact-fields label span { font-weight: 400; color: var(--muted); }
.bid-contact-fields input, .review-login input {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .6rem .75rem;
  border: 1px solid #8896a1;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.submit-bid > .submit-status { margin: .65rem 0 0; font-weight: 650; }
.submit-status:empty { display: none; }
.submit-status[data-state="success"] { color: #185e45; }
.submit-status[data-state="error"], .review-error { color: #a12d28; }
.visit-notice { padding-bottom: 1.25rem; color: #e2eaf1; }

.review-app { min-height: 100vh; }
.review-mast { color: white; background: var(--brand-blue); }
.review-mast .wrap { padding-block: .85rem; }
.review-mast .brand { color: inherit; }
.review-main { padding-block: clamp(1.5rem, 6vw, 4rem); }
.review-main h1 { font-size: clamp(2.1rem, 5vw, 3.75rem); line-height: 1.05; }
.review-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.review-login { max-width: 30rem; margin-inline: auto; }
.review-login > p { margin: .75rem 0 1.5rem; }
.review-login button { margin-top: 1rem; }
.review-error { margin-top: .6rem; }
.review-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 1.5rem; }
.review-totals a {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  background: var(--paper);
  text-decoration: none;
}
.review-totals a:hover { border-color: var(--brand-blue); }
.review-totals b { font: 2.25rem/1 var(--serif); }
.review-section { margin-top: 2.5rem; }
.review-section h2 { margin-bottom: .7rem; }
.review-section > p { margin-bottom: 1rem; }
.review-bid { margin-bottom: .65rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.review-bid summary { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 1rem; cursor: pointer; }
.review-bid summary span { min-width: 0; overflow-wrap: anywhere; }
.review-bid summary small, .review-table small { display: block; color: var(--muted); font-size: .875rem; }
.review-bid summary > b { white-space: nowrap; }
.review-bid[open] summary { border-bottom: 1px solid var(--line); }
.review-bid-body { padding: 1rem; overflow-wrap: anywhere; }
.review-bid-body h3 { margin: 1rem 0 .5rem; }
.review-selections { display: grid; grid-template-columns: minmax(9rem, .35fr) 1fr; gap: .35rem .8rem; }
.review-selections dt { font-weight: 650; }
.review-selections dd { margin: 0; }
.review-breakdown { margin-top: .65rem; color: var(--muted); }
.review-table { width: 100%; border-collapse: collapse; text-align: left; }
.review-table td, .review-table th { padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.review-table thead th { font-size: .875rem; white-space: nowrap; }
.review-table th[scope="row"] { text-align: left; }
.review-table td { white-space: nowrap; }
.review-paging { display: flex; gap: .75rem; align-items: center; margin-top: .9rem; }

@media (max-width: 560px) {
  .bid-contact-fields, .review-selections { grid-template-columns: 1fr; }
  .review-selections dd { margin-bottom: .35rem; }
  .review-totals { grid-template-columns: 1fr; }
  .review-totals a { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media print {
  .submit-bid, .visit-notice { display: none !important; }
}
