/* =========================================================
   IOACON 2026 · Exhibitor Form
   Palette taken from the IOACON 2026 logo
   ========================================================= */
:root {
    --coral:   #F1583A;
    --pink:    #E5138F;
    --magenta: #BA2991;
    --purple:  #703493;
    --blue:    #3671B6;
    --green:   #0E8141;

    --ink:     #1F1638;
    --text:    #3B3354;
    --muted:   #736B8C;
    --line:    #E9E3F1;
    --line-2:  #DCD3E8;
    --bg:      #FAF7FC;
    --card:    #FFFFFF;
    --soft:    #F6F1FA;
    --danger:  #D92D4B;

    --grad:      linear-gradient(100deg, var(--coral) 0%, var(--pink) 38%, var(--purple) 72%, var(--blue) 100%);
    --grad-warm: linear-gradient(120deg, var(--coral), var(--pink));
    --grad-cool: linear-gradient(120deg, var(--purple), var(--blue));

    --radius:    18px;
    --radius-sm: 12px;
    --shadow:    0 1px 2px rgba(31, 22, 56, .04), 0 12px 40px -12px rgba(112, 52, 147, .18);
    --shadow-lg: 0 30px 80px -30px rgba(112, 52, 147, .35);
    --ring:      0 0 0 4px rgba(229, 19, 143, .14);

    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Outfit", var(--font-body);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--purple); }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.ico { width: 20px; height: 20px; flex: none; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Background decoration ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; }
.blob-1 { width: 520px; height: 520px; background: var(--coral); top: -220px; left: -160px; opacity: .22; }
.blob-2 { width: 560px; height: 560px; background: var(--pink); top: -180px; right: -200px; opacity: .18; }
.blob-3 { width: 600px; height: 600px; background: var(--blue); bottom: -320px; left: 30%; opacity: .12; }
.bg-decor::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(112, 52, 147, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000, transparent 60%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 60%);
}

/* ---------- Hero ---------- */
.hero { padding: 28px 0 8px; }
.hero-inner { display: grid; gap: 24px; align-items: center; }
.logo-card {
    display: block;
    background: #fff;
    border-radius: 22px;
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
}
.logo-card img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }

.hero-copy { text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--pink);
    background: rgba(229, 19, 143, .08);
    border: 1px solid rgba(229, 19, 143, .18);
    padding: 6px 12px;
    border-radius: 999px;
}
.hero h1 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 14px 0 10px;
}
.hero-sub { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: 14.5px; }
@media (min-width: 640px) { .hero-sub { font-size: 15.5px; } }
.hero-meta li { text-align: left; }
.hero-meta {
    list-style: none; padding: 0; margin: 18px 0 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.hero-meta li {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px 7px 10px;
    font-size: 13px; font-weight: 600; color: var(--ink);
    box-shadow: 0 2px 8px -4px rgba(112, 52, 147, .2);
}
.hero-meta .ico { width: 17px; height: 17px; color: var(--magenta); }
.hero-meta li.due { background: var(--grad-warm); color: #fff; border-color: transparent; }
.hero-meta li.due .ico { color: #fff; }

@media (min-width: 900px) {
    .hero { padding: 44px 0 14px; }
    .hero-inner { grid-template-columns: 380px 1fr; gap: 48px; }
    .logo-card { margin: 0; max-width: 380px; }
    .hero-copy { text-align: left; }
    .hero-sub { margin: 0; }
    .hero-meta { justify-content: flex-start; }
}

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 48px; }
.layout > * { min-width: 0; }
@media (min-width: 980px) {
    .layout { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 32px; }
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- Stepper ----------
 * Mobile / tablet: a static card with all dots spread across the width and the
 * current step's name underneath. Desktop (980px+): sticky vertical sidebar.
 */
.stepper {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px 12px;
    position: relative;
}
.stepper ol {
    list-style: none; margin: 0; padding: 0;
    display: flex; justify-content: space-between; align-items: center;
    position: relative;
}
/* Connector line behind the dots (mobile) */
.stepper ol::before {
    content: ""; position: absolute; left: 16px; right: 16px; top: 50%;
    height: 2px; background: var(--line-2); transform: translateY(-50%);
}
.stepper li {
    display: flex; align-items: center; gap: 10px;
    border-radius: 12px;
    flex: none;
    cursor: default;
    position: relative; z-index: 1;
    transition: background .2s;
}
.stepper li.done { cursor: pointer; }
.stepper .dot {
    width: 34px; height: 34px; flex: none;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 700; font-size: 14px;
    color: var(--muted);
    background: #fff;
    border: 1.5px solid var(--line-2);
    box-shadow: 0 0 0 4px #fff;
    transition: all .25s;
}
.stepper .lbl { display: none; }
.stepper .lbl b { display: block; font-size: 14px; color: var(--ink); font-weight: 700; line-height: 1.25; }
.stepper .lbl small { color: var(--muted); font-size: 12px; }
@media (min-width: 640px) and (max-width: 979px) {
    .stepper ol { max-width: 520px; margin: 0 auto; }
}
.stepper-current {
    margin-top: 10px; text-align: center;
    font-size: 13px; color: var(--muted); font-weight: 600;
}
.stepper-current b { color: var(--ink); font-family: var(--font-head); font-size: 15px; }
.stepper li.active .dot { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 0 4px #fff, 0 6px 16px -6px rgba(229, 19, 143, .6); }
.stepper li.done .dot {
    background: var(--green) 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 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
    border-color: var(--green);
    color: transparent;
    font-size: 0;
}

.stepper-progress { height: 4px; background: var(--soft); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.stepper-progress span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 4px; transition: width .4s ease; }

.addressed { display: none; }

@media (min-width: 980px) {
    .stepper {
        padding: 22px 18px; position: sticky; top: 20px; z-index: 20;
    }
    .stepper ol { flex-direction: column; align-items: stretch; gap: 4px; }
    .stepper ol::before { display: none; }
    .stepper li { padding: 10px; gap: 14px; }
    .stepper li.done:hover { background: var(--soft); }
    .stepper .dot { width: 36px; height: 36px; box-shadow: none; }
    .stepper li.active .dot { box-shadow: 0 6px 16px -6px rgba(229, 19, 143, .6); }
    .stepper .lbl { display: block; }
    .stepper-current { display: none; }
    .stepper li:not(:last-child) { position: relative; }
    .stepper li:not(:last-child)::after {
        content: ""; position: absolute; left: 27px; top: 50px; bottom: -10px; width: 2px;
        background: var(--line-2); border-radius: 2px;
    }
    .stepper li.done:not(:last-child)::after { background: var(--green); }
    .stepper-progress { margin-bottom: 16px; }
    .addressed {
        display: block;
        margin-top: 18px; padding: 14px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(241, 88, 58, .08), rgba(112, 52, 147, .08));
        border: 1px dashed rgba(112, 52, 147, .25);
        font-size: 13px;
    }
    .addressed small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; font-weight: 700; }
    .addressed b { display: block; color: var(--ink); font-size: 14.5px; margin-top: 2px; }
    .addressed span { color: var(--muted); }
}

/* ---------- Form card ---------- */
.form-card { padding: 22px 16px 0; position: relative; overflow: hidden; }
.form-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad);
}
@media (min-width: 640px) { .form-card { padding: 34px 34px 0; } }

.alert {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px; margin-bottom: 20px;
}
.alert-error { background: #FDECEF; color: var(--danger); border: 1px solid #F8C9D2; }

.step { animation: stepIn .4s ease both; }
.js .step { display: none; }
.js .step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.step-head { margin-bottom: 22px; }
.step-num {
    display: inline-block;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-head h2 {
    font-family: var(--font-head); font-weight: 700;
    font-size: clamp(22px, 4vw, 28px); line-height: 1.2; letter-spacing: -.01em;
    color: var(--ink); margin: 4px 0 6px;
}
.step-head p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Fields ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 640px) {
    .grid { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
    .grid .col-2 { grid-column: 1 / -1; }
    .grid.three { grid-template-columns: repeat(3, 1fr); }
}

.field { margin: 0 0 18px; min-width: 0; border: 0; padding: 0; }
.grid > .field { margin: 0; }
.field > label, .field > legend {
    display: flex; align-items: center; gap: 6px;
    font-weight: 600; font-size: 13.5px; color: var(--ink);
    margin-bottom: 7px; padding: 0;
}
.field label i, .field legend i { color: var(--pink); font-style: normal; }
.opt {
    font-size: 11px; font-weight: 600; color: var(--muted);
    background: var(--soft); padding: 1px 8px; border-radius: 999px;
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .ico {
    position: absolute; left: 14px; width: 18px; height: 18px;
    color: #A79FBD; pointer-events: none; transition: color .2s;
}
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=password],
input[type=date], input[type=time], textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid var(--line-2);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}
.input-wrap > .ico ~ input { padding-left: 44px; }
#fascia_name { padding-right: 64px; }
input::placeholder, textarea::placeholder { color: #B2AAC6; }
input:hover, textarea:hover { border-color: #CDBFE0; }
input:focus, textarea:focus { border-color: var(--pink); box-shadow: var(--ring); }
.input-wrap:focus-within > .ico { color: var(--pink); }
input[type=date], input[type=time] { padding-right: 12px; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
input.upper { text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
input.upper::placeholder { letter-spacing: .02em; font-weight: 500; }

.input-wrap.suffix input { padding-right: 56px; }
.unit {
    position: absolute; right: 6px;
    font-size: 12px; font-weight: 700; color: var(--purple);
    background: var(--soft); padding: 7px 9px; border-radius: 8px;
}
.counter {
    position: absolute; right: 12px;
    font-size: 12px; font-weight: 600; color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.counter.warn { color: var(--coral); }
.counter.over { color: var(--danger); }
.textarea-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 10px; }
.textarea-foot .counter { position: static; }

.hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.textarea-foot .hint { margin: 0; }
.error-text { display: block; margin-top: 6px; color: var(--danger); font-size: 12.5px; font-weight: 600; }
.has-error input, .has-error textarea { border-color: var(--danger); background: #FFF8F9; }
.has-error .dropzone, .has-error .sign-pad { border-color: var(--danger); }
.has-error .type-body { border-color: #F2B8C3; }

.sub-title {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink);
    padding-top: 8px; margin: 4px 0 2px;
}
.sub-title .ico {
    width: 32px; height: 32px; padding: 7px; border-radius: 10px;
    color: #fff; background: var(--grad-cool);
}
.note { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }

/* ---------- Stall type cards ---------- */
.type-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .type-cards { grid-template-columns: 1fr 1fr; } }
.type-card { position: relative; display: block; cursor: pointer; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }
.type-body {
    display: flex; align-items: center; gap: 14px;
    padding: 16px;
    border: 1.5px solid var(--line-2);
    border-radius: 16px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
    height: 100%;
}
.type-card:hover .type-body { border-color: #CDBFE0; transform: translateY(-2px); }
.type-icon {
    width: 52px; height: 52px; flex: none; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--soft); color: var(--purple);
    transition: all .25s;
}
.type-icon .ico { width: 28px; height: 28px; }
.type-text { flex: 1; min-width: 0; }
.type-text b { display: block; font-family: var(--font-head); font-size: 17px; color: var(--ink); font-weight: 700; }
.type-text small { color: var(--muted); font-size: 13px; }
.type-check {
    width: 26px; height: 26px; flex: none; border-radius: 50%;
    border: 1.5px solid var(--line-2);
    display: grid; place-items: center; color: transparent;
    transition: all .2s;
}
.type-check .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.type-card input:checked + .type-body {
    border-color: transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--grad) border-box;
    border: 2px solid transparent;
    box-shadow: 0 14px 30px -16px rgba(229, 19, 143, .55);
}
.type-card input:checked + .type-body .type-icon { background: var(--grad); color: #fff; }
.type-card input:checked + .type-body .type-check { background: var(--green); border-color: var(--green); color: #fff; }
.type-card input:focus-visible + .type-body { box-shadow: var(--ring); }

/* ---------- Conditional panels / inclusions ---------- */
.conditional { animation: stepIn .4s ease both; }
.includes {
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 22px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(241, 88, 58, .10), transparent 50%),
        radial-gradient(120% 140% at 100% 100%, rgba(54, 113, 182, .10), transparent 50%),
        var(--soft);
    border: 1px solid var(--line);
}
.includes-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 12px; }
.includes-head .ico { color: var(--pink); }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .amenities { grid-template-columns: repeat(6, 1fr); } }
.amenities.single { grid-template-columns: 1fr; max-width: 260px; }
.amenities li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    animation: pop .45s cubic-bezier(.2, .9, .3, 1.3) both;
}
.amenities li:nth-child(2) { animation-delay: .05s; }
.amenities li:nth-child(3) { animation-delay: .1s; }
.amenities li:nth-child(4) { animation-delay: .15s; }
.amenities li:nth-child(5) { animation-delay: .2s; }
.amenities li:nth-child(6) { animation-delay: .25s; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.am-icon {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    color: #fff; margin-bottom: 6px;
}
.amenities li:nth-child(6n+1) .am-icon { background: linear-gradient(135deg, #F1583A, #F0805F); }
.amenities li:nth-child(6n+2) .am-icon { background: linear-gradient(135deg, #F04B5F, #E5138F); }
.amenities li:nth-child(6n+3) .am-icon { background: linear-gradient(135deg, #E5138F, #BA2991); }
.amenities li:nth-child(6n+4) .am-icon { background: linear-gradient(135deg, #BA2991, #703493); }
.amenities li:nth-child(6n+5) .am-icon { background: linear-gradient(135deg, #703493, #3671B6); }
.amenities li:nth-child(6n+6) .am-icon { background: linear-gradient(135deg, #3671B6, #0E8141); }
.amenities.single li { flex-direction: row; text-align: left; gap: 12px; }
.amenities.single .am-icon { margin: 0; background: var(--grad-warm); }
.amenities.single li > b { display: block; }
.amenities b { font-size: 13.5px; color: var(--ink); }
.amenities small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.amenities.single li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 0; align-items: center; }
.amenities.single .am-icon { grid-row: 1 / 3; }

/* Fascia preview */
.fascia-preview { margin: 4px 0 8px; text-align: center; }
.fascia-board {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 64px; padding: 10px 70px;
    background: #fff;
    border: 3px solid #D9D5E2;
    border-radius: 6px 6px 0 0;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .04);
}
.fascia-text {
    font-family: Arial, Helvetica, sans-serif; font-weight: 700;
    font-size: clamp(13px, 2.6vw, 20px); letter-spacing: .06em;
    color: #1A1A2E; word-break: break-word; line-height: 1.2;
}
.fascia-text.placeholder { color: #C5BED6; }
.fascia-stall {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    font-size: 11px; font-weight: 800; color: #fff;
    background: var(--grad-cool); padding: 4px 8px; border-radius: 6px;
    max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fascia-booth { display: flex; height: 70px; background: linear-gradient(#F4F1F8, #ECE7F3); border-radius: 0 0 6px 6px; }
.fascia-booth .pole { width: 6px; background: #C9C3D6; }
.fascia-booth .panel { flex: 1; border-right: 2px solid #DDD7E7; }
.fascia-booth .panel:nth-last-child(2) { border-right: 0; }
.fascia-preview > small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
@media (max-width: 420px) { .fascia-board { padding: 10px 12px 10px 62px; } }

/* Electricity supply: phase cards + KW chips */
.phase-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phase-card { position: relative; display: block; cursor: pointer; }
.phase-card input { position: absolute; opacity: 0; pointer-events: none; }
.phase-body {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 96px; padding: 14px 10px; text-align: center;
    border: 1.5px solid var(--line-2); border-radius: 16px; background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.phase-card:hover .phase-body { border-color: #CDBFE0; transform: translateY(-2px); }
.phase-bolts { display: flex; gap: 2px; color: var(--coral); margin-bottom: 4px; }
.phase-bolts .ico { width: 20px; height: 20px; fill: currentColor; stroke-width: 1.4; }
.phase-body b { font-family: var(--font-head); font-size: 16px; color: var(--ink); }
.phase-body small { color: var(--muted); font-size: 12.5px; }
.phase-card input:checked + .phase-body {
    border: 2px solid transparent;
    background: linear-gradient(#FFF7FB, #FFF7FB) padding-box, var(--grad) border-box;
    box-shadow: 0 14px 30px -18px rgba(229, 19, 143, .6);
}
.phase-card input:checked + .phase-body .phase-bolts { color: var(--pink); }
.phase-card input:focus-visible + .phase-body { box-shadow: var(--ring); }
.has-error .phase-body { border-color: #F2B8C3; }

.load-hint { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 13.5px; }
.load-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.load-chip { position: relative; cursor: pointer; }
.load-chip input { position: absolute; opacity: 0; pointer-events: none; }
.load-chip span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 76px; height: 44px; padding: 0 16px;
    border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff;
    font-weight: 700; font-size: 14px; color: var(--ink);
    transition: all .2s;
}
.load-chip:hover span { border-color: #CDBFE0; }
.load-chip input:checked + span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px rgba(229, 19, 143, .8); }
.load-chip input:focus-visible + span { box-shadow: var(--ring); }
.has-error .load-chip span { border-color: #F2B8C3; }
@media (max-width: 420px) {
    .phase-cards { gap: 10px; }
    .phase-body { min-height: 88px; }
    .load-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .load-chip span { min-width: 0; width: 100%; padding: 0 6px; }
}

/* Power calculator */
.calc {
    margin: 4px 0 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2B1A4F, #4A2275 55%, #3671B6);
    color: #EDE6F8;
    padding: 6px 18px;
    box-shadow: 0 18px 40px -22px rgba(112, 52, 147, .8);
}
.calc-head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
    padding: 14px 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.calc-head > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; font-size: 14.5px; }
.calc-head .ico { width: 18px; height: 18px; color: #FFB199; }
.calc-head small { color: #CFC3E6; font-size: 12px; }
.calc-empty {
    display: flex; align-items: center; gap: 12px;
    margin: 4px 0 20px; padding: 14px 16px;
    border-radius: 14px; background: var(--soft); border: 1px solid var(--line);
}
.calc-empty-icon {
    width: 34px; height: 34px; flex: none; border-radius: 50%;
    display: grid; place-items: center; background: var(--grad-warm); color: #fff;
}
.calc-empty-icon .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.calc-empty b { display: block; color: var(--ink); font-size: 14px; }
.calc-empty small { display: block; color: var(--muted); font-size: 12.5px; }
.calc-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 11px 0; font-size: 14px;
    border-bottom: 1px dashed rgba(255, 255, 255, .15);
}
.calc-row:last-child { border-bottom: 0; }
.calc-row b { color: #fff; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.calc-row small { display: block; font-weight: 500; color: #CFC3E6; font-size: 11.5px; }
.calc-row.total { font-size: 16px; }
.calc-row.total b {
    font-family: var(--font-head); font-size: 22px;
    background: linear-gradient(90deg, #FFB199, #FF8AC8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Dropzone ---------- */
.dropzone {
    position: relative;
    border: 1.5px dashed #CBBEDD;
    border-radius: 14px;
    background: #FCFAFE;
    transition: border-color .2s, background .2s;
    min-height: 104px;
}
.dropzone:hover, .dropzone.drag { border-color: var(--pink); background: #FFF6FB; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.dropzone:focus-within { box-shadow: var(--ring); border-color: var(--pink); }
.dz-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px 14px; text-align: center; min-height: 104px; }
.dz-empty .ico { width: 26px; height: 26px; color: var(--pink); margin-bottom: 2px; }
.dz-empty span { font-size: 14px; color: var(--text); }
.dz-empty b { color: var(--magenta); }
.dz-empty small { font-size: 12px; color: var(--muted); }
.dz-file { display: none; align-items: center; gap: 12px; padding: 16px; min-height: 104px; }
.dz-file > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--grad-cool); color: #fff; }
.dz-name { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-size { color: var(--muted); font-size: 12px; flex: none; }
.dz-remove {
    position: relative; z-index: 2;
    width: 34px; height: 34px; flex: none; border-radius: 50%;
    border: 0; background: var(--soft); color: var(--muted); cursor: pointer;
    display: grid; place-items: center; transition: all .2s;
}
.dz-remove:hover { background: #FDECEF; color: var(--danger); }
.dz-remove .ico { width: 16px; height: 16px; }
.dropzone.filled { border-style: solid; border-color: #BFE3CC; background: #F5FBF7; }
.dropzone.filled .dz-empty { display: none; }
.dropzone.filled .dz-file { display: flex; }

/* ---------- Checkboxes / rules ---------- */
.check, .check-all { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--text); }
/* The generic .field > label rule centres items; long checkbox text needs the box on the first line */
.field > label.check { align-items: flex-start; font-size: 14px; font-weight: 500; margin-bottom: 0; }
.check input, .check-all input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box {
    width: 22px; height: 22px; flex: none; margin-top: 1px;
    border: 1.5px solid #C8BCD9; border-radius: 7px; background: #fff;
    display: grid; place-items: center; color: transparent;
    transition: all .2s;
}
.box .ico { width: 14px; height: 14px; stroke-width: 3; }
.check input:checked + .box, .check-all input:checked + .box { background: var(--grad); border-color: transparent; color: #fff; }
.check input:focus-visible + .box, .check-all input:focus-visible + .box { box-shadow: var(--ring); }
.check-all {
    padding: 12px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line);
    margin-bottom: 8px; align-items: center;
}
.check-all b { color: var(--ink); }
.rules { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rules li { padding: 13px 14px; border-bottom: 1px solid var(--line); transition: background .2s; }
.rules li:last-child { border-bottom: 0; }
.rules li:hover { background: #FCFAFE; }
.declaration {
    padding: 16px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(241, 88, 58, .07), rgba(229, 19, 143, .07));
    border: 1px solid rgba(229, 19, 143, .2);
}
.declaration .check { font-weight: 500; color: var(--ink); }

/* ---------- Signature ---------- */
.sign-pad {
    position: relative;
    height: 180px;
    border: 1.5px solid var(--line-2);
    border-radius: 14px;
    background:
        linear-gradient(to right, transparent 20px, transparent calc(100% - 20px)) ,
        repeating-linear-gradient(transparent 0 139px, #E3DCEC 139px 140px),
        #fff;
    overflow: hidden;
    touch-action: none;
}
.sign-pad:focus-within, .sign-pad.active { border-color: var(--pink); }
.sign-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.sign-placeholder {
    position: absolute; left: 18px; bottom: 46px;
    font-family: var(--font-head); font-size: 20px; color: #D5CDE3; pointer-events: none;
}
.sign-pad.signed .sign-placeholder { display: none; }
.link-btn {
    position: absolute; right: 8px; top: 8px;
    display: inline-flex; align-items: center; gap: 5px;
    border: 0; background: var(--soft); color: var(--purple);
    font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
.link-btn .ico { width: 14px; height: 14px; }
.link-btn:hover { background: #EDE3F6; }

/* ---------- Review ---------- */
.review { display: grid; gap: 14px; margin-bottom: 22px; }
.rv-section { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rv-head {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 11px 14px; background: var(--soft);
    font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 15px;
}
.rv-edit {
    display: inline-flex; align-items: center; gap: 5px;
    border: 0; background: #fff; color: var(--magenta); font-weight: 600; font-size: 12.5px;
    padding: 6px 10px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line);
}
.rv-edit .ico { width: 14px; height: 14px; }
.rv-edit:hover { border-color: var(--pink); }
.rv-body { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rv-body { grid-template-columns: 1fr 1fr; } }
.rv-item { padding: 10px 14px; border-top: 1px solid var(--line); min-width: 0; }
.rv-item.wide { grid-column: 1 / -1; }
.rv-item dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.rv-item dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; white-space: pre-line; }
.rv-item dd.empty { color: #B2AAC6; font-style: italic; }
.rv-sign { max-height: 70px; width: auto; background: #fff; }

/* ---------- Nav ---------- */
.form-nav {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; align-items: center; gap: 10px;
    margin: 8px -16px 0; padding: 14px 16px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
@media (min-width: 640px) { .form-nav { margin: 12px -34px 0; padding: 18px 34px; } }
.nav-meta { flex: 1; text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 20px;
    border-radius: 14px; border: 0; cursor: pointer;
    font-weight: 700; font-size: 15px;
    transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
    white-space: nowrap;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: scale(.98); }
.btn-primary {
    color: #fff;
    background: var(--grad); background-size: 160% 100%; background-position: 0 0;
    box-shadow: 0 12px 26px -12px rgba(229, 19, 143, .7);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 30px -12px rgba(112, 52, 147, .7); }
.btn-primary:focus-visible, .btn-ghost:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-ghost { background: var(--soft); color: var(--ink); }
.btn-ghost:hover { background: #EFE7F6; }
.btn[disabled] { opacity: .6; cursor: progress; }
.js #submitBtn { display: none; }
.js .form-nav.last #nextBtn { display: none; }
.js .form-nav.last #submitBtn { display: inline-flex; }
.js .form-nav.first #prevBtn { visibility: hidden; }
html:not(.js) #nextBtn, html:not(.js) #prevBtn, html:not(.js) .nav-meta { display: none; }
@media (max-width: 420px) {
    .btn { padding: 0 16px; }
    #prevBtn span { display: none; }
    .nav-meta { font-size: 12px; }
}
/* Small phones: the stepper card already shows "Step x of y", so the nav keeps only the buttons */
@media (max-width: 400px) {
    .nav-meta { visibility: hidden; }
    .form-nav .btn-primary { flex: 1; max-width: 220px; }
}

/* ---------- Small-phone tightening ---------- */
@media (max-width: 420px) {
    .form-card { padding: 20px 14px 0; }
    .form-nav { margin-left: -14px; margin-right: -14px; padding: 12px 14px; }
    .type-body { padding: 13px; gap: 12px; }
    .type-icon { width: 44px; height: 44px; border-radius: 12px; }
    .type-icon .ico { width: 24px; height: 24px; }
    .includes { padding: 12px; }
    .amenities { gap: 8px; }
    .calc { padding: 4px 14px; }
    .calc-row.total b { font-size: 20px; }
    #fascia_name { font-size: 13.5px; letter-spacing: .02em; padding-left: 14px; }
    .input-wrap:has(#fascia_name) > .ico { display: none; }
    .rules li { padding: 12px; }
    .declaration { padding: 14px; }
    .sign-pad { height: 160px; }
    .sign-pad { background: repeating-linear-gradient(transparent 0 119px, #E3DCEC 119px 120px), #fff; }
}

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- Footer ---------- */
.site-foot { padding: 24px 0 36px; color: var(--muted); font-size: 13px; text-align: center; }
.site-foot p { margin: 2px 0; overflow-wrap: anywhere; }
.site-foot a { color: var(--magenta); font-weight: 600; text-decoration: none; }

/* ---------- Success page ---------- */
.success-wrap { padding: 40px 0 60px; display: grid; place-items: center; }
.success-card { max-width: 620px; width: 100%; padding: 36px 22px; text-align: center; position: relative; overflow: hidden; }
.success-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad); }
.success-icon {
    width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #12A454, var(--green));
    box-shadow: 0 0 0 10px rgba(14, 129, 65, .1), 0 18px 40px -16px rgba(14, 129, 65, .7);
    animation: pop .6s cubic-bezier(.2, .9, .3, 1.4) both;
}
.success-icon .ico { width: 40px; height: 40px; stroke-width: 2.6; }
.success-card h1 { font-family: var(--font-head); color: var(--ink); font-size: clamp(26px, 5vw, 34px); margin: 0 0 8px; line-height: 1.15; }
.success-card p { color: var(--muted); margin: 0 auto 20px; max-width: 460px; }
.ref-box {
    display: inline-flex; flex-direction: column; gap: 2px;
    padding: 14px 22px; border-radius: 14px;
    background: var(--soft); border: 1px dashed rgba(112, 52, 147, .35); margin-bottom: 22px;
}
.ref-box small { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; color: var(--muted); }
.ref-box b { font-family: var(--font-head); font-size: 22px; letter-spacing: .04em; }
.success-meta { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.success-meta li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.success-meta li:last-child { border-bottom: 0; }
.success-meta span { color: var(--muted); }
.success-meta b { color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.success-actions .btn { text-decoration: none; }
@media (min-width: 640px) { .success-card { padding: 44px 44px; } }
.ref-box b { white-space: nowrap; }
.success-meta span { white-space: nowrap; }
@media (max-width: 420px) {
    .success-card { padding: 28px 16px; }
    .ref-box { display: flex; width: 100%; padding: 12px; }
    .ref-box b { font-size: 17px; letter-spacing: .02em; }
    .success-meta li { flex-direction: column; gap: 2px; }
    .success-meta span { font-size: 12px; }
    .success-meta b { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

@media print {
    .bg-decor, .stepper, .form-nav, .site-foot, .success-actions { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; }
}
