:root {
    --bg-deep: #0e0a1a;
    /* Dark base background */
    --bg-deep-2: #161026;
    /* Dark gradient background */
    --panel: #2A1E4D;
    /* Dark violet panel (from palette) */
    --panel-2: #34265e;
    /* Lighter panel variation */
    --panel-border: rgba(230, 217, 255, 0.1);
    /* Light lavender transparent border */

    --accent-primary: #7C3AED;
    /* Vibrant purple (from palette) */
    --accent-medium: #A78BFA;
    /* Medium violet (from palette) */
    --accent-light: #C4B5FD;
    /* Light violet (from palette) */
    --accent-soft: rgba(124, 58, 237, 0.15);
    /* Vibrant purple soft overlay */

    --text-hi: #E6D9FF;
    /* Very light lavender (from palette) */
    --text-mid: #C4B5FD;
    /* Light violet text (from palette) */
    --text-low: #8C7EAD;
    /* Muted lavender text */

    --good: #8be6b8;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 9px;

    --whatsapp-green: #25d366;
    --whatsapp-green-soft: rgba(37, 211, 102, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 15% -10%, rgba(124, 90, 237, 0.25), transparent 45%),
        radial-gradient(circle at 110% 10%, rgba(196, 181, 253, 0.14), transparent 40%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
    color: var(--text-hi);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 24px 90px;
}

/* ---------- Header ---------- */
header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

.eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    letter-spacing: .16em;
    font-weight: 600;
    color: var(--accent-medium);
    text-transform: uppercase;
}

.header-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.header-logo-img {
    margin-left: -70px;
    height: 230px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo span {
    color: var(--accent-primary);
}

.tagline {
    color: var(--text-mid);
    font-size: 15px;
    max-width: 560px;
    line-height: 1.5;
    margin-top: 4px;
    margin-bottom: 8px;
}

/* ---------- Human Clarification Notice ---------- */
.human-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(42, 30, 77, 0.6), rgba(124, 90, 237, 0.08));
    border: 1px solid rgba(167, 139, 250, 0.18);
    margin-bottom: 28px;
    line-height: 1.5;
}

.human-notice .notice-icon {
    font-size: 20px;
    flex-shrink: 0;
    background: var(--accent-soft);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(124, 90, 237, 0.25);
}

.human-notice .notice-text {
    font-size: 13.5px;
    color: var(--text-mid);
}

.human-notice .notice-text strong {
    color: var(--text-hi);
    display: block;
    margin-bottom: 4px;
    font-size: 14.5px;
}

.copy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(230, 217, 255, 0.06);
    border: 1px solid rgba(230, 217, 255, 0.12);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 13px;
    color: var(--text-hi);
    cursor: pointer;
    position: relative;
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
    user-select: none;
    vertical-align: middle;
    margin: 2px 2px;
}

.copy-badge:hover {
    background: rgba(230, 217, 255, 0.12);
    border-color: var(--accent-medium);
}

.copy-badge:active {
    transform: scale(0.96);
}

.copy-badge svg {
    width: 12px;
    height: 12px;
    fill: var(--text-mid);
    transition: fill .15s ease;
}

.copy-badge:hover svg {
    fill: var(--text-hi);
}

.copy-badge .tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-deep);
    color: var(--text-hi);
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--panel-border);
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s ease, visibility .15s ease;
    z-index: 10;
    pointer-events: none;
}

.copy-badge:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.copy-badge.copied {
    border-color: var(--good);
    background: rgba(139, 230, 184, 0.1);
}

.copy-badge.copied svg {
    fill: var(--good);
}

/* ---------- Progress ---------- */
.steps-bar {
    display: flex;
    gap: 8px;
    margin: 28px 0 34px;
}

.step-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    transition: border-color .25s ease, background .25s ease;
}

.step-pill.active {
    border-color: var(--accent-primary);
    background: var(--panel-2);
}

.step-pill.done {
    border-color: rgba(139, 230, 184, 0.4);
}

.step-num {
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-low);
}

.step-pill.active .step-num {
    background: var(--accent-primary);
    color: #fff;
}

.step-pill.done .step-num {
    background: var(--good);
    color: #0e2018;
}

.step-label {
    font-size: 13px;
    color: var(--text-low);
    font-weight: 600;
}

.step-pill.active .step-label {
    color: var(--text-hi);
}

.step-pill.done .step-label {
    color: var(--text-mid);
}

/* ---------- Layout ---------- */
.layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 26px;
    align-items: start;
}

@media (max-width:880px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .panel {
        padding: 22px;
    }

    .side {
        padding: 20px;
        position: static;
    }
}

.panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.panel h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    margin: 0 0 6px;
}

.panel .sub {
    color: var(--text-mid);
    font-size: 14px;
    margin: 0 0 22px;
    line-height: 1.5;
}

/* ---------- Step 1: project type cards ---------- */
.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width:600px) {
    .type-grid {
        grid-template-columns: 1fr;
    }
}

.type-card {
    text-align: left;
    cursor: pointer;
    background: var(--panel-2);
    border: 1.5px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 18px;
    color: var(--text-hi);
    transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.type-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 90, 237, 0.4);
}

.type-card.selected {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary) inset;
}

.type-card .t-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 16px;
}

.type-card .t-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-medium));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
}

.type-card .t-price-crc {
    font-size: 13.5px;
    color: var(--text-mid) !important;
    font-weight: 500;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    margin-left: 2px;
}

.type-card .t-desc {
    font-size: 12.5px;
    color: var(--text-mid);
    line-height: 1.5;
}

/* ---------- Step 2: extras ---------- */
.extra-group {
    margin-bottom: 20px;
}

.extra-group-title {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-low);
    font-weight: 600;
    margin-bottom: 10px;
}

.extra-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    border: 1px solid transparent;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.extra-row:hover {
    border-color: var(--panel-border);
    background: rgba(255, 255, 255, 0.02);
}

.extra-row.checked {
    border-color: var(--accent-primary);
}

.extra-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox {
    width: 18px;
    height: 18px;
    flex: none;
    border-radius: 5px;
    border: 1.5px solid var(--text-low);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease;
}

.extra-row.checked .checkbox {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox svg {
    width: 11px;
    height: 11px;
    opacity: 0;
    transition: opacity .1s ease;
}

.extra-row.checked .checkbox svg {
    opacity: 1;
}

.extra-label {
    font-size: 13.5px;
    color: var(--text-hi);
}

.extra-price {
    font-size: 13px;
    color: var(--text-mid);
    font-weight: 600;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
}

.base-included {
    background: var(--accent-soft);
    border: 1px solid rgba(124, 90, 237, 0.3);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 22px;
}

.base-included strong {
    color: var(--text-hi);
}

/* ---------- Step 3: summary ---------- */
.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--panel-border);
    font-size: 13.5px;
}

.summary-line:last-child {
    border-bottom: none;
}

.summary-line .lbl {
    color: var(--text-mid);
}

.summary-line .val {
    color: var(--text-hi);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.val-crc {
    color: var(--text-low);
    font-size: 12.5px;
    font-weight: 500;
    margin-left: 6px;
}

.total-box {
    margin-top: 18px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(124, 90, 237, 0.18), rgba(196, 181, 253, 0.08));
    border: 1px solid rgba(124, 90, 237, 0.35);
}

.total-box .tb-label {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.total-box .tb-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-hi);
}

.total-box .tb-amount-crc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-mid);
    margin-top: 4px;
}

.total-box .tb-note {
    font-size: 12px;
    color: var(--text-mid);
    margin-top: 8px;
    line-height: 1.5;
}

.contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 6px;
}

@media (max-width:600px) {
    .contact-fields {
        grid-template-columns: 1fr;
    }
}

.field label {
    display: block;
    font-size: 12px;
    color: var(--text-low);
    margin-bottom: 6px;
    font-weight: 600;
}

.field input {
    width: 100%;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-deep);
    border: 1px solid var(--panel-border);
    color: var(--text-hi);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color .15s ease;
}

.field input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.field.full {
    grid-column: 1/-1;
}

/* ---------- Buttons & Action Layout ---------- */
.action-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 999px;
    padding: 13px 22px;
    cursor: pointer;
    transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease, opacity .12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-medium));
    color: #160f2b;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #8b5cf6, #c4b5fd);
}

.btn-ghost {
    background: transparent;
    color: var(--text-mid);
    border: 1px solid var(--panel-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.btn-primary:disabled {
    background: var(--panel-2);
    color: var(--text-low);
}

/* Organized button actions for final step */
.action-groups {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
    width: 100%;
}

.submission-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.navigation-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.btn-whatsapp {
    background: var(--whatsapp-green-soft);
    color: var(--whatsapp-green);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.5);
}

.btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .wrap {
        padding: 16px 12px 40px;
    }

    header {
        align-items: center;
        text-align: center;
        margin-bottom: 16px;
        gap: 6px;
    }

    .header-brand {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-bottom: 4px;
    }

    .header-logo-img {
        margin-left: 0;
        height: 60px;
        width: auto;
    }

    .logo {
        font-size: 26px;
    }

    .tagline {
        font-size: 13.5px;
        margin-top: 6px;
        margin-bottom: 10px;
    }

    /* Message/chat icon at the top in the middle of the container */
    .human-notice {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 12px;
        gap: 8px;
        margin-bottom: 18px;
    }

    /* Small step pills for mobile screen sizes */
    .steps-bar {
        gap: 6px;
        margin: 12px 0 16px;
    }

    .step-pill {
        padding: 8px 4px;
        gap: 6px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-radius: var(--radius-sm);
    }

    .step-num {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .step-label {
        font-size: 10px;
        line-height: 1.2;
        word-break: break-word;
    }

    .panel {
        padding: 16px 12px;
    }

    .side {
        padding: 16px 12px;
    }

    .type-grid {
        gap: 10px;
    }

    .type-card {
        padding: 14px;
    }

    .type-card .t-name {
        font-size: 15px;
    }

    .type-card .t-desc {
        font-size: 12px;
    }

    .extra-row {
        padding: 10px 12px;
        margin-bottom: 6px;
    }

    .base-included {
        padding: 10px 12px;
        margin-bottom: 16px;
        font-size: 12px;
    }

    .total-box {
        padding: 14px;
        margin-top: 14px;
    }

    .total-box .tb-amount {
        font-size: 26px;
    }

    .total-box .tb-amount-crc {
        font-size: 17px;
    }

    .submission-actions {
        grid-template-columns: 1fr;
    }

    .navigation-actions {
        flex-direction: column;
        gap: 8px;
    }

    .navigation-actions .btn {
        width: 100%;
    }

    footer {
        margin-top: 24px;
        gap: 10px;
    }
}

/* ---------- Sticky side summary ---------- */
.side {
    position: sticky;
    top: 24px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.side h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    margin: 0 0 4px;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.side .side-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 38px;
    font-weight: 700;
    margin: 6px 0 2px;
    transition: opacity .15s ease;
}

.side-price-crc {
    font-size: 16px;
    color: var(--text-mid);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.01em;
}

.side .side-price .cur {
    font-size: 20px;
    color: var(--text-mid);
    font-weight: 600;
}

.side .side-sub {
    font-size: 12px;
    color: var(--text-low);
    margin-bottom: 18px;
}

.side-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
}

.side-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-mid);
    border-bottom: 1px dashed var(--panel-border);
    padding-bottom: 6px;
}

.side-list li span.p {
    color: var(--text-hi);
    font-weight: 600;
    white-space: nowrap;
}

.side-empty {
    font-size: 12.5px;
    color: var(--text-low);
    font-style: italic;
}

.side-note {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--panel-border);
    font-size: 11.5px;
    color: var(--text-low);
    line-height: 1.6;
}

/* ---------- Footer info ---------- */
footer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footnote {
    text-align: center;
    color: var(--text-low);
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

.footnote b {
    color: var(--text-mid);
}

.footer-signature {
    font-size: 13px;
    color: var(--text-low);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    letter-spacing: 0.02em;
}

.footer-signature .credit-text {
    opacity: 0.8;
}

.footer-signature a.credit-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-hi);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-signature a.credit-link:hover {
    transform: translateY(-0.5px);
    color: #ffffff;
}

.footer-signature a.credit-link .purple-code {
    color: var(--accent-primary);
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}