/* Quote form on /contact/ (Web3Forms) + thank-you page. Uses the tokens in styles.css. */

/* Contact hero: phones = headline, form, then the rest; desktop = copy left, form card right */
.page-hero--contact .page-hero__inner { padding-top: 14px; padding-bottom: 72px; }
@media (min-width: 1024px) { .page-hero--contact .page-hero__inner { padding-top: 72px; padding-bottom: 112px; } }
.page-hero--contact h1 { font-size: clamp(28px, 7vw, 56px); }
.page-hero--contact .section-label { margin-bottom: 6px; }
.page-hero--contact .contact-hero-grid { gap: 16px; }
.page-hero--contact .contact-blockquote { margin-top: 8px; }
@media (min-width: 1024px) {
  .page-hero--contact .contact-hero-grid { grid-template-areas: "head form" "rest form"; column-gap: 48px; row-gap: 0; }
  .contact-head { grid-area: head; align-self: end; }
  .contact-rest { grid-area: rest; align-self: start; }
  .page-hero--contact .form-card { grid-area: form; }
}
#quote { scroll-margin-top: 110px; }

/* Card copy */
.page-hero--contact .form-card__body { padding: 18px 16px 16px; }
@media (min-width: 640px) { .page-hero--contact .form-card__body { padding: 28px; } }
.page-hero--contact .form-card__title { margin: 0; font-size: 22px; }
@media (min-width: 640px) { .page-hero--contact .form-card__title { font-size: 26px; } }
/* .form-card prefix: beats ".page-hero__inner p" (white, 18px, 20px margin) */
.form-card .lf-card-lead { max-width: none; margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; color: rgba(45,45,45,0.7); }

/* The form: two fields per row even on phones */
.lf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; color: var(--gba-text); }
.lf-form > * { min-width: 0; }
.lf-form .full { grid-column: 1 / -1; }
.lf-form label { display: block; margin: 0 0 4px; font-size: 11px; font-weight: 700; line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(26,43,109,0.75); }
.lf-form .opt { font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(45,45,45,0.55); }
.lf-form input, .lf-form select, .lf-form textarea {
  display: block; width: 100%; height: 46px; margin: 0; padding: 0 12px;
  font: inherit; font-size: 16px; line-height: normal; color: var(--gba-text);
  background: var(--gba-grey); border: 1.5px solid var(--gba-border); border-radius: 8px;
  -webkit-appearance: none; appearance: none;
}
.lf-form textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; }
.lf-form select { padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a2b6d' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.lf-form input:focus, .lf-form select:focus, .lf-form textarea:focus { outline: none; border-color: var(--gba-navy); background-color: #fff; box-shadow: 0 0 0 3px rgba(26,43,109,0.18); }
.lf-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-form button[type=submit] {
  width: 100%; height: 52px; border: 0; border-radius: 6px; background: var(--gba-gold); color: var(--gba-navy);
  font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 20px -8px rgba(245,166,35,0.45); transition: background-color 180ms ease;
}
.lf-form button[type=submit]:hover { background: var(--gba-gold-hover); }
.lf-form button[disabled] { opacity: 0.65; cursor: wait; }
.form-card .lf-fine { grid-column: 1 / -1; max-width: none; margin: -2px 0 0; text-align: center; font-size: 12.5px; line-height: 1.4; color: rgba(45,45,45,0.7); }
.lf-fine a { color: var(--gba-navy); font-weight: 700; white-space: nowrap; }

/* "+ Add more details (optional)" */
.more-toggle { grid-column: 1 / -1; justify-self: start; margin: -2px 0 0; padding: 2px 0; border: 0; background: none; color: var(--gba-navy); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.more-toggle[aria-expanded="true"] { display: none; }
.more-fields { display: contents; }
.more-fields[hidden] { display: none; }

/* Compact photo button: drag and drop on desktop, camera or library on phones */
.lf-form label.photo-drop { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; margin: 0; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--gba-navy); background: var(--gba-grey); border: 1.5px dashed #aeb9c8; border-radius: 8px; transition: border-color 0.2s, background 0.2s; }
.lf-form label.photo-drop:hover, .lf-form label.photo-drop.is-over, .lf-form label.photo-drop:focus-within { border-color: var(--gba-navy); background: #fff; }
.lf-form label.photo-drop.is-over { border-style: solid; }
.lf-form label.photo-drop.is-full { opacity: 0.55; cursor: default; }
.lf-form .photo-drop input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.lf-form .photo-drop svg { width: 20px; height: 20px; color: var(--gba-gold); }
.photo-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.photo-list:empty { display: none; }
.photo-list li { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px 44px 4px 4px; background: #fff; border: 1px solid var(--gba-border); border-radius: 8px; overflow: hidden; font-size: 13px; color: rgba(45,45,45,0.7); }
.photo-list img { width: 36px; height: 36px; flex: none; object-fit: cover; border-radius: 5px; background: var(--gba-border); }
.photo-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gba-gold); transition: width 0.2s; }
.photo-list .is-done .photo-bar, .photo-list .is-err .photo-bar { display: none; }
.photo-list .is-done .photo-status { color: var(--gba-navy); font-weight: 700; }
.photo-list .is-err { border-color: #d93025; }
.photo-list .is-err .photo-status { color: #b3261e; }
.photo-del { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--gba-grey); color: var(--gba-navy); font-size: 20px; line-height: 1; cursor: pointer; }

/* Home hero form: desktop keeps the card floating over the photo; below 1024px the two columns are
   flattened (display: contents) so the order is label, headline, form, then copy, trust list, photo */
.hero--form #hero-quote { scroll-margin-top: 100px; }
.hero--form .form-card__body { padding: 18px 16px 16px; }
@media (min-width: 640px) { .hero--form .form-card__body { padding: 24px; } }
.hero--form .form-card__title { margin: 0; font-size: 22px; }
@media (min-width: 640px) { .hero--form .form-card__title { font-size: 24px; } }
@media (max-width: 1023px) {
  .hero--form .hero__inner { padding-top: 20px; padding-bottom: 64px; }
  .hero--form .hero__grid { gap: 0; }
  .hero--form .hero__copy, .hero--form .hero__media { display: contents; }
  .hero--form .hero__copy > .section-label { order: 1; margin-bottom: 6px; }
  .hero--form .hero__copy > h1 { order: 2; font-size: clamp(28px, 7.4vw, 44px); }
  .hero--form .hero__copy > h1 .accent { font-size: clamp(19px, 5vw, 30px); margin-top: 4px; }
  .hero--form .hero__form-wrap { order: 3; margin-top: 14px; width: 100%; max-width: 560px; justify-self: center; }
  .hero--form .hero__copy > p { order: 4; margin-top: 28px; max-width: 600px; }
  .hero--form .hero__trust { order: 5; }
  .hero--form .hero__ctas { order: 6; }
  .hero--form .hero__image-wrap { order: 7; margin-top: 32px; }
}
@media (min-width: 1024px) {
  /* the floating card overlaps the copy column by 16-60px: keep the headline clear of it */
  .hero--form .hero__copy h1 { font-size: clamp(40px, 3.9vw, 64px); }
  .hero--form .hero__form-wrap,
  .hero--form .hero__form-wrap:is(*) { left: -16px; }  /* beats the -40/-60px rules in styles.css at 1280px+ */
}
@media (max-width: 767px) {
  .hero--form .hero__copy > .section-label { display: none; }  /* decorative eyebrow: keeps the form above the fold */
  .hero--form .hero__ctas { display: none; }                   /* the form is right above it */
}

/* Thank-you page */
.thanks-card { max-width: 640px; }
.thanks-card .btn { margin-top: 28px; }
.thanks-steps { margin-top: 24px; display: grid; gap: 10px; color: rgba(255,255,255,0.85); }
.thanks-steps li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.thanks-steps svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--gba-gold); }
