/* Lindeblad Piano — Inquiry Forms v2 */

/* Hide the floating reCAPTCHA badge on the inquiry popup — visibility:hidden
   (not display:none) is Google's approved method, so reCAPTCHA keeps working.
   Compliance requires the "protected by reCAPTCHA" disclosure text to appear
   elsewhere, which lives in the site footer instead. */
.grecaptcha-badge { visibility: hidden!important; }

/* ============ Page ============ */
.inq-stage {
  max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px;
  display: flex; flex-direction: column; gap: 22px;
  background: #eef1f4; min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif; -webkit-font-smoothing: antialiased;
}

.inq-form-block { margin-top: 30px; }
.inq-form-block:first-child { margin-top: 0; }
.inq-form-block + .inq-form-block { margin-top: 48px; }

.inq-block-label {
  display: flex; align-items: center; gap: 14px; margin: 0 4px 16px;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase; color: #46525f;
}
.inq-block-label::after { content: ""; flex: 1; height: 1px; background: #d6dde4; }
.inq-block-label .inq-dot { width: 9px; height: 9px; border-radius: 50%; background: #1b7abe; flex-shrink: 0; }

/* ============ Form card ============ */
.inq-form-card {
  position: relative; width: 100%; max-width: 1040px; margin: 0 auto; background: #fff;
  border-radius: 22px; box-shadow: 0 18px 50px rgba(10,30,55,0.12), 0 2px 8px rgba(10,30,55,0.06);
  overflow: hidden; display: grid; grid-template-columns: 0.92fr 1.08fr; border: 1px solid #e3e9ef;
}

/* ---- Left brand panel ---- */
.inq-card-aside {
  padding: 52px 44px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  background: linear-gradient(180deg, #f7fafd 0%, #eef5fc 100%);
  border-right: 1px solid #cfe1f3;
}
.inq-aside-photo {
  width: 210px; height: 210px; border-radius: 50%; overflow: hidden;
  align-self: center; border: 5px solid #fff; box-shadow: 0 10px 30px rgba(20,60,100,0.18);
}
.inq-aside-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.inq-card-aside h3 {
  font-family: 'Miller Display', Georgia, serif; font-weight: 600;
  font-size: 28px; line-height: 1.15; color: #222; margin: 22px 0 0; text-align: center;
}
.inq-aside-bullets { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; align-self: center; text-align: left; }
.inq-aside-bullets li { display: flex; align-items: center; gap: 13px; color: #3c4855; font-size: 16px; line-height: 1.35; }
.inq-aside-bullets .inq-chk {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #1b7abe;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(27,122,190,0.3);
}
.inq-aside-bullets .inq-chk svg { width: 13px; height: 13px; color: #fff; }
/* Consolidated single-sentence version — mobile only (see Responsive below);
   desktop keeps the checkmark bullet list above. */
.inq-aside-desc { display: none; margin: 14px 0 0; color: #3c4855; font-size: 16px; line-height: 1.45; text-align: center; max-width: 340px; }

/* ---- Right form panel ---- */
/* .inq-card-form is the flex/scroll container on mobile (see Responsive below);
   padding lives on the scroll/footer children instead of here so it doesn't
   eat into the mobile max-height budget twice. */
.inq-card-form { display: flex; flex-direction: column; }
.inq-card-scroll { padding: 46px 46px 0; }
.inq-card-footer { padding: 14px 46px 40px; }

.inq-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inq-field { position: relative; display: flex; flex-direction: column; }
.inq-field.col-span { grid-column: 1 / -1; }

.inq-ctl {
  width: 100%; font-family: 'Inter', Arial, sans-serif; font-size: 15.5px; color: #222;
  background: #fff; border: 1.5px solid #c3ccd6; border-radius: 999px;
  padding: 16px 22px; transition: border-color .18s ease, box-shadow .18s ease;
  appearance: none; -webkit-appearance: none; box-sizing: border-box;
}
textarea.inq-ctl { border-radius: 20px; resize: vertical; min-height: 116px; line-height: 1.5; }
.inq-ctl::placeholder { color: #6b7682; opacity: 1; }
.inq-ctl:focus { outline: none; border-color: #1b7abe; box-shadow: 0 0 0 3px rgba(27,122,190,0.14); }

select.inq-ctl {
  color: #6b7682; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7682' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center; padding-right: 46px;
}
select.inq-ctl.has-value, select.inq-ctl:focus { color: #222; }

.inq-group-label {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 8px 0 2px;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: #6b7682;
}
.inq-group-label::after { content: ""; flex: 1; height: 1px; background: #e4e9ee; }

.inq-submit {
  width: 100%; margin-top: 0; border: 0; border-radius: 999px; background: #1b7abe; color: #fff;
  padding: 18px; font-size: 17px; font-weight: 600; box-shadow: 0 10px 26px rgba(27,122,190,0.3);
  transition: background .2s ease, transform .15s ease; cursor: pointer; font-family: 'Inter', Arial, sans-serif;
}
.inq-submit:hover { background: #15679f; transform: translateY(-1px); }
.inq-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ---- Success state ---- */
.inq-form-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 40px 8px; }
.inq-card-form.sent .inq-card-scroll,
.inq-card-form.sent .inq-card-footer { display: none; }
.inq-card-form.sent .inq-form-success { display: flex; }
.inq-success-mark {
  width: 64px; height: 64px; border-radius: 50%; background: #e8f4ea; color: #2f8a4e;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.inq-success-mark svg { width: 30px; height: 30px; }
.inq-form-success h3 {
  font-family: 'Miller Display', Georgia, serif; font-weight: 600;
  font-size: 25px; color: #222; margin: 0 0 10px;
}
.inq-form-success p { color: #5a6572; font-size: 15.5px; line-height: 1.6; margin: 0; max-width: 360px; }

/* ---- Error state ---- */
.inq-form-error { display: none; color: #b91c1c; font-size: 14px; margin-top: 12px; text-align: center; }
.inq-form-error.visible { display: block; }

/* ============ Payment popups (Get Started / Get Pre-Qualified) ============
   Copied as-is from the reference:
   .claude/tasks/feature-product-page-redesign/data/subtasks/2-popups/styles.css
   ('Miller' is already declared site-wide in /__assets/css/base.css, so it's
   not redeclared here.) */
.popup {
  width: 560px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, .40);
  padding: 40px 52px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.popup-photo {
  width: 110px; height: 110px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 5px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .16);
  overflow: hidden;
}
.popup-photo img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 20%;
}

.popup-title {
  font-family: 'Miller', Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 33px;
  letter-spacing: .4px;
  color: #222222;
  text-align: center;
  margin: 16px 0 0;
}

.popup-sub {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 23px;
  color: #666666;
  text-align: center;
  max-width: 360px;
}

/* ---------- Form ---------- */
.popup-form {
  margin-top: 24px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.popup-form input {
  height: 52px;
  border: 1px solid #c9ced3;
  border-radius: 26px;
  padding: 0 24px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  color: #222222;
  background: #ffffff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.popup-form input::placeholder { color: #4f5a66; opacity: 1; }
.popup-form input:focus {
  border-color: #1b7abe;
  box-shadow: 0 0 0 3px rgba(27, 122, 190, .15);
}

.btn {
  height: 54px;
  margin-top: 8px;
  border: none;
  border-radius: 27px;
  background: #1b7abe;
  color: #ffffff;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow: 0 3px 4px rgba(0, 0, 0, .10);
  transition: background .25s ease;
}
.btn:hover { background: #1769a3; }
.btn:active { transform: translateY(1px); }

/* ---- Functional hooks (not part of the reference file): success/error state
   toggling reuses submitInqForm()'s existing panelEl.classList.add('sent') --- */
.popup.sent .popup-form { display: none; }
.popup.sent .inq-form-success { display: flex; }

/* ============ Responsive ============ */
@media (max-width: 820px) {
  /* The popup iframe's own box is height-capped by the parent page (see
     global.js sizeToContent()) — 1dvh here tracks that box directly, since
     dvh inside an iframe resolves against the iframe's own viewport. Letting
     .inq-stage size naturally (min-height:0) preserves shrink-to-fit for
     short forms; max-height + internal scroll only kicks in once a form
     (e.g. trade-in) is taller than the popup itself, so the CTA stays pinned
     in view instead of scrolling away with the fields. */
  .inq-stage { min-height: 0; padding: 16px 14px 20px; }
  .inq-form-card { grid-template-columns: 1fr; max-width: 480px; max-height: calc(100dvh - 36px); display: flex; flex-direction: column; }
  .inq-card-aside { padding: 18px 28px 16px; flex: 0 0 auto; }
  .inq-aside-photo { display: none; }
  .inq-card-aside h3 { font-size: 22px; margin-top: 0; }
  /* Swap the desktop checkmark bullets for one consolidated sentence — the
     bullets alone run ~90px+ taller, which is most of the gap to the <600px
     mobile target. */
  .inq-aside-bullets { display: none; }
  .inq-aside-desc { display: block; margin-top: 8px; font-size: 15px; }
  .inq-card-form { flex: 1 1 auto; min-height: 0; }
  .inq-card-scroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding: 16px 24px 0; }
  .inq-card-footer { padding: 10px 24px 20px; }
  .inq-field-grid { gap: 10px; }
  .inq-ctl { padding: 13px 20px; }
  textarea.inq-ctl { min-height: 72px; }
  .inq-submit { padding: 15px; font-size: 16px; }
}
@media (max-width: 560px) {
  .inq-field-grid { grid-template-columns: 1fr; }
  .inq-field.col-span { grid-column: 1; }
}
@media (max-width: 480px) {
  .popup { padding: 30px 24px 28px; }
}
