.quote-section {
  color: #f9f6ef;
  background: #263c31;
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.quote-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
}

.quote-intro {
  padding-top: 1.25rem;
}

.quote-intro h2 {
  font-family: var(--display);
  font-size: clamp(3.5rem, 5.5vw, 5.4rem);
  font-weight: 450;
  line-height: 1.06;
  letter-spacing: -0.055em;
  color: #f9f6ef;
}

.quote-intro > p {
  max-width: 34ch;
  margin: 1.8rem 0 2.6rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #dce3d9;
}

.quote-contact {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1.7rem;
  border-top: 1px solid #5e7063;
}

.quote-contact > span {
  font-size: 0.9375rem;
  color: #dce3d9;
}

.quote-phone {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.35;
  color: #f9f6ef;
  text-decoration: none;
  font-variant-numeric: lining-nums;
}

.quote-facebook {
  font-size: 0.9375rem;
  color: #f9f6ef;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.quote-facebook {
  display: inline-block;
  margin-top: 2.5rem;
}

.quote-phone:hover,
.quote-facebook:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.quote-intro a:focus-visible {
  outline: 3px solid #e7b99a;
  outline-offset: 5px;
}

.quote-paper {
  padding: clamp(1.5rem, 3.25vw, 3rem);
  color: var(--ink);
  background: var(--paper);
  border-radius: 0.5rem;
}

.quote-form h3 {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.7vw, 2.25rem);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.quote-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1rem;
  min-inline-size: 0;
  margin: 1.55rem 0 0;
  padding: 0;
  border: 0;
}

.quote-field {
  min-width: 0;
}

.quote-field-wide {
  grid-column: 1 / -1;
}

.quote-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.quote-field label span {
  font-weight: 400;
  color: var(--muted);
}

.quote-field input,
.quote-field select,
.quote-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #879282;
  border-radius: 0.25rem;
  background-color: #fffdf9;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.quote-field input::placeholder,
.quote-field textarea::placeholder {
  color: #687065;
  opacity: 1;
}

.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
  border-color: var(--pine);
}

.quote-field select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: linear-gradient(45deg, transparent 50%, #516057 50%), linear-gradient(135deg, #516057 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.quote-field textarea {
  display: block;
  min-height: 7.5rem;
  resize: vertical;
}

.quote-field [aria-invalid="true"] {
  border-color: #9d3225;
}

.quote-field-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #9d3225;
}

.quote-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.quote-submit,
.quote-success-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.6rem;
  margin-top: 1.75rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--rust);
  border-radius: 0.25rem;
  background: var(--rust);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.quote-submit:hover,
.quote-success-call:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
}

.quote-submit:disabled {
  cursor: wait;
  background: #74513f;
  border-color: #74513f;
}

.quote-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid #ffffff66;
  border-top-color: #fff;
  border-radius: 50%;
}

.quote-form[aria-busy="true"] .quote-spinner {
  display: block;
  animation: quote-spin 700ms linear infinite;
}

.quote-demo-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
  text-align: center;
}

.quote-error-summary {
  padding: 1rem;
  margin-top: 1.5rem;
  border: 1px solid #a44736;
  border-radius: 0.25rem;
  color: #812d20;
  background: #fff3e9;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.quote-error-summary p {
  margin: 0 0 0.4rem;
}

.quote-error-summary a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.quote-success {
  padding-block: 1rem;
  text-align: center;
  animation: quote-confirm 300ms ease-out both;
}

.quote-success-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #e2eadb;
  color: var(--pine);
  font-size: 1.75rem;
}

.quote-success h3:focus {
  outline: none;
}

.quote-success p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.quote-draft {
  margin-top: 1.25rem;
  text-align: left;
}

.quote-draft label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 650;
}

.quote-draft textarea {
  display: block;
  width: 100%;
  padding: .7rem .85rem;
  resize: vertical;
  border: 1px solid #879282;
  border-radius: .25rem;
  background: var(--white);
  color: var(--ink);
}

.quote-draft-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem 1.1rem;
}

.quote-draft-actions .quote-reset {
  margin-top: 0;
  padding-inline: 0;
}

.quote-draft-actions a {
  color: var(--rust-dark);
  font-weight: 700;
}

.quote-success .quote-copy-status {
  font-size: .875rem;
}

.quote-success .quote-reference {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.6rem;
  margin-block: 1.5rem;
  padding: 0.85rem;
  border: 1px solid #b8c0b3;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.quote-reference strong {
  color: var(--pine);
  overflow-wrap: anywhere;
}

.quote-reset {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.quote-section [hidden] {
  display: none !important;
}

@keyframes quote-confirm {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes quote-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .quote-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .quote-intro {
    padding-top: 0;
  }

  .quote-intro > p {
    max-width: 48ch;
  }

  .quote-contact {
    max-width: 28rem;
  }

  .quote-facebook {
    margin-top: 1.4rem;
  }
}

@media (max-width: 480px) {
  .quote-fields {
    grid-template-columns: 1fr;
  }

  .quote-paper {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-section *,
  .quote-section *::before,
  .quote-section *::after {
    animation: none !important;
    transition: none !important;
  }
}
