/* MARSTEK ENERGY PH – Sub-Dealership Application
   Design tokens match marstek.philippian.ph: Montserrat 300–600, #F4F5F7 ground,
   indigo accent, blue→cyan sweep, 14px tiles, pill buttons. */
:root {
  --ink: #131110;
  --ink-2: #131110;
  --accent: #2A1BCA;
  --accent-dark: #4A3DF0;
  --accent-soft: #EEEDFD;
  --cyan: #00C2FF;
  --sweep: linear-gradient(90deg, #2E1EFC 0%, #0B5CFF 42%, #00A6F7 72%, #00E9FF 100%);
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --text: #131110;
  --muted: #6A6764;
  --dim: #4A4745;
  --line: #E3E5EA;
  --line-strong: #CDD1D9;
  --err: #D92D20;
  --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Montserrat, ui-sans-serif, system-ui, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased;
  color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.65; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: #131110; padding: 28px 20px 64px; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 70% at 78% 6%, rgba(0,166,247,.26) 0%, transparent 60%),
    radial-gradient(70% 70% at 0% 100%, rgba(46,30,252,.34) 0%, transparent 62%); }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.brand { display: block; width: 190px; }
.brand img { display: block; width: 100%; height: auto; }
.eyebrow { margin: 56px 0 14px; color: rgba(255,255,255,.62); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; }
.hero h1 { margin: 0 0 22px; font-size: clamp(36px, 6.4vw, 58px); line-height: 1.04; font-weight: 400; letter-spacing: -.02em; }
.hero h1 .sweep { background: var(--sweep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 2.2vw, 18px); margin: 0 0 12px; color: #fff; font-weight: 400; }
.lead b { font-weight: 600; }
.sub { margin: 0 0 10px; color: rgba(255,255,255,.72); font-size: 15px; font-weight: 300; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pills span { border: 1px solid rgba(255,255,255,.3); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.88); }

/* ---------- progress ---------- */
.progress { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); box-shadow: 0 10px 30px -22px rgba(11,11,11,.45); border-bottom: 1px solid var(--line); height: 34px; display: flex; align-items: center; }
.progress .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--sweep); transition: width .3s; }
.progress span { max-width: 760px; width: 100%; margin: 0 auto; padding: 0 20px; font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- layout ---------- */
.wrap { max-width: 760px; margin: 18px auto 0; padding: 0 14px 40px; position: relative; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  margin-bottom: 16px; box-shadow: 0 18px 40px -34px rgba(11,11,11,.5); }
.sec-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.num { flex: none; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  background: var(--sweep); color: #fff; font-weight: 600; font-size: 16px; }
.sec-kicker { margin: 0; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }
.sec-head h2 { margin: 2px 0 0; font-size: clamp(19px, 2.6vw, 23px); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } .card { padding: 22px 18px; } }

label, .label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
label i, .label i { color: var(--err); font-style: normal; }
.opt { color: var(--muted); font-weight: 500; }
input[type=text], input:not([type]), input[type=tel], input[type=email], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #FBFCFD; border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 48px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(42,27,202,.12); background: #fff; }
.hint { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); text-align: right; }

/* choice pills (radio) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { margin: 0; font-weight: 500; border: 1px solid var(--line-strong); background: #FBFCFD; border-radius: 999px;
  padding: 9px 16px; cursor: pointer; user-select: none; transition: all .15s; font-size: 14.5px; }
.choices label:hover { border-color: var(--ink); }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.choices label:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(42,27,202,.2); }

/* conditional fields */
.reveal { display: none; }
.reveal.show { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* errors */
.err { display: none; margin: 6px 0 0; color: var(--err); font-size: 13px; font-weight: 500; }
.done-logo { width: 170px; margin: 18px auto 0; display: block; }
.invalid .err { display: block; }
.invalid input, .invalid textarea, .invalid select { border-color: var(--err); }
.invalid .drop { border-color: var(--err); background: #FEF3F2; }

/* upload */
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; cursor: pointer; margin: 0;
  border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 26px 16px; background: #FBFCFD; font-weight: 500; transition: all .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { display: none; }
.drop-icon { font-size: 30px; }
.drop-text b { color: var(--accent); font-weight: 600; }
.drop-hint { font-size: 12.5px; color: var(--muted); }
.drop img { display: none; max-width: 100%; max-height: 220px; margin-top: 12px; border-radius: 10px; border: 1px solid var(--line); }
.drop.has { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }

/* info sections */
.info p { margin: 0 0 10px; }
.checks { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.quota { position: relative; overflow: hidden; background: #131110; color: rgba(255,255,255,.8); border-radius: 14px; padding: 22px 22px 18px; }
.quota::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 80% at 88% 6%, rgba(0,166,247,.22) 0%, transparent 60%), radial-gradient(60% 80% at 4% 100%, rgba(46,30,252,.3) 0%, transparent 60%); }
.quota > * { position: relative; }
.quota p { margin: 0 0 8px; }
.quota b { color: #fff; }
.quota-k { color: rgba(255,255,255,.62) !important; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; }
.quota-v { font-size: clamp(28px, 5vw, 36px); font-weight: 400; color: #fff !important; letter-spacing: -.02em; }
.quota-v span { display: block; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.quota .small { font-size: 13px; color: rgba(255,255,255,.6); margin: 6px 0 0; font-weight: 300; }
.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 12px; }
.benefits div { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-weight: 500; font-size: 14px; background: var(--bg); }
.benefits span { font-size: 20px; line-height: 1.1; }
.benefits small { font-weight: 500; color: var(--muted); }

/* declarations */
.decls { display: grid; gap: 10px; margin-top: 12px; }
.decls label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; margin: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #FBFCFD; transition: all .15s; }
.decls label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.decls b { font-weight: 600; }
.decls input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
#declSection.invalid .decls label:not(:has(input:checked)) { border-color: var(--err); }

/* submit */
.submit-row { text-align: center; padding: 8px 0 20px; }
.submit { font: inherit; font-weight: 500; font-size: 15px; letter-spacing: .01em; color: #fff; background: var(--accent); border: 0; border-radius: 999px;
  padding: 16px 30px; width: 100%; max-width: 480px; cursor: pointer; transition: background .18s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.submit:hover { background: var(--accent-dark); }
.submit:disabled { opacity: .5; cursor: progress; }
.formerr { color: var(--err); font-weight: 500; margin: 12px 0 0; min-height: 1em; }

/* confirmation */
.done { text-align: center; padding: 40px 28px; }
.done-icon { font-size: 54px; }
.done h2 { margin: 8px 0 10px; font-size: clamp(26px, 4vw, 34px); font-weight: 400; letter-spacing: -.02em; color: var(--ink); }
.appid { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 6px 16px; font-weight: 500; }
.appid b { font-weight: 600; }
.done p { max-width: 520px; margin: 12px auto; }
.tagline { font-weight: 600; color: var(--ink); margin-top: 22px !important; }
.tagline span { background: var(--sweep); -webkit-background-clip: text; background-clip: text; color: transparent; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 20px 34px; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--accent); }
.benefits span { filter: grayscale(.15); }
