:root {
  --cream: #fbf9ef;
  --green: #052d1c;
  --sage: #40644e;
  --gold: #e5ddb1;
  --ink: #171717;
  --muted: #5b5952;
  --line: rgba(5, 45, 28, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 24px 48px;
  background: rgba(251, 249, 239, 0.96);
}

.brand img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

nav a {
  color: #171717;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.071em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a[aria-current="page"] {
  color: var(--sage);
}

.inquiry-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 24px;
  color: var(--cream);
  background:
    linear-gradient(rgba(5, 45, 28, 0.58), rgba(5, 45, 28, 0.58)),
    url("//img1.wsimg.com/isteam/ip/cef426ed-967c-4179-98b0-776c22bd1d50/DiGeronimos-Couple%20Cheers.webp/:/cr=t:0%25,l:16.67%25,w:66.67%25,h:100%25/rs=w:1536,h:1536,cg:true") center/cover;
}

.inquiry-hero p {
  margin: 0 0 16px;
  font-size: 18px;
  font-style: italic;
}

.inquiry-hero h1,
.form-intro h2 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

.inquiry-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 72px);
}

.form-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.form-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.form-intro h2 {
  color: var(--green);
  font-size: clamp(30px, 4vw, 48px);
}

.form-intro p {
  color: var(--muted);
  font-size: 18px;
}

.inquiry-form {
  display: grid;
  gap: 28px;
}

fieldset {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.build-selections-panel {
  border: 1px solid var(--line);
  background: #fff;
}

.build-selections-panel summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  color: var(--green);
  cursor: pointer;
  font-family: "Cinzel", Georgia, serif;
  font-size: 24px;
  list-style: none;
}

.build-selections-panel summary::-webkit-details-marker {
  display: none;
}

.build-selections-panel summary::after {
  content: "+";
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--green);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.build-selections-panel[open] summary::after {
  content: "-";
}

.build-selections-panel fieldset {
  border: 0;
  border-top: 1px solid var(--line);
}

.build-selections-panel legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

legend {
  padding: 0 10px;
  color: var(--green);
  font-family: "Cinzel", Georgia, serif;
  font-size: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-row:has(> input:nth-child(3)) {
  grid-template-columns: 1fr 0.8fr 0.8fr;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--green);
  font-weight: 700;
}

.field-help {
  margin: 0 0 18px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(23, 23, 23, 0.22);
  border-radius: 0;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.option-grid label,
.agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}

.option-grid input,
.agreement input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
}

button {
  justify-self: start;
  min-height: 56px;
  border: 1px solid var(--green);
  padding: 0 34px;
  background: var(--green);
  color: var(--cream);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.071em;
  text-transform: uppercase;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  display: none;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  border-color: #9d3434;
  color: #9d3434;
}

.quote-summary {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--green);
  color: var(--cream);
}

.quote-summary[hidden] {
  display: none;
}

.quote-summary span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.quote-summary strong {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1;
}

footer {
  padding: 56px 24px;
  text-align: center;
  background: #fff;
}

footer nav {
  margin-bottom: 24px;
}

footer p {
  margin: 8px 0;
  color: var(--green);
}

footer small {
  display: block;
  margin-top: 24px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .site-header {
    padding: 16px 24px;
    flex-direction: column;
  }

  nav {
    gap: 14px;
  }

  .field-row,
  .field-row:has(> input:nth-child(3)),
  .option-grid {
    grid-template-columns: 1fr;
  }

  fieldset {
    padding: 22px 18px;
  }
}
