/* Quote form section — scoped under .quote-form-section so it can't bleed into the rest of the site */

.quote-form-section, .quote-form-section *, .quote-form-section *::before, .quote-form-section *::after {
  box-sizing: border-box;
}
.quote-form-section * { margin: 0; padding: 0; }

.quote-form-section {
  --walnut:    #2C1A0E;
  --walnut-mid:#4A2E18;
  --cream:     #F5ECD7;
  --grain:     #C8943A;
  --ash:       #E8DFD0;
  --ink:       #1A1008;
  --muted:     #8C7155;
  --border:    #D4C4A8;
  --error:     #B04A2A;
  --success:   #4A7C59;

  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.quote-form-section .qf-intro {
  padding: 56px 48px;
  text-align: center;
  background: #76AD55;
}
.quote-form-section .qf-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--walnut);
}
.quote-form-section .qf-intro p {
  font-size: 19px;
  color: #FFFFFF;
  margin-top: 10px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.quote-form-section .layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.quote-form-section .left-panel {
  background: var(--walnut);
  height: 100%;
}
.quote-form-section .left-panel-sticky {
  padding: 24px 28px;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Top row: canvas left, controls right */
.quote-form-section .left-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.quote-form-section .left-canvas-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.quote-form-section .left-controls-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.quote-form-section .panel-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grain);
  margin-bottom: 4px;
}

.quote-form-section .canvas-wrap {
  background: var(--walnut-mid);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(200,148,58,0.25);
}
.quote-form-section #boxCanvas {
  display: block;
  width: 100%;
  height: auto;
}

.quote-form-section .dim-readout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.quote-form-section .dim-chip {
  background: rgba(74,46,24,0.5);
  border: 1px solid rgba(200,148,58,0.2);
  border-radius: 6px;
  padding: 7px 4px;
  text-align: center;
}
.quote-form-section .dim-chip .val {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: var(--cream);
  font-weight: 600;
  line-height: 1;
}
.quote-form-section .dim-chip .lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.quote-form-section .slider-group { display: flex; flex-direction: column; gap: 16px; }

.quote-form-section .slider-row label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--ash);
  margin-bottom: 6px;
}
.quote-form-section .slider-row label span {
  font-weight: 600;
  color: var(--grain);
  font-size: 14px;
}

.quote-form-section input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  outline: none;
  cursor: pointer;
}
.quote-form-section input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grain);
  border: 2px solid var(--cream);
  cursor: pointer;
  transition: transform 0.15s;
}
.quote-form-section input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.quote-form-section input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grain);
  border: 2px solid var(--cream);
  cursor: pointer;
}

.quote-form-section .thickness-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-style: italic;
}
.quote-form-section .thickness-note.warning { color: #E08040; }

.quote-form-section .depth-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.quote-form-section .depth-btn {
  padding: 8px 4px;
  border-radius: 6px;
  border: 1px solid rgba(200,148,58,0.3);
  background: transparent;
  color: var(--ash);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.quote-form-section .depth-btn:hover:not(:disabled) { border-color: var(--grain); color: var(--grain); }
.quote-form-section .depth-btn.active {
  background: var(--grain);
  border-color: var(--grain);
  color: var(--walnut);
  font-weight: 600;
}
.quote-form-section .depth-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.quote-form-section .price-card {
  background: rgba(200,148,58,0.12);
  border: 1px solid rgba(200,148,58,0.4);
  border-radius: 8px;
  padding: 14px 16px;
}
.quote-form-section .price-main {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--grain);
  line-height: 1;
}
.quote-form-section .price-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.quote-form-section .price-breakdown {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(200,148,58,0.2);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quote-form-section .price-breakdown .row { display: flex; justify-content: space-between; }
.quote-form-section .price-breakdown .row span:last-child { color: var(--ash); }
.quote-form-section .custom-note { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 8px; }

.quote-form-section .right-panel { padding: 40px 48px; background: #A9CDE0; }

.quote-form-section .form-section { margin-bottom: 40px; }
.quote-form-section .form-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  font-weight: 600;
  color: var(--walnut);
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.quote-form-section .section-desc { font-size: 16px; color: var(--walnut); margin-bottom: 20px; margin-top: 8px; }

.quote-form-section .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quote-form-section .field-grid.full { grid-template-columns: 1fr; }
.quote-form-section .field { display: flex; flex-direction: column; gap: 6px; }
.quote-form-section .field.span-2 { grid-column: span 2; }

.quote-form-section label.field-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--walnut-mid);
}
.quote-form-section label.field-label .req { color: var(--grain); margin-left: 2px; }

.quote-form-section input[type=text], .quote-form-section input[type=email], .quote-form-section input[type=tel],
.quote-form-section input[type=number], .quote-form-section select, .quote-form-section textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.quote-form-section input:focus, .quote-form-section select:focus, .quote-form-section textarea:focus {
  border-color: var(--grain);
  box-shadow: 0 0 0 3px rgba(200,148,58,0.15);
}
.quote-form-section textarea { resize: vertical; min-height: 90px; }

.quote-form-section .wood-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quote-form-section .wood-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  position: relative;
}
.quote-form-section .wood-card:hover { border-color: var(--grain); }
.quote-form-section .wood-card.selected { border-color: var(--grain); background: #FDF6E8; }
.quote-form-section .wood-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px; right: 12px;
  color: var(--grain);
  font-weight: 700;
  font-size: 14px;
}
.quote-form-section .wood-name { font-weight: 600; font-size: 14px; color: var(--walnut); margin-bottom: 2px; }
.quote-form-section .wood-desc { font-size: 12px; color: var(--muted); }
.quote-form-section .wood-swatch { width: 28px; height: 28px; border-radius: 50%; margin-bottom: 8px; border: 2px solid rgba(0,0,0,0.1); }
.quote-form-section .custom-wood-field { margin-top: 10px; display: none; }
.quote-form-section .custom-wood-field.visible { display: block; }

.quote-form-section .unit-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
}
.quote-form-section .unit-btn {
  padding: 6px 18px;
  border: none;
  background: white;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}
.quote-form-section .unit-btn.active { background: var(--walnut); color: var(--cream); }

.quote-form-section .timeline-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quote-form-section .timeline-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  background: white;
  transition: all 0.2s;
}
.quote-form-section .timeline-card:hover { border-color: var(--grain); }
.quote-form-section .timeline-card.selected { border-color: var(--grain); background: #FDF6E8; }
.quote-form-section .timeline-card .tl-time { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--walnut); font-weight: 600; }
.quote-form-section .timeline-card .tl-label { font-size: 11px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.07em; }
.quote-form-section .timeline-card .tl-note { font-size: 11px; color: var(--grain); margin-top: 6px; font-weight: 500; }

.quote-form-section .mount-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quote-form-section .mount-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  background: white;
  transition: all 0.2s;
}
.quote-form-section .mount-card:hover { border-color: var(--grain); }
.quote-form-section .mount-card.selected { border-color: var(--grain); background: #FDF6E8; }
.quote-form-section .mount-card .mount-label { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--walnut); font-weight: 600; }
.quote-form-section .mount-card .mount-note { font-size: 11px; color: var(--grain); margin-top: 6px; font-weight: 500; }

.quote-form-section .submit-area { display: flex; flex-direction: column; gap: 12px; }
.quote-form-section .submit-btn {
  padding: 16px 32px;
  background: #85D656;
  color: #FFFFFF;
  border: 1px solid #A9CDE0;
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.quote-form-section .submit-btn:hover { background: #71B649; transform: translateY(-1px); }
.quote-form-section .submit-note { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.5; }

.quote-form-section .success-msg {
  display: none;
  background: #EFF7F2;
  border: 1px solid #4A7C59;
  border-radius: 8px;
  padding: 20px 24px;
  color: #2E5C3A;
  font-size: 14px;
  line-height: 1.6;
}
.quote-form-section .success-msg h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 6px; }

.quote-form-section .form-error {
  background: #FBEAE4;
  border: 1px solid var(--error);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--error);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .quote-form-section .layout { grid-template-columns: 1fr; }
  .quote-form-section .left-panel-sticky { position: static; }
  .quote-form-section .left-top { grid-template-columns: 1fr; }
  .quote-form-section .right-panel { padding: 28px 24px; }
  .quote-form-section .field-grid { grid-template-columns: 1fr; }
  .quote-form-section .field.span-2 { grid-column: span 1; }
  .quote-form-section .qf-intro { padding: 40px 24px; }
}

/* Desktop-only text bump — the form reads small next to everything else
   on wider screens. Mirrors the file's own 900px breakpoint above. */
@media (min-width: 901px) {
  .quote-form-section { font-size: 17px; }
  .quote-form-section .qf-intro h2 { font-size: 37px; }
  .quote-form-section .qf-intro p { font-size: 21px; }
  .quote-form-section .panel-label { font-size: 11px; }
  .quote-form-section .dim-chip .val { font-size: 18px; }
  .quote-form-section .dim-chip .lbl { font-size: 11px; }
  .quote-form-section .slider-row label { font-size: 15px; }
  .quote-form-section .slider-row label span { font-size: 16px; }
  .quote-form-section .thickness-note { font-size: 12px; }
  .quote-form-section .depth-btn { font-size: 15px; }
  .quote-form-section .price-main { font-size: 38px; }
  .quote-form-section .price-sub { font-size: 14px; }
  .quote-form-section .price-breakdown { font-size: 14px; }
  .quote-form-section .custom-note { font-size: 14px; }
  .quote-form-section .form-section h2 { font-size: 28px; }
  .quote-form-section .section-desc { font-size: 18px; }
  .quote-form-section label.field-label { font-size: 15px; }
  .quote-form-section input[type=text], .quote-form-section input[type=email], .quote-form-section input[type=tel],
  .quote-form-section input[type=number], .quote-form-section select, .quote-form-section textarea { font-size: 16px; }
  .quote-form-section .wood-name { font-size: 16px; }
  .quote-form-section .wood-desc { font-size: 13px; }
  .quote-form-section .unit-btn { font-size: 14px; }
  .quote-form-section .timeline-card .tl-time { font-size: 20px; }
  .quote-form-section .timeline-card .tl-label { font-size: 12px; }
  .quote-form-section .timeline-card .tl-note { font-size: 12px; }
  .quote-form-section .mount-card .mount-label { font-size: 17px; }
  .quote-form-section .mount-card .mount-note { font-size: 12px; }
  .quote-form-section .submit-btn { font-size: 20px; }
  .quote-form-section .submit-note { font-size: 14px; }
  .quote-form-section .success-msg { font-size: 16px; }
  .quote-form-section .success-msg h3 { font-size: 20px; }
}
