:root {
  --brand: #dac2a9;
  --brand-600: #c5ab90;
  --ink: #222;
  --ink-weak: #5a5a5a;
  --paper: #fff;
  --paper-alt: #f7f5f2;
}

/* Header readability on light page (desktop at top) */
@media (min-width: 881px) {
  .site-header:not(.scrolled) .primary-nav a {
    color: #222;
  }
  .site-header:not(.scrolled) .nav-toggle {
    color: #111;
  }
}
/* Mobile dropdown always white */
@media (max-width: 880px) {
  .site-header .primary-nav a {
    color: #fff;
  }
  .site-header .nav-toggle {
    color: #fff;
  }
}

/* Title band */
.quote-hero {
  background: var(--paper-alt);
  padding: clamp(56px, 8vh, 110px) 0 clamp(20px, 4vh, 36px);
}
.quote-title {
  text-align: center;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.quote-lede {
  text-align: center;
  color: var(--ink-weak);
  margin: 0 auto 1rem;
  max-width: 70ch;
}
.section-rule {
  position: relative;
  height: 20px;
  margin-top: 0.25rem;
}
.section-rule::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 0, 0, 0.08) 12%,
    rgba(0, 0, 0, 0.18) 50%,
    rgba(0, 0, 0, 0.08) 88%,
    transparent
  );
}
.section-rule::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -1px;
  width: clamp(96px, 12vw, 180px);
  height: 4px;
  background: var(--brand);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(218, 194, 169, 0.45);
}

/* FORM SECTION: add a light-gray separator under testimonials */
.quote-main {
  background: var(--paper-alt);
  position: relative;
  padding-top: 10px; /* bumps the form down a bit */
}
.quote-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px; /* thickness of the gap */
  background: #ececec; /* light-gray bar */
}

.page-quote .testimonials {
  background: var(--paper);
}

/* Narrow ONLY the form container, not the testimonials band */
.quote-main .container {
  max-width: min(760px, 92vw);
}

/* Form shell */
.quote-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
  padding: clamp(18px, 3.2vw, 28px);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
legend {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

/* Stacked labels (full width inputs & textareas) */
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  margin-bottom: 10px;
}
label.stack span {
  margin-bottom: 4px;
}
input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--brand);
  border-color: var(--brand);
}

/* Simple lists for checkboxes/radios */
.choices {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.choices li {
  margin: 6px 0;
}
.choices label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.choices label.inline {
  flex-wrap: wrap;
  gap: 8px;
}
.choices input[type='text'] {
  max-width: 360px;
}

/* Photos */
.help {
  color: var(--ink-weak);
  margin: 0.25rem 0 0.75rem;
}
.dropzone {
  border: 2px dashed rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dropzone:focus {
  outline: 2px solid var(--brand);
}
.dropzone.dragover {
  background: #fbf9f6;
  border-color: var(--brand-600);
}
.dropzone .dz-inner .link {
  text-decoration: underline;
}
.dropzone .dim {
  color: #7b7b7b;
  font-size: 13px;
  margin-top: 4px;
}

/* Simple stacked file inputs */
.file-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.file-list .file > span {
  font-size: 13px;
  color: #6b6b6b;
  margin-bottom: 2px;
}
.file-list input[type='file'] {
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

/* Previews */
.previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.preview {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
  height: 120px;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview .remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
}

/* Override generic label stacking for the consent row */
label.consent {
  display: flex;
  flex-direction: row; /* ← checkbox left, text right */
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 2px;
}
label.consent input[type='checkbox'] {
  margin-top: 3px; /* small visual align tweak */
}

/* Actions row: center the button; let status wrap beneath */
.actions {
  display: flex;
  align-items: center;
  justify-content: center; /* center the button */
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap; /* allows msg to drop under on small widths */
}
.form-msg {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #7b7b7b;
}

/* Error states */
.is-error input,
.is-error textarea,
.is-error .dropzone,
.is-error input[type='file'] {
  border-color: #c53b3b !important;
  outline-color: #c53b3b !important;
}
.error-text {
  color: #c53b3b;
  font-size: 13px;
  margin-top: 4px;
}

/* Thank-you photo block */
.thanks-photo {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.thanks-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  /* If no width/height attributes, enforce an aspect ratio: */
  aspect-ratio: 16 / 10;
}
.thanks-photo figcaption {
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-weak);
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.06);
}
