/* Ronda Warranty Portal - P1 Registration */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:not(html):not(body)::-webkit-scrollbar { width: 5px; height: 5px; }
:not(html):not(body)::-webkit-scrollbar-track, :not(html):not(body)::-webkit-scrollbar-corner { background: transparent; }
:not(html):not(body)::-webkit-scrollbar-thumb { background: #adb3ba; border-radius: 999px; }
:not(html):not(body)::-webkit-scrollbar-thumb:hover { background: #8a9099; }
@supports not selector(::-webkit-scrollbar) { :not(html):not(body) { scrollbar-width: thin; scrollbar-color: #adb3ba transparent; } }

:root {
  /* Ronda brand (html-src/src/_base.css) */
  --primary: #c82034;
  --primary_dark: #a8182a;
  --primary_soft: #fdf2f3;
  --primary_ring: rgba(200, 32, 52, .16);
  --title: #14161a;
  --text: #5c636d;
  --text2: #4b5563;
  --text3: #2b2f36;
  --gray: #8e959e;
  --line: #e4e6e9;
  --line2: #d5d9de;
  --light: #f5f6f7;
  --card: #f7f7f7;
  --dark: #14161a;
  --dark2: #0c0f14;
  --ok: #17803d;
  --ok_bg: #edf8f1;
  --warn: #8a5300;
  --warn_bg: #fff6e5;
  --warn_line: #f3d59b;
  --err: #c82034;
  --err_bg: #fdf0f1;
  --font_title: 'Manrope', 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius_lg: 20px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 12px 40px -12px rgba(20, 22, 26, .14);
  /* check marks drawn centred in a 24 box (bbox centre 12/12), used inside round badges */
  --ck-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2f36' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.2l4.3 4.3 8.7-8.8'/%3E%3C/svg%3E");
  --ck-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.2l4.3 4.3 8.7-8.8'/%3E%3C/svg%3E");
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-variation-settings: 'opsz' 16;
  font-size: 16px;
  line-height: 1.55;
  color: var(--title);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Two-tone icons (traced from a Nano Banana 2.1 sheet, 9 Nov 2026): each symbol has an ink layer and an accent layer,
   filled with --ic-ink / --ic-acc (both default to currentColor, so they stay one colour where nothing is set). */
.header-tag .ic, .section-split .ic, .product-title .ic, .sum-head h3 .ic,
.up-icon .ic, .ni .ic, .support-line a .ic,
.choice-card:has(input:checked) .cc-icon .ic, .seg-opt input:checked + span .ic {
  --ic-ink: var(--title); --ic-acc: var(--primary);
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.header-in { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 46px; width: auto; }
.header-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text3);
  padding: 8px 14px; border-radius: 999px; background: var(--light);
}
.header-tag .ic { color: var(--primary); width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: #121418 url(../img/hero-bg.webp) right center / cover no-repeat;
  color: #fff;
}
/* animated background: loop of the right 16:9 part of hero-bg.webp (source x 390-1584 of 1584x672),
   placed exactly over that part of the static image, which stays underneath as poster / fallback */
.hero-media { position: absolute; inset: 0; z-index: 0; container-type: size; pointer-events: none; }
.hero-video {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: max(75.38cqw, 177.68cqh); height: auto; aspect-ratio: 1194 / 672; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%);
  opacity: 0; transition: opacity .8s ease;
}
.hero-video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 520px; gap: 40px; align-items: end;
  padding-top: 80px; padding-bottom: 106px;
}
.hero-text { align-self: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.72); margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(200,32,52,.25); }
.hero h1 {
  font-family: var(--font_title); font-weight: 800;
  font-size: 52px; line-height: 1.08; letter-spacing: -.02em;
  max-width: 640px;
}
.hero .lead { margin-top: 20px; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.74); max-width: 600px; }
.hero-visual { position: relative; height: 300px; display: flex; align-items: flex-end; justify-content: center; }
/* product family: real cut-outs staged in depth (back row raised, hero product in front); all keep their real white */
.lineup { position: relative; flex: none; width: 500px; height: 330px; margin-bottom: -10px; }
.lineup::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 70px; z-index: 0;
  background: radial-gradient(closest-side, rgba(0,0,0,.75), rgba(0,0,0,.35) 60%, transparent);
}
.lineup::after {
  content: ''; position: absolute; left: 6%; right: 6%; bottom: 36px; height: 1px; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(255,110,124,.5), transparent);
}
.lineup img { position: absolute; width: auto; filter: drop-shadow(0 16px 18px rgba(0,0,0,.55)); }
.lineup .p-aio { height: 292px; left: 58px; bottom: 44px; z-index: 1; }
.lineup .p-lv { height: 222px; left: 332px; bottom: 58px; z-index: 1; }
.lineup .p-pl { height: 272px; left: 186px; bottom: 8px; z-index: 3; filter: drop-shadow(-16px 24px 26px rgba(0,0,0,.6)) drop-shadow(16px 0 30px rgba(0,0,0,.45)); }
.lineup .p-hv { height: 104px; left: 6px; bottom: 0; z-index: 4; filter: drop-shadow(10px 14px 18px rgba(0,0,0,.6)); }
/* 10-year seal: Nano Banana 2.1 render, green-keyed (gen/wp-badge-*.png -> tools/greenkey.js) */
.badge-10 {
  position: absolute; z-index: 5; right: -10px; bottom: 14px; width: 142px; height: auto;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.55));
}

/* ---------- Layout ---------- */
.layout {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start;
  margin-top: -36px; padding-bottom: 72px;
}
.card { background: #fff; border-radius: var(--radius_lg); box-shadow: var(--shadow); border: 1px solid rgba(20,22,26,.04); }
.form-card { padding: 0 0 8px; overflow: hidden; }
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Stepper (P1-04) ---------- */
.stepper { padding: 26px 40px 0; }
@media (min-width: 901px) { .stepper { padding-top: 35px; } }
.stepper ol { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.stepper li { position: relative; display: flex; justify-content: center; }
.stepper li::before {
  content: ''; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: var(--line);
}
.stepper li:first-child::before { display: none; }
.stepper li.is-done::before, .stepper li.is-current::before { background: var(--title); opacity: .18; }
.stepper button {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 4px; cursor: default; text-align: center;
}
.stepper .num {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font_title); font-weight: 700; font-size: 15px;
  background: #fff; border: 2px solid var(--line); color: var(--gray);
  transition: all .25s ease;
}
.stepper .lbl { font-size: 13px; font-weight: 600; color: var(--gray); line-height: 1.3; max-width: 130px; }
.stepper li.is-current .num { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 6px var(--primary_ring); }
.stepper li.is-current .lbl { color: var(--title); }
.stepper li.is-done .num { background: #e9ebee; border-color: #e9ebee; color: var(--text3); font-size: 0; }
.stepper .num { position: relative; }
/* the step number stays in the DOM (font-size 0), so the tick is taken out of the grid flow and centred absolutely */
.stepper li.is-done .num::after { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; background: var(--ck-dark) center / contain no-repeat; }
.stepper li.is-done .lbl { color: var(--text); }
.stepper li.is-done button { cursor: pointer; }
.stepper li.is-done button:hover .num { background: #dfe2e6; }

/* ---------- Steps ---------- */
form { padding: 0 40px; }
.step { padding-top: 36px; animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.step-count { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.step-head h2 { font-family: var(--font_title); font-weight: 800; font-size: 30px; line-height: 1.2; letter-spacing: -.015em; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.grid + .grid, .grid + .product-list, .product-list + .btn-add, .btn-add + .grid { margin-top: 24px; }
.grid-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.col-2 { grid-column: 1 / -1; }

.field { position: relative; min-width: 0; }
.label { display: block; font-size: 14px; font-weight: 600; color: var(--text3); margin-bottom: 8px; line-height: 1.4; }
legend.label { margin-bottom: 12px; float: left; width: 100%; }
legend.label + * { clear: both; }
.req { font-style: normal; color: var(--primary); margin-left: 2px; }
.hint { font-size: 13px; color: var(--gray); margin-top: 7px; line-height: 1.45; }

.input {
  width: 100%; height: 52px; padding: 0 16px;
  font-size: 16px; color: var(--title);
  background: #fff; border: 1.5px solid var(--line2); border-radius: var(--radius);
  outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #a9aeb5; }
.input:hover { border-color: #b9bec5; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary_ring); }
.input.is-fixed { background: var(--light); color: var(--text); border-color: var(--line); cursor: default; }
.input.mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; text-transform: uppercase; }
.input.mono::placeholder { text-transform: none; }
.date-wrap { position: relative; }
.date-wrap .input { padding-right: 56px; font-variant-numeric: tabular-nums; }
.date-btn { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; color: var(--text); z-index: 1; transition: background-color .15s, color .15s; }
.date-btn:hover { background: var(--primary_soft); color: var(--primary); }
.date-native { position: absolute; right: 6px; bottom: 0; width: 40px; height: 1px; opacity: 0; pointer-events: none; border: 0; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 44px; cursor: pointer; }
.select-wrap select:invalid { color: #a9aeb5; }
.select-wrap option { color: var(--title); }
.select-wrap .ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text); }

/* error state */
.field.has-error .input, .field.has-error .upload, .field.has-error .choice-card, .field.has-error .seg-opt span, .field.has-error .check .box { border-color: var(--err); }
.field.has-error .input:focus { box-shadow: 0 0 0 4px var(--primary_ring); }
.field-error {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--err); line-height: 1.4;
}
.field-error .ic { width: 16px; height: 16px; margin-top: 1px; }

/* ---------- Choice cards (P1-05) ---------- */
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice-card {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 22px 20px; border: 1.5px solid var(--line2); border-radius: 16px;
  cursor: pointer; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice-card:hover { border-color: #b9bec5; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.cc-icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text3); transition: color .15s; }
.cc-icon .ic { width: 28px; height: 28px; stroke-width: 1.6; }
.cc-text { font-family: var(--font_title); font-weight: 700; font-size: 18px; color: var(--title); }
.cc-tick { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; color: transparent; transition: all .15s; }
.cc-tick .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.choice-card:has(input:checked) { border-color: var(--primary); background: var(--primary_soft); box-shadow: 0 0 0 4px var(--primary_ring); }
.choice-card:has(input:checked) .cc-icon { color: var(--primary); }
.choice-card:has(input:checked) .cc-tick { background: var(--primary); border-color: var(--primary); color: #fff; }
.choice-card:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--primary_ring); }

/* segmented radios (P1-13, P1-21) */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg-sm { max-width: 320px; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 16px; border: 1.5px solid var(--line2); border-radius: var(--radius);
  font-weight: 600; font-size: 15px; color: var(--text3); background: #fff; transition: all .15s;
}
.seg-opt span .ic { color: var(--text); }
.seg-opt:hover span { border-color: #b9bec5; }
.seg-opt input:checked + span { border-color: var(--primary); background: var(--primary_soft); color: var(--primary_dark); box-shadow: 0 0 0 4px var(--primary_ring); }
.seg-opt input:checked + span .ic { color: var(--primary); }
.seg-opt input:focus-visible + span { box-shadow: 0 0 0 4px var(--primary_ring); }

/* reveal block (installer, inverter) */
.reveal { margin-top: 28px; animation: stepIn .3s ease both; }
.inverter-block { padding: 24px; border-radius: 16px; background: var(--light); border: 1px solid var(--line); }

.section-split { display: flex; align-items: center; gap: 14px; margin: 36px 0 22px; }
.section-split::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.section-split span { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font_title); font-weight: 700; font-size: 18px; }
.section-split .ic { color: var(--primary); }

/* ---------- Product blocks (P1-14 to P1-19) ---------- */
.product-list { display: flex; flex-direction: column; gap: 18px; }
.product { border: 1.5px solid var(--line); border-radius: 18px; padding: 22px 22px 24px; background: #fff; }
.product-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.product-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font_title); font-weight: 700; font-size: 18px; }
.product-title .ic { color: var(--primary); }
.btn-remove { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); padding: 6px 10px; border-radius: 8px; transition: background-color .15s, color .15s; }
.btn-remove .ic { width: 17px; height: 17px; }
.btn-remove:hover { color: var(--primary); background: var(--primary_soft); }
.product-list .product:only-child .btn-remove { display: none; }

.label:has(.tip) { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; }
.tip { position: relative; display: flex; margin-left: auto; }
.tip-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--primary); border-radius: 6px; }
.tip-btn .ic { width: 16px; height: 16px; }
.tip-btn:focus-visible { box-shadow: 0 0 0 4px var(--primary_ring); }
.tip-pop {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 10; width: min(300px, calc(100vw - 96px));
  padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px -8px rgba(20,22,26,.28), 0 2px 8px rgba(20,22,26,.08);
  font-weight: 400; opacity: 0; visibility: hidden; transform: translateY(4px); transform-origin: top right;
  transition: opacity .15s, transform .15s, visibility .15s;
}
.tip-pop::before {
  content: ''; position: absolute; top: -7px; right: 52px; width: 12px; height: 12px; background: #fff;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
}
.tip:hover .tip-pop, .tip:focus-within .tip-pop { opacity: 1; visibility: visible; transform: none; }
.tip-pop svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.tip-pop figcaption { margin-top: 10px; font-size: 12px; line-height: 1.4; color: var(--text); }
.tip-pop figcaption strong { display: block; font-size: 13px; color: var(--text3); margin-bottom: 2px; }

.sn-wrap { position: relative; }
.sn-wrap .input { padding-right: 48px; }
.sn-state { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; display: grid; place-items: center; }
.sn-state.is-checking::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--primary); animation: spin .7s linear infinite; }
.sn-state.is-ok { background: var(--ok); border-radius: 50%; }
.sn-state.is-ok::after { content: ''; width: 14px; height: 14px; background: var(--ck-white) center / contain no-repeat; }
.sn-state.is-dup { background: var(--err); border-radius: 50%; }
.sn-state.is-dup::after { content: '!'; color: #fff; font-weight: 800; font-size: 13px; }
.sn-msgs:not(:has(.msg:not([hidden]))) { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-add {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; border: 1.5px dashed var(--line2); border-radius: 16px;
  font-weight: 600; font-size: 15px; color: var(--text3); background: #fff; transition: all .15s;
}
.btn-add .ic { color: var(--primary); }
.btn-add:hover { border-color: var(--primary); color: var(--primary_dark); background: var(--primary_soft); }

.stepper-input { display: grid; grid-template-columns: 52px 1fr 52px; border: 1.5px solid var(--line2); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.stepper-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary_ring); }
.stepper-input .input { border: 0; border-radius: 0; text-align: center; font-weight: 600; box-shadow: none !important; height: 49px; }
.si-btn { font-size: 22px; font-weight: 500; color: var(--text3); background: var(--light); transition: background .15s; }
.si-btn:hover { background: #e9ebee; }
.field.has-error .stepper-input { border-color: var(--err); }
.modules-note-wrap { display: flex; align-items: flex-end; }
.modules-note-wrap .msg { width: 100%; }

/* ---------- Upload zones ---------- */
.upload {
  position: relative; border: 1.5px dashed #c3c8ce; border-radius: 16px; background: #fafbfb;
  transition: border-color .15s, background .15s; min-height: 168px;
}
.upload input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.upload:hover, .upload.is-drag { border-color: var(--primary); background: var(--primary_soft); }
.upload:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary_ring); }
.up-empty { height: 100%; min-height: 165px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; gap: 4px; }
.up-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); box-shadow: 0 4px 14px -4px rgba(20,22,26,.18); margin-bottom: 10px; }
.up-icon .ic { width: 24px; height: 24px; }
.up-title { font-weight: 600; font-size: 15px; color: var(--title); }
.up-sub { font-size: 13px; color: var(--gray); }
.upload.has-file { border-style: solid; border-color: var(--line); background: #fff; display: flex; align-items: center; }
.upload.has-file .up-file { width: 100%; }
.upload.has-file input[type=file] { display: none; }
.upload.has-file .up-empty { display: none; }
.up-file { display: flex; align-items: center; gap: 14px; padding: 14px; }
.up-thumb { position: relative; width: 96px; height: 96px; padding: 0; transition: border-color .15s; border-radius: 10px; background: var(--light) center/cover no-repeat; flex: none; display: grid; place-items: center; color: var(--primary); border: 1px solid var(--line); overflow: hidden; }
.up-thumb:hover { border-color: var(--primary); }
.up-thumb:focus-visible { box-shadow: 0 0 0 4px var(--primary_ring); }
.up-thumb .ic { width: 28px; height: 28px; }
.zoom { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20,22,26,.45); color: #fff; opacity: 0; transition: opacity .15s; }
.up-thumb .zoom .ic, .doc-thumb .zoom .ic { width: 24px; height: 24px; }
.up-thumb:hover .zoom, .up-thumb:focus-visible .zoom, .doc:hover .zoom, .doc:focus-visible .zoom { opacity: 1; }
.up-meta { min-width: 0; flex: 1; }
.up-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-size { font-size: 13px; color: var(--gray); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.up-size .okdot { width: 16px; height: 16px; border-radius: 50%; background: var(--ok); display: inline-grid; place-items: center; }
.up-size .okdot::after { content: ''; width: 11px; height: 11px; background: var(--ck-white) center / contain no-repeat; }
.up-progress { height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.up-progress span { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 4px; transition: width 1s ease; }
.up-remove { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text); flex: none; transition: background-color .15s, color .15s; }
.up-remove:hover { background: var(--primary_soft); color: var(--primary); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,14,18,.97); display: flex; flex-direction: column; animation: lbIn .2s ease both; }
.lightbox.is-closing { animation: lbOut .2s ease both; pointer-events: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbOut { from { opacity: 1; } to { opacity: 0; } }
.lb-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; color: #fff; }
.lb-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.lb-title strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-title span { font-size: 12.5px; color: rgba(255,255,255,.6); white-space: nowrap; }
.lb-count { min-width: 48px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.6); }
.lb-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; transition: background-color .15s, opacity .15s; }
.lb-btn:hover { background: rgba(255,255,255,.12); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn:disabled { opacity: .35; cursor: default; background: none; }
.lb-stage { flex: 1; min-height: 0; overflow: auto; display: flex; padding: 20px; }
.lb-img { display: block; margin: auto; flex: none; width: 0; max-width: none; height: auto; }
.lb-pdf { margin: auto; flex: none; width: min(960px, 100%); height: 100%; border: 0; border-radius: 10px; background: #fff; }

/* ---------- Messages ---------- */
.msg {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; font-weight: 500;
}
.msg .ic { width: 18px; height: 18px; margin-top: 1px; }
.msg.ok { background: var(--ok_bg); color: var(--ok); }
.msg.err { background: var(--err_bg); color: var(--primary_dark); }
.msg.warn { background: var(--warn_bg); color: var(--warn); border: 1px solid var(--warn_line); }
.msg.info { background: var(--light); color: var(--text2); }
.ocr-msg { margin-top: 12px; }
.ocr-row .ocr-msg { margin-top: 0; }
.late-wrap:not(:has(.msg:not([hidden]))) { display: none; }

/* ---------- Review (P1-31) ---------- */
.summary { display: flex; flex-direction: column; gap: 14px; }
.sum-sec { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sum-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--light); }
.sum-head h3 { font-family: var(--font_title); font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.sum-head h3 .ic { color: var(--primary); width: 18px; height: 18px; }
.sum-edit { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--primary); padding: 6px 10px; border-radius: 8px; transition: background-color .15s; }
.sum-edit .ic { width: 16px; height: 16px; }
.sum-edit:hover { background: var(--primary_soft); }
.sum-list { padding: 6px 20px; }
.sum-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid #f0f1f3; font-size: 15px; }
.sum-row:last-child { border-bottom: 0; }
.sum-row dt { color: var(--text); }
.sum-row dd { color: var(--title); font-weight: 500; overflow-wrap: anywhere; }
.tag-ok { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok_bg); padding: 2px 8px; border-radius: 999px; vertical-align: 1px; }
.tag-ok .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.tag-late { display: inline-flex; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn_bg); padding: 2px 8px; border-radius: 999px; }
.mono-t { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 20px 18px; }
.doc { display: block; text-align: center; min-width: 0; }
.doc-thumb { position: relative; overflow: hidden; aspect-ratio: 4/3; border-radius: 10px; border: 1px solid var(--line); background: var(--light) center/cover no-repeat; display: grid; place-items: center; color: var(--primary); }
.doc-thumb .ic { width: 28px; height: 28px; }
.doc-name { display: block; font-size: 12px; color: var(--text); margin-top: 6px; line-height: 1.3; }

.consents { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 15px; color: var(--text3); line-height: 1.5; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 1.5px solid #b9bec5; display: grid; place-items: center; color: transparent; background: #fff; transition: all .15s; margin-top: -1px; }
.check .box .ic { width: 15px; height: 15px; stroke-width: 2.8; }
.check input:checked + .box { background: var(--primary); border-color: var(--primary); color: #fff; }
.check input:focus-visible + .box { box-shadow: 0 0 0 4px var(--primary_ring); }
.link { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: color .15s; }
.link:hover { color: var(--primary_dark); }

/* ---------- Nav buttons ---------- */
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding: 24px 0 32px; border-top: 1px solid var(--line); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; transition: background-color .15s, border-color .15s, color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary_dark); }
.btn-ghost { color: var(--text3); border: 1.5px solid var(--line2); background: #fff; }
.btn-ghost:hover { border-color: var(--title); }
.btn.is-hidden { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .ic { display: none; }
.btn.is-loading::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
.form-nav .btn-primary { margin-left: auto; }

/* ---------- Confirmation (P1-35 to P1-38) ---------- */
.done { padding: 64px 48px 56px; text-align: center; animation: stepIn .4s ease both; }
.done-badge { width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 12px var(--ok_bg); animation: pop .5s cubic-bezier(.2,1.4,.4,1) both .1s; }
.done-badge .ic { width: 42px; height: 42px; stroke-width: 2.6; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done h2 { font-family: var(--font_title); font-weight: 800; font-size: 30px; line-height: 1.25; letter-spacing: -.015em; max-width: 520px; margin: 0 auto; }
.reg-no { margin: 30px auto 0; max-width: 420px; padding: 22px; border-radius: 16px; background: var(--light); border: 1px solid var(--line); }
.reg-no > span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.reg-copy { position: relative; display: inline-block; margin-top: 6px; padding: 2px 14px; border-radius: 12px; transition: background-color .15s; }
.reg-copy:hover, .reg-copy:focus-visible, .reg-copy.is-copied { background: var(--primary_soft); }
.reg-copy:focus-visible { box-shadow: 0 0 0 4px var(--primary_ring); }
.reg-copy strong { display: block; font-family: var(--font_title); font-weight: 800; font-size: 30px; letter-spacing: .02em; color: var(--primary); }
.reg-tip {
  position: absolute; left: 50%; top: calc(100% + 10px); padding: 6px 10px; border-radius: 8px; background: var(--title); color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none; white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.reg-tip::after { content: ''; position: absolute; left: 50%; bottom: 100%; width: 8px; height: 8px; background: var(--title); transform: translate(-50%, 4px) rotate(45deg); }
.reg-copy:hover .reg-tip, .reg-copy:focus-visible .reg-tip, .reg-copy.is-copied .reg-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.next { margin: 30px auto 0; max-width: 520px; }
.next h3 { font-family: var(--font_title); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.next p { color: var(--text); font-size: 16px; }
.support-line { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 15px; color: var(--text); }
.support-line a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--title); transition: color .15s; }
.support-line a:hover { color: var(--primary); }
.support-line a .ic { width: 17px; height: 17px; color: var(--primary); }
.support-line .sep { color: var(--line2); }

/* ---------- Side cards (P1-03, P1-38) ---------- */
.side-card { padding: 22px 22px; }
.needs summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: var(--font_title); font-weight: 700; font-size: 17px; }
.needs summary::-webkit-details-marker { display: none; }
.needs .chev { color: var(--text); transition: transform .2s; }
.needs[open] .chev { transform: rotate(180deg); }
.needs-list { list-style: none; margin-top: 10px; display: flex; flex-direction: column; }
.needs-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 15px; font-weight: 500; color: var(--text3); padding: 12px 0; line-height: 1.4; border-bottom: 1px solid var(--line); }
.needs-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.needs-list li > span:not(.ni) { display: flex; flex-direction: column; }
.needs-list em { font-style: normal; color: var(--gray); font-weight: 400; }
body.is-done .side { display: none; }
body.is-done .layout { grid-template-columns: minmax(0, 820px); justify-content: center; }
.ni { width: 20px; height: 21px; flex: none; display: grid; place-items: center; color: var(--primary); }
.ni .ic { width: 20px; height: 20px; stroke-width: 1.6; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-in { display: flex; align-items: center; gap: 24px; height: 84px; font-size: 14px; color: var(--text); }
.footer-in a { margin-left: auto; font-weight: 600; color: var(--text3); transition: color .15s; }
.footer-in a:hover { color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .hero-in { grid-template-columns: 1fr 400px; gap: 28px; }
  .hero h1 { font-size: 44px; }
  .lineup { transform: scale(.8); transform-origin: 50% 100%; }
  .badge-10 { width: 104px; bottom: 8px; right: -10px; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .hero { background-image: linear-gradient(90deg, rgba(18,20,24,.88), rgba(18,20,24,.35)), url(../img/hero-bg.webp); background-position: center, 70% center; }
  .hero-in { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 86px; }
  .hero-visual { display: none; }
  .hero-media { display: none; } /* mobile: static background (darkened for the text), no video download */
  .layout { grid-template-columns: 1fr; margin-top: -36px; gap: 16px; padding-bottom: 48px; }
  .side { display: contents; }
  .needs { order: -1; }
  .form-card { order: 0; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .header-in { height: 60px; }
  .brand img { height: 38px; }
  .header-tag { font-size: 13px; padding: 7px 12px; }
  .site-header { position: relative; }

  .wrap { padding: 0 16px; }
  .hero-in { padding-top: 44px; padding-bottom: 72px; }
  .eyebrow { font-size: 12px; margin-bottom: 14px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { font-size: 16px; margin-top: 14px; }
  .layout { margin-top: -32px; gap: 14px; padding-bottom: 48px; }

  .card { border-radius: 18px; }
  .side-card { padding: 18px; }

  .stepper { padding: 20px 20px 0; }
  .stepper .lbl { display: none; }
  .stepper .num { width: 30px; height: 30px; font-size: 13px; border-width: 1.5px; }
  .stepper li::before { top: 14px; }
  .stepper li.is-current .num { box-shadow: 0 0 0 4px var(--primary_ring); }

  form { padding: 0 16px; }
  .stepper { padding-left: 16px; padding-right: 16px; }
  .seg-opt span { padding: 0 10px; gap: 8px; white-space: nowrap; }
  .select-wrap select { padding: 0 36px 0 14px; text-overflow: ellipsis; }
  .select-wrap .ic { right: 10px; }
  .up-thumb { width: 72px; height: 72px; }
  .tip-text { display: none; }
  .tip-btn { padding: 6px; margin: -6px; }
  .tip-btn .ic { width: 18px; height: 18px; }
  .tip-pop { right: -10px; }
  .tip-pop::before { right: 13px; }
  .step { padding-top: 24px; }
  .step-head { margin-bottom: 22px; padding-bottom: 18px; }
  .step-head h2 { font-size: 24px; }
  .step-count { font-size: 12px; }

  .grid, .grid-inner { grid-template-columns: 1fr; gap: 18px; }
  .grid-inner { grid-template-columns: 1fr 1fr; gap: 12px; }
  .choice-cards { grid-template-columns: 1fr; gap: 12px; }
  .choice-card { padding: 16px; }
  .cc-text { font-size: 17px; }
  .seg-sm { max-width: none; }
  .inverter-block { padding: 18px 16px; margin-left: -4px; margin-right: -4px; }
  .product { padding: 16px 14px 18px; border-radius: 16px; }
  .upload { min-height: 150px; }
  .up-empty { min-height: 147px; padding: 16px 20px; }
  .lb-bar { flex-wrap: wrap; justify-content: flex-end; padding: 10px 12px; }
  .lb-title { flex-basis: 100%; }
  .lb-stage { padding: 12px; }
  .section-split { margin: 30px 0 18px; }

  .sum-head { padding: 12px 16px; }
  .sum-list { padding: 4px 16px; }
  .sum-row { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; font-size: 14px; }
  .sum-row dt { font-size: 13px; }
  .docs { grid-template-columns: repeat(2, 1fr); padding: 14px 16px 16px; }

  .form-nav { padding: 20px 0 24px; margin-top: 28px; }
  .btn { height: 52px; padding: 0 20px; }
  .form-nav .btn-primary { flex: 1; }
  #btnBack { flex: none; width: 52px; padding: 0; }
  #btnBack span { display: none; }

  .done { padding: 44px 22px 36px; }
  .done-badge { width: 72px; height: 72px; }
  .done-badge .ic { width: 34px; height: 34px; }
  .done h2 { font-size: 23px; }
  .reg-no { padding: 20px 12px; }
  .reg-copy { padding: 2px 8px; }
  .reg-copy strong { font-size: clamp(18px, 6.2vw, 24px); white-space: nowrap; }
  .support-line { flex-direction: column; gap: 8px; }
  .support-line .sep { display: none; }

  .footer-in { height: auto; padding: 22px 16px; flex-wrap: wrap; gap: 10px 18px; }
  .footer-in p { font-size: 13px; }
  .footer-in a { margin-left: 0; }
}

@media (max-width: 360px) {
  .form-nav .btn-primary { padding: 0 14px; }
  .btn-submit .ic { display: none; }
}
