/* ============================================================
   Georgia Gate & Fence - Start Your Project page
   ============================================================ */

:root {
  /* Neutral field background so form controls don't blend with the cream page/card */
  --field-bg: #f4f5f7;
  --field-border: #dfe2e7;
}

/* ---------- Page hero ---------- */
.sp-hero { background: var(--cream); border-bottom: 1px solid var(--gray-200); }
.sp-hero__inner { padding: 64px 28px 56px; }
.sp-hero__title { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 18px; }
.sp-hero__sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--gray-700); line-height: 1.55; margin: 0 0 22px; max-width: 60ch; }
.sp-hero__meta { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--bronze-dark); margin: 0; }
.sp-hero__meta svg { width: 18px; height: 18px; }

/* ---------- Layout ---------- */
.sp-section { background: var(--cream); padding: 64px 0 88px; }
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }

/* ---------- Form (single card) ---------- */
.sp-form {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: 0 14px 44px rgba(26, 25, 22, .10);
  padding: 6px 40px 40px; display: flex; flex-direction: column;
}
.sp-form:has(iframe) { padding: 20px; }
.sp-form iframe { display: block; width: 100%; }
.sp-block { padding: 32px 0; border-top: 1px solid var(--gray-200); }
.sp-block:first-child { border-top: 0; }
.sp-block--submit { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sp-block__title { font-family: var(--font-head); font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.sp-block__help { font-size: 14.5px; color: var(--gray-500); margin: 0 0 22px; line-height: 1.5; }
.sp-block__title + .sp-field, .sp-block__title + .opt-grid, .sp-block__title + .sp-textarea { margin-top: 22px; }
.sp-optional, .sp-req {
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; vertical-align: middle; margin-left: 8px;
  padding: 3px 9px; border-radius: 999px;
}
.sp-optional { color: var(--gray-500); background: var(--gray-100); }
.sp-req { color: var(--bronze-dark); background: var(--bronze-soft); }

.sp-field { border: 0; margin: 0; padding: 0; }
.sp-field + .sp-field { margin-top: 26px; }
.sp-field__label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 14px; padding: 0; }
.sp-field__help { margin-top: -8px; margin-bottom: 14px; }

/* ---------- Option cards (build) ---------- */
.opt-grid { display: grid; gap: 14px; }
.opt-grid--build { grid-template-columns: repeat(5, 1fr); }
.opt-card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; cursor: pointer;
  padding: 22px 14px; border-radius: var(--radius); background: var(--field-bg);
  border: 1.5px solid var(--field-border);
  transition: border-color .18s ease, box-shadow .2s ease, transform .15s ease, background .18s ease;
}
.opt-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-card:hover { border-color: var(--bronze); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.opt-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: #fff; color: var(--bronze-dark); transition: background .18s ease, color .18s ease;
}
.opt-card__icon svg { width: 26px; height: 26px; }
.opt-card__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.opt-card:has(input:checked) { border-color: var(--bronze); background: var(--bronze-soft); box-shadow: 0 0 0 3px rgba(168,125,79,.15); }
.opt-card:has(input:checked) .opt-card__icon { background: var(--bronze); color: #fff; }
.opt-card input:focus-visible ~ .opt-card__name { outline: 2px solid var(--bronze-dark); outline-offset: 4px; border-radius: 4px; }

/* ---------- Chips ---------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.opt-chip { position: relative; cursor: pointer; }
.opt-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-chip span {
  display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--gray-700);
  background: var(--field-bg); border: 1.5px solid var(--field-border);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.opt-chip:hover span { border-color: var(--bronze); color: var(--bronze-dark); }
.opt-chip:has(input:checked) span { border-color: var(--bronze); background: var(--bronze); color: #fff; }
.opt-chip input:focus-visible ~ span { outline: 2px solid var(--bronze-dark); outline-offset: 3px; }

/* ---------- Inputs ---------- */
.sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-row + .sp-row { margin-top: 16px; }
.sp-row + .sp-field { margin-top: 26px; }
.sp-input { display: flex; flex-direction: column; gap: 7px; }
.sp-input label { font-size: 13.5px; font-weight: 600; color: var(--gray-700); }
.sp-input input, .sp-textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--field-bg); border: 1.5px solid var(--field-border); border-radius: 10px;
  padding: 13px 15px; width: 100%; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.sp-input input::placeholder, .sp-textarea::placeholder { color: var(--gray-500); }
.sp-input input:focus, .sp-textarea:focus {
  outline: none; border-color: var(--bronze); background: #fff;
  box-shadow: 0 0 0 3px rgba(168,125,79,.14);
}
.sp-textarea { resize: vertical; min-height: 140px; line-height: 1.55; }

/* ---------- Upload ---------- */
.sp-upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sp-upload__drop {
  display: flex; flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px;
  text-align: center; cursor: pointer; padding: 18px 20px;
  border: 2px dashed var(--gray-300); border-radius: var(--radius); background: var(--field-bg);
  color: var(--gray-500); transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.sp-upload__drop svg { width: 22px; height: 22px; color: var(--bronze-dark); }
.sp-upload__drop:hover, .sp-upload.is-drag .sp-upload__drop { border-color: var(--bronze); background: var(--bronze-soft); color: var(--bronze-dark); }
.sp-upload__main { font-size: 14px; font-weight: 600; color: var(--ink); }
.sp-upload__main strong { color: var(--bronze-dark); }
.sp-upload__hint { font-size: 12.5px; flex-basis: 100%; }
.sp-upload__list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sp-upload__list li {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--gray-700);
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 10px; padding: 10px 14px;
}
.sp-upload__list li .sp-file-remove {
  margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--gray-500);
  font-size: 18px; line-height: 1; padding: 0 4px; transition: color .15s ease;
}
.sp-upload__list li .sp-file-remove:hover { color: var(--bronze-dark); }

/* ---------- Submit ---------- */
.sp-submit { align-self: flex-start; }
.sp-disclaimer { font-size: 12.5px; color: var(--gray-500); line-height: 1.5; margin: 0; max-width: 60ch; }

/* ---------- Success ---------- */
.sp-success {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: 0 14px 44px rgba(26, 25, 22, .10);
  padding: 48px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.sp-success .sp-block__help { max-width: 52ch; margin: 0; }

/* ---------- Sidebar ---------- */
.sp-aside { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 18px; }
.sp-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.sp-card__title { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin: 0 0 18px; }

.sp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: none; }
.sp-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--gray-700); line-height: 1.45; }
.sp-steps__num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bronze-soft); color: var(--bronze-dark);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}

.sp-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sp-perks li { position: relative; padding-left: 28px; font-size: 14px; font-weight: 500; color: var(--gray-700); }
.sp-perks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bronze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.sp-card--contact { background: var(--ink); color: rgba(255,255,255,.8); border-color: transparent; }
.sp-card--contact .sp-card__title { color: #fff; }
.sp-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.sp-contact li { display: flex; gap: 14px; align-items: flex-start; }
.sp-contact__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); color: var(--bronze); display: flex; align-items: center; justify-content: center; }
.sp-contact__icon svg { width: 18px; height: 18px; }
.sp-contact__body { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; }
.sp-contact__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); }
.sp-contact__body a:hover { color: #fff; }
.sp-hours { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.sp-hours__title { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); margin: 0 0 12px; }
.sp-hours ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sp-hours li { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.sp-hours li span:first-child { color: rgba(255,255,255,.7); }
.sp-hours li span:last-child { color: #fff; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }
.sp-faq .section__head { text-align: center; margin-left: auto; margin-right: auto; }
.sp-faq .section__eyebrow { justify-content: center; }
.sp-faq .faq-list { margin-left: auto; margin-right: auto; text-align: left; }
.faq-item { border-bottom: 1px solid var(--gray-300); }
.faq-item:first-child { border-top: 1px solid var(--gray-300); }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; color: var(--ink);
  padding: 24px 4px;
}
.faq-item__ic { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--bronze-dark); stroke-width: 2.2; stroke-linecap: round; transition: transform .3s ease; }
.faq-item.is-open .faq-item__ic { transform: rotate(135deg); }
.faq-item__a { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq-item__a p { margin: 0; padding: 0 4px 24px; font-size: 15px; color: var(--gray-700); line-height: 1.6; max-width: 72ch; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .sp-layout { grid-template-columns: 1fr; gap: 36px; }
  .sp-aside { position: static; order: -1; }
  .opt-grid--build { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .sp-section { padding: 44px 0 64px; }
  .sp-form { padding: 2px 22px 28px; }
  .sp-block { padding: 26px 0; }
  .opt-grid--build { grid-template-columns: repeat(2, 1fr); }
  .sp-row { grid-template-columns: 1fr; }
  .sp-submit { align-self: stretch; width: 100%; }
}
