/*! FrameUpNow plan page polish v1 | 2026-11-17 | loaded only on plan template pages */
/* =====================================================================
   FrameUpNow plan page polish  (paste into the plan template's
   Page Settings → Custom Code → Inside <head> tag, wrapped in <style>)
   Only touches plan-page classes. Brand: #5e8e39, ABeeZee italic headings.
   ===================================================================== */
:root{ --fun-green:#5e8e39; --fun-green-dk:#3f6a22; --fun-ink:#1f2a22; --fun-muted:#5b6660; --fun-line:#e3e8df; --fun-tint:#f4f7f1; }

/* ---------- 0. page never scrolls sideways (slider arrows stuck out) ---------- */
.page-wrapper{ overflow-x:clip; }

/* ---------- 1. hero card ---------- */
.heading_hero.is-product{ text-shadow:none; }
.header_key-features-wrapper{ row-gap:1.25rem; }
.button-group-extended{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:8px; }
.button-group-extended .button{ width:100%; margin:0; }
.header_extra-tag{ margin-top:.75rem; }

/* ---------- 2. video walkthrough band (built by plan-polish.js) ---------- */
.fun-video-band{ display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:clamp(24px, 4vw, 56px); align-items:center; background:var(--fun-tint); border:1px solid var(--fun-line); border-radius:24px; padding:clamp(18px, 3vw, 40px); }
.fun-video-band > .max-width-large{ max-width:none; width:100%; margin:0; }
.fun-video-band .product-video{ border-radius:16px; overflow:hidden; box-shadow:0 18px 40px -22px rgba(0,0,0,.45); background:#0d120f; }
.fun-video-eyebrow{ font-size:13px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--fun-green); margin-bottom:10px; }
.fun-video-title{ font-family:ABeeZee, sans-serif; font-style:italic; font-weight:400; font-size:clamp(26px, 2.8vw, 36px); line-height:1.15; color:var(--fun-ink); margin:0 0 14px; }
.fun-video-text{ font-size:16px; line-height:1.6; color:var(--fun-muted); margin:0 0 18px; }
.fun-video-points{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.fun-video-points li{ position:relative; padding-left:32px; font-size:15.5px; line-height:1.45; color:var(--fun-ink); }
.fun-video-points li::before{ content:""; position:absolute; left:0; top:0; width:22px; height:22px; border-radius:50%; background:var(--fun-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width:767px){ .fun-video-band{ grid-template-columns:1fr; border-radius:18px; } }

/* ---------- 3. "What's included" ---------- */
.section_feature .product_content_richtext{ max-width:none; }
.section_feature .product_content_richtext > h2{ margin-bottom:1.25rem; }
.section_feature .product_content_richtext > ul{ list-style:none; padding:0; margin:0 0 1.5rem; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; }
.section_feature .product_content_richtext > ul > li{ position:relative; margin:0; padding:16px 18px 16px 50px; background:var(--fun-tint); border:1px solid var(--fun-line); border-radius:14px; line-height:1.55; }
.section_feature .product_content_richtext > ul > li::before{ content:""; position:absolute; left:16px; top:17px; width:22px; height:22px; border-radius:50%; background:var(--fun-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.section_feature .product_content_richtext > p{ color:var(--fun-muted); font-size:15px; line-height:1.65; margin:0 0 .75rem; }

/* ---------- 4. floor plan + buy box + quote form ---------- */
@media (min-width:992px){
  .key_specs_grid{ display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); column-gap:48px; row-gap:56px; align-items:start; }
  .key_specs_grid > .floorplan_layout{ grid-column:1; grid-row:1; max-width:none; }
  .key_specs_grid > .product-feature_details_wrapper{ grid-column:2; grid-row:1; width:100%; max-width:none; }
  .key_specs_grid > .contact_component{ grid-column:1 / -1; grid-row:2; }
}
.key_specs_grid > .cookies{ position:absolute; }
/* keep the floor plan section in reading order on phones (it was stacked upside-down) */
.floorplan_layout{ flex-flow:column nowrap; gap:1.5rem; }
.floorplan_title-component{ align-items:center; gap:1rem; flex-wrap:wrap; }

/* framing specs: clean label/value tiles instead of the squeezed table */
.framing_wrapper{ padding:28px; }
.framing_feature_card{ display:flex; flex-direction:column; align-items:stretch; gap:10px; padding:18px 0; }
.framing-title{ width:auto; }
.framing-title-text{ width:auto; font-size:17px; }
.framing-title-text br{ display:none; }
.frame-specs_list_wrapper{ width:100%; }
.frame-specs_list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(130px,1fr)); gap:10px; }
.frame-specs_item{ width:auto; background:var(--fun-tint); border:1px solid var(--fun-line); border-radius:12px; padding:10px 12px; text-align:left; }
.frame-specs_item .w-richtext p{ margin:0; font-style:normal; text-align:left; line-height:1.35; color:var(--fun-muted); font-size:14px; }
.frame-specs_item .w-richtext p + p{ color:var(--fun-ink); font-size:17px; font-weight:700; margin-top:2px; }
.frame-specs_item .w-richtext p:nth-child(n+3){ display:none; }
.frame-specs_item:has(.w-dyn-bind-empty){ display:none; }
.framing-title{ justify-content:flex-start; }
.framing-title-text{ text-align:left; }
.frame-specs_item .w-richtext p:first-child{ color:#3a4540; }

/* buy box */
.product-feature_details_wrapper.is-full{ padding:28px; }
.product-feature_tabs{ width:100%; }
.product-feature_tab-menu{ gap:10px; }
.product-feature_tab-link{ flex:1 1 0; justify-content:center; text-align:center; padding:12px 10px; font-size:15px; line-height:1.25; border-radius:10px; }

/* quote form: full-width card = green intro panel (left) + two-column form (right) */
.contact_component{ width:100%; max-width:none; margin:0; display:grid; grid-template-columns:minmax(240px, 340px) minmax(0, 1fr); grid-template-rows:auto 1fr; column-gap:clamp(24px, 4vw, 48px); row-gap:0;
  background:#fff; border:1px solid var(--fun-line); border-radius:20px; padding:clamp(16px, 2.4vw, 24px); box-shadow:0 10px 40px -18px rgba(0,0,0,.18); }
.contact_component::before, .contact_component::after{ grid-column:1; background:var(--fun-green); color:#fff; white-space:pre-line; }
.contact_component::before{ grid-row:1; content:"Need something custom?\A Request a framing quote"; font-family:ABeeZee, sans-serif; font-style:italic; font-size:clamp(24px, 2.4vw, 30px); line-height:1.2; padding:32px 28px 12px; border-radius:14px 14px 0 0; }
.contact_component::after{ grid-row:2; content:"Tell us what you are building (a custom framing kit, prefab wall panels or structural framing) and our team will get back to you with a quote.\A\A Prefer to talk first? Call 888-864-0184."; font-size:15.5px; line-height:1.6; color:rgba(255,255,255,.92); padding:8px 28px 32px; border-radius:0 0 14px 14px; align-self:start; }
.contact_component > .contact_form, .contact_component > .w-form-done, .contact_component > .w-form-fail{ grid-column:2; grid-row:1 / span 2; }
.contact_component .contact_form{ max-width:none; margin:0; padding:clamp(4px, 1.5vw, 16px) 4px; display:grid; grid-template-columns:1fr 1fr; gap:18px 20px; align-content:start; }
.contact_form > *{ grid-column:1 / -1; margin:0; }
.contact_form > .form_field-wrapper:has(input[type=file]),
.contact_form > .form_field-wrapper:has(input[type=file]) + .form_field-wrapper,
.contact_form > .form_field-wrapper:has(select){ grid-column:auto; }
.contact_form .form_field-col{ gap:18px 20px; margin:0; }
.contact_form .form_field-wrapper{ margin:0; }
.contact_form .spacer-small{ display:none; }
.contact_form .form_field-label{ display:block; text-align:left; font-size:14px; font-weight:600; color:var(--fun-ink); margin:0 0 7px; }
.contact_form .form_input{ min-height:48px; margin:0; padding:10px 14px; border:1px solid #d3dbcc; border-radius:10px; background:#fff; font-size:15px; transition:border-color .15s, box-shadow .15s; }
.contact_form .form_input.is-text-area{ min-height:110px; }
.contact_form .form_input:focus{ outline:none; border-color:var(--fun-green); box-shadow:0 0 0 3px rgba(94,142,57,.18); }
/* project type + materials as tappable pills */
.contact_form .form_features-wrapper{ display:flex; flex-wrap:wrap; gap:10px; }
.contact_form .form_features-field, .contact_form .form-checkbox-wrapper{ display:inline-flex; align-items:center; gap:8px; margin:0; padding:10px 16px 10px 14px; border:1px solid #d3dbcc; border-radius:999px; background:#fff; cursor:pointer; font-size:15px; transition:border-color .15s, background .15s; }
.contact_form .form_features-field:hover, .contact_form .form-checkbox-wrapper:hover{ border-color:var(--fun-green); }
.contact_form .form_features-field:has(input:checked), .contact_form .form-checkbox-wrapper:has(input:checked){ border-color:var(--fun-green); background:var(--fun-tint); color:var(--fun-green-dk); }
.contact_form .form_features-field input, .contact_form .form-checkbox-wrapper input{ margin:0; accent-color:var(--fun-green); }
.contact_form .w-checkbox-input, .contact_form .w-radio-input{ float:none; margin:0; flex:0 0 auto; }
.contact_form .w-checkbox::before, .contact_form .w-checkbox::after, .contact_form .w-radio::before, .contact_form .w-radio::after{ content:none; }
.contact_form .w-form-label{ margin:0; }
.contact_form .form-input-wrapper{ display:inline-flex; align-items:center; gap:10px; flex:1 1 220px; }
.contact_form .form-input-wrapper .form_input{ min-height:42px; flex:1; }
/* city / state / zip */
.contact_form .form_field-col._3-col{ grid-template-columns:2fr 1fr 1fr; }
/* upload plans: a proper drop zone */
.contact_form input[type=file]{ width:100%; padding:14px; border:1.5px dashed #c3cfb8; border-radius:10px; background:var(--fun-tint); font-size:14px; color:var(--fun-muted); cursor:pointer; }
.contact_form input[type=file]::file-selector-button{ margin-right:12px; padding:8px 14px; border:0; border-radius:8px; background:var(--fun-green); color:#fff; font-weight:600; cursor:pointer; }
.contact_form .contact_btn_wrapper:empty, .contact_form .contact_btn_wrapper:not(:has(:not(.w-embed))){ display:none; }
.contact_form .is-submit{ justify-self:start; width:100%; max-width:280px; min-height:50px; border-radius:10px; font-size:16px; }

/* ---------- 5. plan FAQs (the FAQ rich text right after the style embed) ---------- */
section.padding-global > .container-large > .w-embed + .w-richtext{ max-width:960px; margin:0 auto; padding:56px 0 40px; color:#444; font-size:16.5px; line-height:1.65; }
section.padding-global > .container-large > .w-embed + .w-richtext h2{ font-size:clamp(28px, 3.4vw, 40px); line-height:1.15; margin:0 0 12px; color:#393939; }
section.padding-global > .container-large > .w-embed + .w-richtext h2::after{ content:""; display:block; width:56px; height:3px; margin-top:12px; background:var(--fun-green); border-radius:2px; }
section.padding-global > .container-large > .w-embed + .w-richtext h3{ font-size:clamp(19px, 2vw, 22px); line-height:1.3; margin:26px 0 6px; padding-top:22px; border-top:1px solid var(--fun-line); color:var(--fun-green-dk); }
section.padding-global > .container-large > .w-embed + .w-richtext p{ margin:0 0 10px; }
section.padding-global > .container-large > .w-embed + .w-richtext ul{ margin:0 0 10px; padding-left:20px; }
section.padding-global > .container-large > .w-embed + .w-richtext li{ margin-bottom:4px; }
section.padding-global > .container-large > .w-embed + .w-richtext li::marker{ color:var(--fun-green); }
section.padding-global > .container-large > .w-embed + .w-richtext a, .section_feature .w-richtext a{ color:var(--fun-green-dk); font-weight:600; text-decoration:underline; text-underline-offset:2px; }

/* FAQ accordion (built by plan-faq.js): every question collapsed, arrow on the right */
.fun-faq .fun-faq-item{ border-top:1px solid var(--fun-line); }
.fun-faq .fun-faq-item:last-of-type{ border-bottom:1px solid var(--fun-line); }
.fun-faq .fun-faq-item:first-of-type{ margin-top:18px; }
.fun-faq .fun-faq-q{ list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 4px; cursor:pointer; border-radius:10px; transition:background .15s; }
.fun-faq .fun-faq-q::-webkit-details-marker{ display:none; }
.fun-faq .fun-faq-q:hover{ background:var(--fun-tint); }
.fun-faq .fun-faq-q:focus-visible{ outline:3px solid rgba(94,142,57,.35); outline-offset:2px; }
section.padding-global > .container-large > .w-embed + .w-richtext .fun-faq-q h3{ margin:0; padding:0; border:0; flex:1; }
.fun-faq .fun-faq-q::after{ content:""; flex:0 0 32px; height:32px; border-radius:50%; background:var(--fun-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%235e8e39' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; border:1px solid var(--fun-line); transition:transform .25s ease, background-color .2s; }
.fun-faq .fun-faq-item[open] > .fun-faq-q::after{ transform:rotate(180deg); background-color:#e7efe0; }
.fun-faq .fun-faq-a{ padding:0 4px 20px; }
.fun-faq .fun-faq-a > :last-child{ margin-bottom:0; }
/* smooth open/close in browsers that support it (others just open instantly) */
:root{ interpolate-size:allow-keywords; }
.fun-faq .fun-faq-item::details-content{ height:0; overflow:clip; transition:height .3s ease, content-visibility .3s allow-discrete; }
.fun-faq .fun-faq-item[open]::details-content{ height:auto; }
@media (prefers-reduced-motion:reduce){ .fun-faq .fun-faq-item::details-content, .fun-faq .fun-faq-q::after{ transition:none; } }

/* ---------- 6. inquiry form: labels line up with their boxes ---------- */
.contact8_form .form_field-label, .contact8_form label{ text-align:left; }

/* ---------- 6b. Inquiry: one card = green contact panel + form (matches the quote card) ---------- */
section.section:has(.contact8_form) .max-width-large .body{ text-align:center; color:var(--fun-muted); font-size:16.5px; line-height:1.6; }
section.section:has(.contact8_form) .max-width-large .body a{ color:var(--fun-green-dk); font-weight:600; }
.contact_product_component{ grid-template-columns:minmax(260px, 380px) minmax(0, 1fr) !important; column-gap:clamp(24px, 4vw, 56px) !important; row-gap:24px !important; align-items:stretch;
  background:#fff; border:1px solid var(--fun-line); border-radius:20px; padding:clamp(16px, 2.4vw, 24px); box-shadow:0 10px 40px -18px rgba(0,0,0,.18); }
.contact_product_component > .contact_content_map-wrapper{ width:auto; max-width:none; }
.contact_product_component .contact_details{ width:100%; height:100%; margin:0; padding:32px 28px; border-radius:14px; gap:18px; justify-content:center; text-align:left; align-items:flex-start; }
.contact_details .body{ color:rgba(255,255,255,.9); font-size:16px; line-height:1.55; font-style:normal; }
.contact_details .text-size-large{ font-family:ABeeZee, sans-serif; font-style:italic; font-size:clamp(24px, 2.3vw, 30px); line-height:1.2; color:#fff; text-align:left; }
.contact_details .div-block-16{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; }
.contact_details .div-block-16 > .w-embed{ flex:0 0 40px; width:40px; height:40px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.16); }
.contact_details .div-block-16 > .w-embed svg{ width:18px; height:18px; }
.contact_details .link-block{ display:inline-flex; align-items:center; padding:10px 18px; border-radius:999px; background:#fff; color:var(--fun-green-dk); font-weight:700; font-style:normal; text-decoration:none; transition:transform .15s, box-shadow .15s; }
.contact_details .link-block:hover{ transform:translateY(-1px); box-shadow:0 8px 18px -8px rgba(0,0,0,.35); }
.contact_details .link-block div{ font-style:normal; }
.contact_details .text-size-20{ font-style:normal; font-size:15.5px; line-height:1.45; text-align:left; color:#fff; }
.contact8_content{ align-self:center; }
.contact8_form{ gap:18px; }
.contact8_form .form_fiield_grid{ gap:18px 20px; margin:0; }
.contact8_form .form_field_wrapper, .contact8_form .form_field-wrapper-2{ margin:0; }
.contact8_form .form_field-label, .contact8_form .form_field-label-2{ display:block; text-align:left; font-size:14px; font-weight:600; color:var(--fun-ink); margin:0 0 7px; }
.contact8_form .spacer--medium{ height:8px; padding:0; }
.contact8_form .button-group.is-center{ justify-content:flex-start; }
.contact8_form .button.is-large{ width:100%; max-width:280px; min-height:50px; border-radius:10px; justify-content:center; }

/* one input style for every form on the plan page */
.contact8_form .form_input_field, .product-feature_form-wrapper .w-input, .product-feature_form-wrapper .w-select{ min-height:48px; margin:0; padding:10px 14px; border:1px solid #d3dbcc; border-radius:10px; background-color:#fff; font-size:15px; transition:border-color .15s, box-shadow .15s; }
.contact8_form .form_input_field.is-text-area{ min-height:130px; }
.contact8_form .form_input_field:focus, .product-feature_form-wrapper .w-input:focus, .product-feature_form-wrapper .w-select:focus{ outline:none; border-color:var(--fun-green); box-shadow:0 0 0 3px rgba(94,142,57,.18); }
.product-feature_form-wrapper .w-input[readonly], .product-feature_form-wrapper .w-input[disabled]{ background-color:var(--fun-tint); }

/* ---------- 6c. hero: main vs secondary buy button ---------- */
.button-group-extended .button.buy-plan{ background:#fff; color:var(--fun-green); box-shadow:inset 0 0 0 1.5px var(--fun-green); }
.button-group-extended .button.buy-plan:hover{ background:var(--fun-tint); }

/* ---------- 6d. interior finishes gallery ---------- */
section.section.overflow-hidden h2.text-align-center{ font-size:clamp(20px, 2.2vw, 28px); line-height:1.35; max-width:900px; margin-inline:auto; }
section.section.overflow-hidden .swiper-slide.is-gallery img{ border-radius:14px; }
section.section.overflow-hidden .swiper-slide.is-gallery{ border-radius:14px; overflow:hidden; }

/* ---------- 7. tablet & phone ---------- */
@media (max-width:991px){
  .key_specs_grid{ gap:40px; }
  .product-feature_details_wrapper.is-full{ width:100%; }
  /* quote card stacks: green panel on top, form below */
  .contact_component{ grid-template-columns:1fr; grid-template-rows:auto; }
  .contact_component > .contact_form, .contact_component > .w-form-done, .contact_component > .w-form-fail{ grid-column:1; grid-row:3; }
  .contact_component::after{ margin-bottom:24px; }
  .contact_product_component{ grid-template-columns:1fr !important; }
}
@media (max-width:560px){
  .contact_component .contact_form{ grid-template-columns:1fr; }
  .contact_form > .form_field-wrapper:has(input[type=file]),
  .contact_form > .form_field-wrapper:has(input[type=file]) + .form_field-wrapper,
  .contact_form > .form_field-wrapper:has(select){ grid-column:1 / -1; }
  .contact_form .form_field-col{ grid-template-columns:1fr; }
  .contact8_form .form_fiield_grid{ grid-template-columns:1fr; }
  .contact_product_component .contact_details{ padding:24px 20px; }
  .contact_form .form_field-col._3-col{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
  .contact_form .form_field-col._3-col > :first-child{ grid-column:1 / -1; }
  .contact_form .form_features-field, .contact_form .form-checkbox-wrapper{ padding:9px 14px 9px 12px; font-size:14.5px; }
  .contact_component::before{ padding:24px 20px 10px; }
  .contact_component::after{ padding:6px 20px 24px; }
}
@media (max-width:767px){
  .header_component-card.is-left .product-about{ text-align:left; }
  .header_key-features-wrapper.column-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px 12px; }
  .header_key-feature-item{ gap:10px; }
  .header_key-icon-wrapper{ width:44px; flex:0 0 44px; }
  .header_key-image{ width:44px; }
  .section_feature .product_content_richtext > ul{ grid-template-columns:1fr; }
  .framing_wrapper{ padding:20px; }
  .product-feature_details_wrapper.is-full{ padding:20px; }
}
@media (max-width:360px){
  .button-group-extended{ grid-template-columns:1fr; }
}

/* ---------- 8. the old exit pop-up is empty: never show its dark backdrop unless it has content ---------- */
#exit-popup:empty, .exit_modal-component:empty{ display:none !important; }
