/* ===========================================================
   Page styles: quote, cart, checkout, content, forms
   =========================================================== */

/* ---- shared form fields ---- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-80); margin-bottom: 6px; }
.field > span em { font-style: normal; color: var(--ink-45); font-weight: 500; margin-left: 4px; }
.field input, .field textarea, .field select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font-family: var(--sans); font-size: 15px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18,121,190,.1); }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.field-err { background: #fdecec; color: #b42318; border-radius: 8px; padding: 9px 12px; font-size: 13.5px; margin-bottom: 12px; }
.linkbtn { background: none; border: 0; color: var(--blue); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

/* stepper */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; height: 44px; }
.stepper button { width: 40px; height: 100%; border: 0; background: #fff; color: var(--ink-80); display: grid; place-items: center; }
.stepper button:hover { background: var(--surface-2); }
.stepper input { width: 42px; height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-weight: 600; font-size: 15px; font-family: var(--sans); }
.stepper input:focus { outline: none; }

/* =================== QUOTE BUILDER =================== */
.quote-hero { background: linear-gradient(180deg, var(--surface-2), #fff); border-bottom: 1px solid var(--line); color: var(--ink); padding: 40px 0 44px; position: relative; overflow: hidden; }
.quote-hero::before { content: ""; position: absolute; right: -100px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(21,131,209,.16), transparent 68%); }
.quote-hero .eyebrow { color: var(--purple); position: relative; }
.quote-hero h1 { font-size: clamp(34px, 4.5vw, 54px); margin: 10px 0; color: var(--ink); position: relative; }
.quote-hero p { color: var(--ink-60); max-width: 560px; position: relative; }
.quote-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 36px 0 80px; align-items: start; }
.quote-main { min-width: 0; }
.quote-empty { text-align: center; padding: 50px 20px; border: 1.5px dashed var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.quote-empty h3 { font-size: 22px; margin-top: 8px; }
.quote-empty .btn { margin-top: 14px; }

.qline { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; background: #fff; align-items: flex-start; }
.qline-ph { width: 72px; height: 72px; border-radius: 10px; flex: none; }
.ph-custom { background: repeating-linear-gradient(135deg, #f3eaf6 0 10px, #f9f4fb 10px 20px); }
.qline-main { flex: 1; min-width: 0; }
.qline-name { font-family: var(--display); font-weight: 600; font-size: 16px; display: block; }
.qline-name:hover { color: var(--blue); }
.qline-sku { font-size: 12.5px; color: var(--ink-45); margin-top: 2px; }
.qline-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qline-inter { font-size: 12px; color: var(--ink-60); margin-top: 8px; }
.qline-inter .mono { color: var(--ink-80); }
.qline-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.qline-price { text-align: right; }
.qline-del { background: none; border: 0; color: var(--ink-30); cursor: pointer; padding: 4px; }
.qline-del:hover { color: #b42318; }
.qcustom-input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--sans); font-size: 14.5px; }
.qcustom-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,131,209,.12); }
.add-custom { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--line); background: var(--surface-2); color: var(--ink-80); font-weight: 600; font-size: 15px; padding: 16px; border-radius: var(--r-md); margin-top: 8px; cursor: pointer; transition: border-color .15s, color .15s; }
.add-custom:hover { border-color: var(--purple); color: var(--purple); }

.quote-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.quote-card h3 { font-size: 17px; margin-bottom: 14px; }
.qsum-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14.5px; color: var(--ink-60); }
.qsum-row b { color: var(--ink); font-weight: 600; }
.qsum-pending { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--warn); background: var(--warn-bg); padding: 9px 11px; border-radius: 8px; margin: 8px 0; }
.qsum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; margin-top: 8px; border-top: 1.5px solid var(--line); font-family: var(--display); }
.qsum-total span { font-weight: 600; }
.qsum-total b { font-size: 22px; font-weight: 700; }
.qsum-note { font-size: 12px; color: var(--ink-45); margin-top: 12px; line-height: 1.5; }
.contact-card .btn { margin-top: 6px; }

/* quote success */
.quote-success { display: flex; justify-content: center; padding: 60px 24px 80px; }
.success-card { text-align: center; max-width: 540px; }
.success-ring { width: 72px; height: 72px; border-radius: 50%; background: var(--reman-bg); color: var(--reman); display: grid; place-items: center; margin: 0 auto 20px; }
.success-ring.blue { background: #e7f0fb; color: var(--blue); }
.success-card h1 { font-size: 40px; margin-bottom: 12px; }
.success-card p { font-size: 16.5px; line-height: 1.6; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.order-meta { display: flex; gap: 30px; justify-content: center; margin: 24px 0 4px; padding: 18px; background: var(--surface-2); border-radius: var(--r-md); }
.order-meta > div { display: flex; flex-direction: column; gap: 3px; }
.order-meta span { font-size: 12px; }
.order-meta b { font-family: var(--display); }

/* quote view (shareable) */
.quote-view { padding: 40px 0 70px; }
.qv-doc { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--sh-2); }
.qv-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 22px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; gap: 20px; flex-wrap: wrap; }
.qv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.qv-table th { text-align: left; font-family: var(--display); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-45); padding: 10px; border-bottom: 1.5px solid var(--line); }
.qv-table th:nth-child(3), .qv-table th:nth-child(4), .qv-table th:nth-child(5) { text-align: right; }
.qv-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); }
.qv-table td:nth-child(3), .qv-table td:nth-child(4), .qv-table td:nth-child(5) { text-align: right; }
.qv-totals { margin-left: auto; max-width: 300px; margin-top: 18px; }

/* =================== CART =================== */
.reservation { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-60); background: var(--surface-2); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; margin-bottom: 20px; }
.reservation.urgent { color: var(--warn); background: var(--warn-bg); border-color: #f0d6b8; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.cart-line { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-ph { width: 88px; height: 88px; border-radius: 10px; flex: none; }
.cart-line-main { flex: 1; min-width: 0; }
.cart-name { font-family: var(--display); font-weight: 600; font-size: 17px; }
.cart-name:hover { color: var(--blue); }
.cart-line-right { display: flex; align-items: center; gap: 22px; }
.cart-line-prices { text-align: right; min-width: 90px; }
.cart-core { font-size: 12px; color: var(--ink-45); margin-top: 3px; }
.cart-side { position: sticky; top: calc(var(--header-h) + 16px); }

/* =================== CHECKOUT =================== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.co-step { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; overflow: hidden; transition: border-color .2s; }
.co-step.active { border-color: var(--ink); box-shadow: var(--sh-1); }
.co-step.locked { opacity: .5; }
.co-step-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.co-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); color: var(--ink-60); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; flex: none; }
.co-step.active .co-step-num { background: var(--ink); color: #fff; }
.co-step-head h3 { font-size: 16px; flex: 1; }
.co-step-body { padding: 0 18px; }
.co-step.active .co-step-body { padding: 0 18px 20px; }
.step-summary { padding: 0 0 16px; color: var(--ink-60); font-size: 14.5px; }
.guest-login .btn { margin-top: 4px; }
.or-line { text-align: center; position: relative; margin: 16px 0; color: var(--ink-45); font-size: 13px; }
.or-line::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.or-line span { background: #fff; padding: 0 12px; position: relative; }
.stripe-mock { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin-bottom: 16px; background: var(--surface-2); }
.stripe-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-45); margin-bottom: 12px; }
.fake-input { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--ink-60); display: flex; justify-content: space-between; align-items: center; }
.card-brand { font-family: var(--display); font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .05em; }
.checkout-items { margin-bottom: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.co-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; }
.co-ph { width: 48px; height: 48px; border-radius: 8px; flex: none; position: relative; }
.co-qty { position: absolute; top: -7px; right: -7px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); }
.co-name { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.checkout-side { position: sticky; top: calc(var(--header-h) + 16px); }

/* =================== CONTENT PAGES =================== */
.about-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 44px; align-items: start; }
.about-side { position: sticky; top: calc(var(--header-h) + 20px); padding-top: 40px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 16px; }
.about-stat { background: #fff; padding: 16px; }
.as-num { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--purple); }
.as-lbl { font-size: 12.5px; color: var(--ink-60); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px 0 70px; align-items: start; }
.ci-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.ci-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--purple-050); color: var(--purple); display: grid; place-items: center; flex: none; }
.ci-label { font-size: 12.5px; color: var(--ink-45); }
.ci-val { font-family: var(--display); font-weight: 600; font-size: 17px; }
a.ci-val:hover { color: var(--blue); }
.contact-sent { text-align: center; }
.contact-sent .success-ring { margin-bottom: 0; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.video-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .2s; }
.video-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.video-thumb { aspect-ratio: 16/9; border-radius: 0; position: relative; }
.video-thumb .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(21,131,209,.92); color: #fff; display: grid; place-items: center; }
.video-meta { padding: 14px 16px; }
.video-title { font-family: var(--display); font-weight: 600; font-size: 16px; }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.tier-card.best { border-color: var(--purple); box-shadow: var(--sh-purple); }
.tier-card h3 { font-size: 19px; }

.faq { margin: 4px 0 10px; }

.account-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 36px; padding: 36px 0 70px; align-items: start; }
.account-card .seg.seg-light { display: flex; width: 100%; margin-bottom: 18px; background: var(--surface-2); border-color: var(--line); }
.seg-light .seg-btn { flex: 1; color: var(--ink-60); }
.seg-light .seg-btn:hover { color: var(--ink); }
.seg-light .seg-btn.on { background: var(--ink); color: #fff; }
.account-side { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.acct-tile { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; align-items: flex-start; }
.acct-tile svg { color: var(--purple); flex: none; margin-top: 2px; }
.acct-tile b { font-family: var(--display); }
.acct-tile p { font-size: 13.5px; margin-top: 2px; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1000px) {
  .quote-layout, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .quote-side, .cart-side, .checkout-side, .about-side { position: static; }
  .about-grid, .contact-grid, .account-wrap { grid-template-columns: 1fr; gap: 28px; }
  .tier-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .quote-side { display: none; }
  .quote-sticky { display: flex !important; }
  .quote-layout { padding-bottom: 90px; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .qline-right { gap: 8px; }
  .cart-line-right { flex-direction: column; align-items: flex-end; gap: 10px; }
  .success-card h1 { font-size: 30px; }
  .order-meta { gap: 18px; flex-wrap: wrap; }
}
.quote-sticky { display: none; }
