/* Custom Plans pop-up, trigger buttons and section. Shared by the homepage and /house-kits/.
   Uses each page's own color and font variables so it matches the surrounding design. */
.cp-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 20px; border:2px solid var(--orange2,#ff5c24); border-radius:6px;
  background:transparent; color:var(--white,#f5f6f8);
  font-family:var(--font-cond,'Barlow Condensed',sans-serif); font-size:15px; font-weight:900;
  letter-spacing:1.2px; text-transform:uppercase; line-height:1.2; text-align:center;
  cursor:pointer; text-decoration:none; transition:background .15s, color .15s;
}
.cp-btn:hover { background:var(--orange2,#ff5c24); color:#000; }
.cp-btn:focus-visible { outline:3px solid var(--orange2,#ff5c24); outline-offset:3px; }
.cp-btn-solid { background:var(--orange2,#ff5c24); color:#000; border-color:var(--orange2,#ff5c24); }
.cp-btn-solid:hover { background:#fff; border-color:#fff; }

/* Homepage hero placement: sits under the main call-to-action row */
.hero-main-cta-wrap .cp-btn { font-size:16px; padding:14px 24px; background:rgba(7,13,23,.6); }
.hero-main-cta-wrap .cp-btn:hover { background:var(--orange2,#ff5c24); color:#000; }
/* /house-kits/ hero row and plan details */
.hero-cta-row .cp-btn { flex:1 1 220px; padding:13px 20px; }
.hkm-price-row .cp-btn { padding:9px 14px; font-size:12px; letter-spacing:1px; border-radius:5px; }

/* Section */
.cp-section {
  display:flex; align-items:center; justify-content:space-between; gap:20px 32px; flex-wrap:wrap;
  margin:0 auto; padding:24px 26px; max-width:1100px;
  background:var(--steel2,#1c2b3a); border:1px solid var(--border,rgba(255,255,255,.09));
  border-left:4px solid var(--orange2,#ff5c24); border-radius:10px;
}
.cp-section-wrap { padding:40px 5% 0; }
.cp-section-copy { flex:1 1 420px; }
.cp-section h2 {
  margin:0 0 8px; color:var(--white,#f5f6f8);
  font-family:var(--font-cond,'Barlow Condensed',sans-serif); font-size:26px; font-weight:900;
  line-height:1.1; letter-spacing:.5px; text-transform:uppercase;
}
.cp-section p { margin:0; color:var(--off,var(--text,#dde0e6)); font-size:15px; line-height:1.6; }
.cp-section .cp-btn { flex:0 0 auto; }
.hk-pf .cp-section { margin:0 0 24px; }

/* Dialog */
.cp-dialog {
  width:min(100% - 32px, 620px); max-height:calc(100dvh - 48px); margin:auto; padding:0;
  border:1px solid var(--border,rgba(255,255,255,.09)); border-radius:12px;
  background:var(--steel2,#1c2b3a); color:var(--white,#f5f6f8);
  box-shadow:0 24px 80px rgba(0,0,0,.68); overflow:hidden;
}
.cp-dialog::backdrop { background:rgba(8,11,15,.82); }
.cp-dialog[open] { display:flex; flex-direction:column; }
.cp-scroll { overflow-y:auto; overscroll-behavior:contain; padding:28px 30px 26px; }
.cp-close {
  position:absolute; top:12px; right:12px; z-index:1; display:flex; width:40px; height:40px;
  align-items:center; justify-content:center; padding:0;
  border:1px solid var(--border,rgba(255,255,255,.09)); border-radius:50%;
  background:#0d1218; color:#fff; font-size:24px; line-height:1; cursor:pointer;
}
.cp-close:hover, .cp-close:focus-visible { border-color:var(--orange2,#ff5c24); color:var(--orange2,#ff5c24); }
.cp-title {
  margin:0 48px 10px 0; color:var(--white,#f5f6f8);
  font-family:var(--font-cond,'Barlow Condensed',sans-serif); font-size:28px; font-weight:900;
  line-height:1.08; text-transform:uppercase; letter-spacing:.3px;
}
.cp-title:focus, .cp-title:focus-visible { outline:none !important; box-shadow:none !important; }
.cp-intro { margin:0 0 18px; color:var(--muted,#9aa7b4); font-size:14px; line-height:1.55; }
.cp-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.cp-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.cp-field-full { grid-column:1 / -1; }
.cp-field label {
  color:var(--text,var(--off,#dde0e6)); font-family:var(--font-body,inherit);
  font-size:12px; font-weight:800; letter-spacing:.7px; text-transform:uppercase;
}
.cp-field label .cp-opt { color:var(--muted,#9aa7b4); font-weight:600; letter-spacing:.3px; text-transform:none; }
.cp-field input, .cp-field select, .cp-field textarea {
  width:100%; min-height:48px; padding:11px 12px; border:1px solid var(--border,rgba(255,255,255,.09));
  border-radius:6px; background:#0d151f; color:#fff; font:16px var(--font-body,inherit);
}
.cp-field select { appearance:auto; }
.cp-field textarea { min-height:84px; resize:vertical; }
.cp-field input:focus, .cp-field select:focus, .cp-field textarea:focus {
  border-color:var(--orange2,#ff5c24); outline:2px solid rgba(255,140,40,.25); outline-offset:1px;
}
.cp-submit {
  display:flex; width:100%; min-height:52px; align-items:center; justify-content:center;
  margin-top:18px; padding:13px 18px; border:0; border-radius:6px;
  background:var(--orange2,#ff5c24); color:#000;
  font-family:var(--font-cond,'Barlow Condensed',sans-serif); font-size:17px; font-weight:900;
  letter-spacing:1.4px; text-transform:uppercase; cursor:pointer;
}
.cp-submit:hover { background:#fff; }
.cp-submit:disabled { cursor:wait; opacity:.7; }
.cp-status { min-height:20px; margin-top:10px; font-size:13px; font-weight:700; line-height:1.45; }
.cp-status.error { color:#ff9c8b; }
.cp-success { padding:16px 0 4px; text-align:center; }
.cp-success[hidden] { display:none; }
.cp-success-mark {
  display:flex; width:58px; height:58px; align-items:center; justify-content:center; margin:0 auto 14px;
  border-radius:50%; background:rgba(31,168,106,.16); color:#54d99a; font-size:30px; font-weight:900;
}
.cp-success p { margin:0 auto 18px; max-width:440px; color:var(--off,var(--text,#dde0e6)); font-size:16px; line-height:1.6; }
.cp-dialog .sms-consent { margin:14px 0 0; font-size:12.5px !important; line-height:1.5 !important; }
html.cp-lock, html.cp-lock body { overflow:hidden; }

@media (max-width:640px) {
  /* Bottom sheet: never more than about half the screen; the form scrolls inside it. */
  .cp-dialog {
    width:100%; max-width:100%; max-height:52dvh; margin:auto 0 0;
    border-radius:16px 16px 0 0; border-bottom:0;
  }
  .cp-dialog[open] { animation:cpSheetUp .22s ease-out; }
  .cp-scroll { padding:22px 18px calc(env(safe-area-inset-bottom,0px) + 20px); }
  .cp-title { font-size:23px; }
  .cp-grid { grid-template-columns:1fr; gap:11px; }
  .cp-section { padding:20px 18px; }
  .cp-section .cp-btn { width:100%; }
  .hero-cta-row .cp-btn { flex-basis:100%; }
}
@supports not (height:1dvh) {
  @media (max-width:640px) { .cp-dialog { max-height:52vh; } }
}
@keyframes cpSheetUp { from { transform:translateY(40px); opacity:.4; } to { transform:none; opacity:1; } }
@media (prefers-reduced-motion:reduce) { .cp-dialog[open] { animation:none; } }
