:root {
  --ink: #2c2026;
  --muted: #6f6268;
  --cream: #fffaf4;
  --paper: #ffffff;
  --rose: #a53f63;
  --rose-dark: #7e2948;
  --rose-soft: #f7e8ee;
  --line: #e7d9dc;
  --success: #2f6c4e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }

body { margin: 0; }

.quote-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(500px, 1.3fr);
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  align-items: start;
}

.quote-intro { position: sticky; top: 3rem; padding-top: 1.5rem; }
.eyebrow { color: var(--rose); font-size: .78rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
h1 { font-family: Georgia, serif; font-size: 4rem; line-height: 1; margin: 1rem 0 1.25rem; }
.quote-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.65; }

.contact-card { border-left: 3px solid var(--rose); display: grid; gap: .35rem; margin-top: 2rem; padding-left: 1rem; }
.contact-card a { color: var(--rose-dark); font-weight: 750; }
.contact-card span { color: var(--muted); font-size: .92rem; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 55px rgb(75 44 55 / 10%); padding: 2.5rem; }
h2 { font-family: Georgia, serif; font-size: 2.35rem; margin: 0; }
.required-note { color: var(--muted); font-size: .86rem; margin: .5rem 0 1.5rem; }
.required-note span, label > span { color: var(--rose); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
label { color: var(--ink); display: grid; font-size: .9rem; font-weight: 700; gap: .45rem; }
label.full { grid-column: 1 / -1; }
label small { color: var(--muted); font-size: .82rem; font-weight: 500; }
.section-heading {
  border-top: 1px solid var(--line);
  margin-top: .4rem;
  padding-top: 1.25rem;
}
.section-heading:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.section-heading h3 {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 .25rem;
}
.section-heading p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
  margin: 0;
}
.file-upload {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.file-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.file-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rose);
  border-radius: 999px;
  color: var(--rose-dark);
  cursor: pointer;
  font-weight: 800;
  min-height: 2.75rem;
  padding: .75rem 1rem;
}
.file-upload:focus-within .file-upload-button {
  box-shadow: 0 0 0 3px rgb(165 63 99 / 14%);
}
.file-upload-status {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  min-width: 0;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #cdbfc3;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 450;
  padding: .82rem .9rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgb(165 63 99 / 14%); outline: none; }
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--rose-dark) 50%),
    linear-gradient(135deg, var(--rose-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}

.consent { display: flex; align-items: flex-start; gap: .7rem; margin: 1.4rem 0; color: var(--muted); font-weight: 500; line-height: 1.45; }
.consent input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--rose); }
.consent a { color: var(--rose-dark); }
.website-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button { border: 0; border-radius: 999px; background: var(--rose); color: #fff; cursor: pointer; font: inherit; font-weight: 800; min-height: 3rem; padding: .95rem 1.5rem; }
button:hover { background: var(--rose-dark); }
button:disabled { cursor: wait; opacity: .62; }
.secondary-button { background: transparent; border: 1px solid var(--rose); color: var(--rose-dark); }
.form-status { min-height: 1.3rem; color: var(--muted); font-size: .9rem; margin: .9rem 0 0; }
.form-status.error { color: #9b263b; }

.success-panel { text-align: center; padding: 4rem 1rem; }
.success-mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1.25rem; border-radius: 50%; background: #e3f1e9; color: var(--success); font-size: 1.8rem; font-weight: 900; }
.success-panel p { color: var(--muted); line-height: 1.65; max-width: 34rem; margin: 1rem auto 1.5rem; }

@media (max-width: 760px) {
  .quote-page { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
  .quote-intro { position: static; padding-top: 0; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.9rem; }
  .field-grid { grid-template-columns: 1fr; }
  label.full { grid-column: auto; }
  .form-card { padding: 1.25rem; }
}
