/* assets/css/design-diagnosis.css */
.brand-diag-wrapper {
    --cream: #EFE5CF;
    --navy: #0B173D;
    --orange: #FF751F;
    --bg: #F5EFE3;
    --font: 'Manrope', sans-serif;
    font-family: var(--font);
    background: var(--bg);
    color: var(--navy);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

/* stripes */
.brand-diag-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(90deg, transparent, transparent calc(8.33% - 1px), rgba(11, 23, 61, 0.05) calc(8.33% - 1px), rgba(11, 23, 61, 0.05) 8.33%);
}

/* ══ SECTION LAYOUT ══ */
.brand-diag-wrapper .diag-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 80px 180px;
    gap: 48px;
    max-width: 100%;
    margin: 0 auto;
}

/* ══ LEFT COLUMN ══ */
.brand-diag-wrapper .diag-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.brand-diag-wrapper .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border: 1.5px solid rgba(11, 23, 61, 0.22);
    border-radius: 100px;
    padding: 7px 18px;
    background: rgba(239, 229, 207, 0.8);
    opacity: 0;
    animation: fadeUp .5s ease forwards .1s;
}

.brand-diag-wrapper .badge span {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--navy);
}

/* big animated title */
.brand-diag-wrapper .big-title {
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: .95;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0;
    animation: fadeUp .65s ease forwards .2s;
    margin: 0;
}

.brand-diag-wrapper .big-title .word-orange {
    color: var(--orange);
}

.brand-diag-wrapper .big-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: charIn .5s ease forwards;
}

.brand-diag-wrapper .diag-desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(11, 23, 61, 0.5);
    max-width: 360px;
    opacity: 0;
    animation: fadeUp .6s ease forwards .35s;
}

/* live counter */
.brand-diag-wrapper .left-stats {
    display: flex;
    gap: 28px;
    opacity: 0;
    animation: fadeUp .6s ease forwards .5s;
}

.brand-diag-wrapper .stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-diag-wrapper .stat-num {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.03em;
    color: var(--navy);
}

.brand-diag-wrapper .stat-num span {
    color: var(--orange);
}

.brand-diag-wrapper .stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(11, 23, 61, 0.4);
}

/* ══ RIGHT COLUMN — FORM BOX ══ */
.brand-diag-wrapper .diag-box {
    background: var(--cream);
    border: 1.5px solid rgba(11, 23, 61, 0.09);
    border-radius: 24px;
    padding: 40px 40px 36px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp .7s ease forwards .3s;
    box-shadow: 0 32px 80px rgba(11, 23, 61, 0.08);
}

/* top bar inside box */
.brand-diag-wrapper .box-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.brand-diag-wrapper .box-step-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(11, 23, 61, 0.35);
}

.brand-diag-wrapper .box-xp {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 5px;
}

.brand-diag-wrapper .xp-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    animation: blink 1.5s ease-in-out infinite;
}

/* progress */
.brand-diag-wrapper .prog-track {
    height: 3px;
    background: rgba(11, 23, 61, 0.1);
    border-radius: 100px;
    margin-bottom: 28px;
    overflow: hidden;
}

.brand-diag-wrapper .prog-fill {
    height: 100%;
    background: var(--orange);
    border-radius: 100px;
    transition: width .5s cubic-bezier(.76, 0, .24, 1);
}

/* ── step screens ── */
.brand-diag-wrapper .step-screen {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: stepIn .35s ease both;
}

.brand-diag-wrapper .step-screen.active {
    display: flex;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateX(16px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.brand-diag-wrapper .step-eyebrow {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 10px;
}

.brand-diag-wrapper .step-q {
    font-size: clamp(17px, 2.2vw, 22px);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 6px;
}

.brand-diag-wrapper .step-q em {
    font-style: italic;
    color: var(--orange);
}

.brand-diag-wrapper .step-hint {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(11, 23, 61, 0.42);
    margin-bottom: 20px;
}

/* options */
.brand-diag-wrapper .opts {
    display: grid;
    gap: 8px;
    flex: 1;
}

.brand-diag-wrapper .opts.col2 {
    grid-template-columns: 1fr 1fr;
}

.brand-diag-wrapper .opts.col1 {
    grid-template-columns: 1fr;
}

.brand-diag-wrapper .opt {
    background: rgba(255, 255, 255, 0.5);
    border: 1.5px solid rgba(11, 23, 61, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: border-color .2s, background .2s, transform .18s;
    user-select: none;
}

.brand-diag-wrapper .opt:hover {
    border-color: rgba(255, 117, 31, .4);
    background: rgba(255, 117, 31, .05);
    transform: translateY(-2px);
}

.brand-diag-wrapper .opt.selected {
    border-color: var(--orange);
    background: rgba(255, 117, 31, .08);
    transform: translateY(-2px);
}

.brand-diag-wrapper .opt.selected .opt-ico {
    background: var(--orange);
    color: #fff;
}

.brand-diag-wrapper .opt-ico {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(11, 23, 61, .07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: background .2s;
}

.brand-diag-wrapper .opt-lbl {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
    line-height: 1.3;
}

.brand-diag-wrapper .opt-sub {
    font-size: 10.5px;
    font-weight: 400;
    color: rgba(11, 23, 61, .42);
    line-height: 1.4;
}

/* text inputs */
.brand-diag-wrapper .inp-wrap {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.brand-diag-wrapper .diag-input {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    background: rgba(255, 255, 255, .6);
    border: 1.5px solid rgba(11, 23, 61, .12);
    border-radius: 12px;
    padding: 13px 16px;
    outline: none;
    width: 100%;
    transition: border-color .2s;
}

.brand-diag-wrapper .diag-input:focus {
    border-color: var(--orange);
    background: rgba(255, 255, 255, .9);
}

.brand-diag-wrapper .diag-input::placeholder {
    color: rgba(11, 23, 61, .28);
}

.brand-diag-wrapper textarea.diag-input {
    resize: none;
    min-height: 80px;
    line-height: 1.6;
}

/* budget */
.brand-diag-wrapper .budget-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.brand-diag-wrapper .budget-num {
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 900;
    letter-spacing: -.04em;
    color: var(--navy);
    text-align: center;
}

.brand-diag-wrapper .budget-num span {
    color: var(--orange);
}

.brand-diag-wrapper .budget-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(11, 23, 61, .12);
    border-radius: 100px;
    outline: none;
}

.brand-diag-wrapper .budget-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--orange);
    cursor: pointer;
    border: 3px solid var(--cream);
    box-shadow: 0 2px 8px rgba(255, 117, 31, .35);
}

.brand-diag-wrapper .budget-lbls {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    color: rgba(11, 23, 61, .32);
    letter-spacing: .04em;
    width: 100%;
}

/* nav */
.brand-diag-wrapper .box-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    flex-shrink: 0;
}

.brand-diag-wrapper .btn-back {
    font-family: var(--font);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(11, 23, 61, .35);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color .2s;
}

.brand-diag-wrapper .btn-back:hover {
    color: var(--navy);
}

.brand-diag-wrapper .btn-back:disabled {
    opacity: 0;
    pointer-events: none;
}

.brand-diag-wrapper .btn-next {
    font-family: var(--font);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy);
    border: none;
    padding: 13px 24px;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.brand-diag-wrapper .btn-next:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 117, 31, .3);
}

.brand-diag-wrapper .btn-next:hover svg {
    transform: translateX(3px);
}

.brand-diag-wrapper .btn-next svg {
    transition: transform .2s;
}

.brand-diag-wrapper .btn-next.orange {
    background: var(--orange);
}

.brand-diag-wrapper .btn-next.orange:hover {
    background: #e5650d;
}

.brand-diag-wrapper .btn-next:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* score bars */
.brand-diag-wrapper .score-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
}

.brand-diag-wrapper .score-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-diag-wrapper .score-lbl {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(11, 23, 61, .45);
    width: 110px;
    flex-shrink: 0;
}

.brand-diag-wrapper .score-track {
    flex: 1;
    height: 5px;
    background: rgba(11, 23, 61, .08);
    border-radius: 100px;
    overflow: hidden;
}

.brand-diag-wrapper .score-fill {
    height: 100%;
    border-radius: 100px;
    background: var(--orange);
    width: 0;
    transition: width 1.1s cubic-bezier(.76, 0, .24, 1);
}

.brand-diag-wrapper .score-val {
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
    width: 30px;
    text-align: right;
}

.brand-diag-wrapper .result-body {
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(11, 23, 61, .55);
    margin-top: 4px;
}

/* ══ CELEBRATION STEP (inside box) ══ */
.brand-diag-wrapper .confetti-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 24px;
}

.brand-diag-wrapper .celebrate-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
    animation: popIn .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.92)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.brand-diag-wrapper .celebrate-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 117, 31, .12);
    border: 2px solid rgba(255, 117, 31, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

.brand-diag-wrapper .celebrate-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.1;
    color: var(--navy);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.brand-diag-wrapper .celebrate-title em {
    color: var(--orange);
    font-style: italic;
}

.brand-diag-wrapper .celebrate-sub {
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(11, 23, 61, .5);
    margin-bottom: 16px;
}

.brand-diag-wrapper .celebrate-sub strong {
    font-weight: 700;
    color: var(--navy);
}

.brand-diag-wrapper .celebrate-steps {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
    margin-bottom: 18px;
    width: 100%;
}

.brand-diag-wrapper .cel-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, .5);
    border: 1.5px solid rgba(11, 23, 61, .08);
    border-radius: 10px;
    padding: 10px 14px;
}

.brand-diag-wrapper .cel-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-diag-wrapper .cel-step-text {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}

.brand-diag-wrapper .cel-step-sub {
    font-size: 10px;
    font-weight: 400;
    color: rgba(11, 23, 61, .45);
}

.brand-diag-wrapper .celebrate-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--orange);
    color: #fff;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.brand-diag-wrapper .celebrate-cta:hover {
    background: #e5650d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 117, 31, .3);
}

.brand-diag-wrapper .celebrate-cta:hover svg {
    transform: translateX(4px);
}

.brand-diag-wrapper .celebrate-cta svg {
    transition: transform .2s;
}

/* spam note */
.brand-diag-wrapper .spam-note {
    font-size: 10px;
    font-weight: 500;
    color: rgba(11, 23, 61, .32);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.brand-diag-wrapper .spam-note svg {
    flex-shrink: 0;
}

/* toast */
.brand-diag-wrapper .xp-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    background: var(--navy);
    color: #fff;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(-80px);
    opacity: 0;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .3s;
}

.brand-diag-wrapper .xp-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.brand-diag-wrapper .xp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

@keyframes charIn {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media(max-width:900px) {
    .brand-diag-wrapper .diag-section {
        grid-template-columns: 1fr;
        padding: 60px 24px;
        min-height: auto;
        gap: 32px;
    }

    .brand-diag-wrapper .opts.col2 {
        grid-template-columns: 1fr;
    }
}