.quote-section {
  padding: 5rem 0 6rem;
  background: var(--bg-primary);
}

.quote-header {
  text-align: center;
  margin-bottom: 3rem;
}

.alert {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #16a34a;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #dc2626;
}

.quote-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

/* Info Panel */
.quote-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  position: sticky;
  top: 100px;
}

.quote-info h3 {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.info-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.info-item h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.info-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Form */
.quote-form-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
}

.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* A quiet line under a section heading, explaining why a field is or is not
   being asked for. Pulled up under the heading it belongs to, and set smaller
   and dimmer than the labels below so it reads as a note rather than as the
   first question. */
.form-section-note {
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* The coverage line under the ZIP field. Marked with a rule on the accent
   rather than another dim paragraph, so it reads as an offer of help and not
   as more small print under the form. */
.form-coverage-hint {
  margin-top: 1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.form-coverage-hint a {
  color: var(--accent-text);
  font-weight: 600;
}

.form-coverage-hint a:hover { text-decoration: underline; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.required { color: var(--accent-text); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  color: var(--text-primary);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(147,51,234,0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select option { background: var(--bg-card); }

/* Checkboxes */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* Submit */
.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
}

.form-disclaimer {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
  .quote-container { grid-template-columns: 1fr; }
  .quote-info { position: static; }
}

@media (max-width: 480px) {
  .quote-form-container,
  .quote-info { padding: 1.5rem; }
}

/* Request received --------------------------------------------------------
 *
 * Its own page at its own URL, so a completed request is countable and a
 * refresh cannot re-post. Built from the pieces the rest of the site already
 * uses - the secondary-background hero the services page opens with, the
 * numbered timeline from style.css, and the accent rail off the promotion
 * cards - rather than a one-off look for a page seen once.
 */

.received-hero {
  padding: 4.5rem 0 3.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.received-hero .section-subtitle {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.received-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--accent-text);
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid rgba(147, 51, 234, 0.4);
}

/* The reference. The only thing on the page that belongs to this reader, so it
   is a panel rather than a line of small print. */
.received-ref {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 2.25rem;
  padding: 1.1rem 2rem 1.2rem 2.25rem;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

/* Same accent rail the promotion cards carry. */
.received-ref::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

.received-ref-label {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}

.received-ref-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.received-ref-note {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.received-body {
  padding: 4.5rem 0 5.5rem;
  background: var(--bg-primary);
}

.received-body .section-header {
  margin-bottom: 3rem;
}

/* The same-day route out. Accent-tinted so it reads as the other path rather
   than as one more paragraph. */
.received-urgent {
  max-width: 760px;
  margin: 3.5rem auto 0 auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.6rem 1.9rem;
  background: rgba(147, 51, 234, 0.08);
  border: 1px solid rgba(147, 51, 234, 0.35);
  border-radius: 10px;
}

.received-urgent-text { flex: 1; min-width: 0; }

.received-urgent h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.received-urgent p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.received-urgent-btn { flex-shrink: 0; white-space: nowrap; }

.received-back {
  max-width: 760px;
  margin: 2.5rem auto 0 auto;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.received-back a { color: var(--accent-text); }
.received-back a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .received-hero { padding: 3.5rem 0 3rem; }
  .received-ref { display: flex; padding-right: 1.5rem; }

  .received-urgent {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .received-urgent-btn { width: 100%; text-align: center; }
}
