/* ==========================================================================
   sections/closing-cta.css — the last word on the page: call the shop
   ========================================================================== */

.closing {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--ink);
  color: var(--paper);
}

/* The parts warehouse, faded far back behind the dark band */
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../../images/parts-warehouse-01.webp');
  background-size: cover;
  background-position: center 45%;
  opacity: 0.3;
}

/* Keeps the type readable over the photo */
.closing::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
              rgba(28, 27, 25, 0.94) 0%,
              rgba(28, 27, 25, 0.82) 45%,
              rgba(28, 27, 25, 0.62) 100%);
}

.closing__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.closing__title {
  font-size: var(--step-3);
  max-width: 18ch;
  color: var(--white);
  text-wrap: balance;
}

.closing__body {
  margin-top: var(--sp-3);
  max-width: 52ch;
  color: rgba(251, 248, 245, 0.72);
}

.closing__actions {
  display: grid;
  justify-items: start;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

/* On the dark band the outlined button flips to light borders */
.closing .btn--outline {
  color: var(--white);
  border-color: rgba(251, 248, 245, 0.35);
}

.closing .btn--outline:hover {
  border-color: var(--white);
  background: rgba(251, 248, 245, 0.08);
}

.closing__hours {
  font-size: var(--step--1);
  color: rgba(251, 248, 245, 0.6);
}

/* --- Appointment request -----------------------------------------------
   The phone stays the main action; this is the second way in for people who
   would rather write it down than call. */
/* Form and thank-you sit in the same grid cell, so sending the request
   swaps one for the other without the section changing height. */
.request-card {
  --control-h: 2.95rem;
  display: grid;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(10, 9, 8, 0.75);
  color: var(--ink);
}

.request-form,
.request-thanks {
  grid-area: 1 / 1;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.request-thanks {
  opacity: 0;
  visibility: hidden;
}

.request-card.is-sent .request-form {
  opacity: 0;
  visibility: hidden;
}

.request-card.is-sent .request-thanks {
  opacity: 1;
  visibility: visible;
}

.request-form__title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}

.request-form__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

.request-form__icon svg { width: 19px; height: 19px; }

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

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: var(--sp-3);
}

.field-row .field { margin-bottom: var(--sp-3); }

.field label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field label span {
  font-weight: 500;
  color: var(--ink-mute);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  height: var(--control-h);
  font-family: var(--font-text);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field textarea { height: auto; resize: vertical; line-height: 1.5; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 32, 42, 0.14);
}

.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--red); }

.request-form__submit {
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--sp-3);
}

/* Full-width submit for forms without the drop-off date field beside it */
.request-form__submit--full {
  display: block;
  padding-bottom: 0;
  margin-top: var(--sp-2);
}

/* Dark button: clearly the action here without a second red fighting the call */
/* Locked to the same height as the date field beside it */
.btn--dark {
  width: 100%;
  height: var(--control-h);
  padding-block: 0;
  line-height: 1.2;
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: #302e2b;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -14px rgba(28, 27, 25, 0.9);
}

.request-form__promise {
  font-size: var(--step--1);
  color: var(--ink-mute);
}

/* --- After sending ------------------------------------------------------ */
.request-thanks {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--sp-2);
}

.request-thanks__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--sp-2);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

.request-thanks__mark svg { width: 22px; height: 22px; }

.request-thanks__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.request-thanks__body {
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.request-thanks__body a {
  color: var(--red-deep);
  font-weight: 600;
}

@media (max-width: 900px) {
  .closing__inner { grid-template-columns: 1fr; }
  .closing__title { max-width: 20ch; }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .request-form__submit { padding-bottom: var(--sp-3); }
}

/* --- Pickup & delivery: a light cross-style feature band (round 2) -------- */
.pickup {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--paper-tint);
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
}

.pickup::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(100deg, rgba(243, 238, 232, 0.97) 0%, rgba(243, 238, 232, 0.92) 55%, rgba(243, 238, 232, 0.78) 100%),
    url('../../images/storefront-flatbed-hero.webp');
  background-size: cover;
  background-position: center 50%;
}

.pickup > .page-width { position: relative; z-index: 1; }
.pickup .section-head { margin-bottom: 0; }
.pickup h2 { font-size: var(--step-3); color: var(--ink); text-wrap: balance; }
.pickup__body { margin-top: var(--sp-3); max-width: none; color: var(--ink-soft); }
.pickup__cta { margin-top: var(--sp-4); }
.pickup__cta svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.pickup__cta:hover svg { transform: rotate(-12deg) scale(1.06); }
