* {
    box-sizing: border-box;
}

.wiz-page {
    background: #050505;
    min-height: 100vh;
    padding: 48px 0 80px;
    font-family: 'DM Sans', sans-serif;
}

@media (max-width: 576px) {
    .wiz-page {
        padding: 24px 0 60px;
    }
}

/* ===== STEP INDICATOR ===== */
.step-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 44px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 12px 8px;
    scrollbar-width: none;
}

.step-bar::-webkit-scrollbar {
    display: none;
}

@media (max-width: 576px) {
    .step-bar {
        margin-bottom: 28px;
        justify-content: flex-start;
    }
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.813em !important;
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: #111;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

@media (max-width: 576px) {
    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.75em !important;
    }
}

.step-circle.active {
    border-color: #00b4ff;
    background: rgba(0, 180, 255, 0.12);
    color: #00b4ff;
    box-shadow: 0 0 0 4px rgba(0, 180, 255, 0.1);
}

.step-circle.done {
    border-color: #00ffa3;
    background: rgba(0, 255, 163, 0.1);
    color: #00ffa3;
}

.step-circle.done::after {
    content: '✓';
    font-size: 0.875em !important;
}

.step-label {
    font-size: 0.688em !important;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 6px;
    white-space: nowrap;
    transition: color 0.3s;
}

@media (max-width: 576px) {
    .step-label {
        font-size: 0.6em !important;
    }
}

.step-item.active .step-label {
    color: #00b4ff;
}

.step-item.done .step-label {
    color: #00ffa3;
}

.step-line {
    flex: 1;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.08);
    max-width: 80px;
    min-width: 16px;
    margin-bottom: 22px;
    transition: background 0.4s;
}

.step-line.done {
    background: #00ffa3;
}

/* ===== PANEL ===== */
.wiz-panel {
    background: #0e0e0e;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 32px 36px;
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    display: none;
}

.wiz-panel.active {
    display: block;
    animation: fadeUp 0.3s ease;
}

@media (max-width: 768px) {
    .wiz-panel {
        padding: 24px 20px;
        border-radius: 14px;
    }
}

@media (max-width: 576px) {
    .wiz-panel {
        padding: 20px 16px;
        border-radius: 12px;
    }
}

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

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

.panel-title {
    font-size: 1.375em !important;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

@media (max-width: 576px) {
    .panel-title {
        font-size: 1.125em !important;
    }
}

.panel-sub {
    font-size: 0.813em !important;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 28px;
}

/* ===== FORM FIELDS ===== */
.field-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

@media (max-width: 992px) {
    .field-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .field-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {

    .field-group>[style*="grid-column: span 2"],
    .field-group>[style*="grid-column:span 2"],
    .field-group>[style*="grid-column: span 3"],
    .field-group>[style*="grid-column:span 3"] {
        grid-column: span 2 !important;
    }
}

@media (max-width: 576px) {
    .field-group>[style*="grid-column"] {
        grid-column: span 1 !important;
    }
}

.field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 0.75em !important;
    color: rgba(255, 255, 255, 0.4);
}

.wiz-input,
.wiz-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.875em !important;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.wiz-input:focus,
.wiz-select:focus {
    border-color: #00b4ff;
}

.wiz-input::placeholder {
    color: rgba(255, 255, 255, 0.18);
}

.wiz-select option {
    background: #111;
    color: #fff;
}

.wiz-error {
    font-size: 0.75em !important;
    color: #ff5050;
    margin-top: 4px;
    display: none;
}

.wiz-error.show {
    display: block;
}

/* ===== PROFILE TYPE SWITCHER ===== */
.type-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.type-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border: none;
    outline: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875em !important;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    text-align: center;
    border-bottom: 2px solid transparent;
}

.type-btn:focus {
    outline: none;
    box-shadow: none;
}

.type-btn.selected {
    color: #00b4ff;
    border-bottom: 2px solid #00b4ff;
}

/* ===== BASKET GRID ===== */
.basket-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .basket-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.basket-card {
    background: #141414;
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
}

.basket-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.basket-card.selected {
    border-color: #00b4ff;
    background: rgba(0, 180, 255, 0.06);
}

.basket-card .check-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00b4ff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.6875em !important;
    color: #000;
    font-weight: 700;
}

.basket-card.selected .check-mark {
    display: flex;
}

.bc-code {
    font-size: 0.625em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00b4ff;
    margin-bottom: 6px;
}

.bc-name {
    font-size: 0.9375em !important;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.bc-desc {
    font-size: 0.75em !important;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    line-height: 1.5;
}

.bc-stat {
    font-size: 0.75em !important;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 3px;
}

.bc-stat span {
    color: #fff;
    font-weight: 500;
}

.bc-stat .green {
    color: #00ffa3;
}

.risk-pill {
    display: inline-block;
    font-size: 0.6875em !important;
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 500;
    margin-top: 8px;
}

.risk-low {
    background: rgba(0, 255, 163, 0.12);
    color: #00ffa3;
}

.risk-medium {
    background: rgba(255, 208, 96, 0.12);
    color: #ffd060;
}

.risk-high {
    background: rgba(255, 80, 80, 0.12);
    color: #ff5050;
}

/* ===== COUPON ===== */
.coupon-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .coupon-row {
        flex-direction: column;
    }

    .coupon-row .apply-btn {
        width: 100%;
    }
}

.coupon-input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.875em !important;
    font-weight: 500;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.coupon-input::placeholder {
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

.coupon-input:focus {
    border-color: #ffd060;
}

.coupon-input.ok {
    border-color: #00ffa3;
}

.coupon-input.err {
    border-color: #ff5050;
}

.coupon-msg {
    font-size: 0.8125em !important;
    margin-top: 8px;
}

.coupon-msg.ok {
    color: #00ffa3;
}

.coupon-msg.err {
    color: #ff5050;
}

.apply-btn {
    padding: 10px 22px;
    background: #ffd060;
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 0.8125em !important;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.apply-btn:hover {
    opacity: 0.85;
}

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

/* ===== QUIZ ===== */
.quiz-q {
    margin-bottom: 28px;
}

.quiz-q-text {
    font-size: 0.9375em !important;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.5;
    display: flex;
    gap: 8px;
}

.quiz-q-num {
    color: #00b4ff;
    min-width: 28px;
    font-weight: 600;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

@media (max-width: 520px) {
    .quiz-options {
        grid-template-columns: 1fr;
    }
}

.quiz-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 0.8125em !important;
    color: rgba(255, 255, 255, 0.7);
}

.quiz-opt:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.quiz-opt.selected {
    border-color: #00b4ff;
    background: rgba(0, 180, 255, 0.08);
    color: #fff;
}

.quiz-opt.locked {
    pointer-events: none;
    opacity: 0.8;
}

.quiz-opt input[type=radio] {
    display: none;
}

.opt-letter {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875em !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: all 0.2s;
}

.quiz-opt.selected .opt-letter {
    background: #00b4ff;
    border-color: #00b4ff;
    color: #000;
}

/* ===== BUTTONS ===== */
.btn-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .btn-row {
        flex-direction: column-reverse;
    }

    .btn-row .btn-back,
    .btn-row .btn-next,
    .btn-row .btn-green {
        width: 100%;
        justify-content: center;
    }
}

.btn-back {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    font-size: 0.875em !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, color 0.2s;
}

.btn-back:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-next {
    padding: 12px 28px;
    background: linear-gradient(135deg, #00b4ff, #0070cc);
    border: none;
    border-radius: 11px;
    font-size: 0.875em !important;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.15s;
}

.btn-next:hover:not(:disabled) {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn-next:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.btn-green {
    padding: 12px 28px;
    background: linear-gradient(135deg, #00ffa3, #00cc7a);
    border: none;
    border-radius: 11px;
    font-size: 0.875em !important;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: opacity 0.2s;
}

.btn-green:hover {
    opacity: 0.88;
}

/* ===== ADD MEMBER BUTTON ===== */
.btn-add-member {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 180, 255, 0.08);
    border: 1px solid rgba(0, 180, 255, 0.25);
    border-radius: 8px;
    color: #00b4ff;
    font-size: 0.8125em !important;
    font-weight: 600;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.2s;
}

.btn-add-member:hover {
    background: rgba(0, 180, 255, 0.14);
}

.btn-remove-member {
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: 8px;
    color: #ff5050;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875em !important;
    margin-top: 22px;
    flex-shrink: 0;
    align-self: flex-start;
    transition: background 0.2s;
}

.btn-remove-member:hover {
    background: rgba(255, 80, 80, 0.18);
}

/* ===== MUTUAL SUCCESS ===== */
.mutual-success {
    text-align: center;
    padding: 40px 20px;
}

.mutual-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 255, 163, 0.1);
    border: 1.5px solid rgba(0, 255, 163, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em !important;
    margin: 0 auto 20px;
}

.mutual-title {
    font-size: 1.375em !important;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.mutual-sub {
    font-size: 0.875em !important;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    line-height: 1.6;
}

.email-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.8125em !important;
    color: #00b4ff;
    margin-bottom: 28px;
}

/* ===== PROGRESS ===== */
.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.75em !important;
    color: rgba(255, 255, 255, 0.3);
}

.quiz-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    margin-bottom: 28px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b4ff, #00ffa3);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 20px 0;
}

/* ===== FAMILY SECTION ===== */
.family-section {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.family-member-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: opacity 0.15s, transform 0.15s;
}

@media (max-width: 576px) {
    .family-member-row {
        grid-template-columns: 1fr;
    }

    .btn-remove-member {
        margin-top: 0;
        width: 100%;
        height: auto;
        padding: 8px;
        border-radius: 6px;
    }
}

.member-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.head-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
    flex-wrap: wrap;
}

.head-toggle input[type="radio"] {
    accent-color: #3b82f6;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.head-badge {
    display: inline-block;
    background: #1d4ed8;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 99px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ===== CONTAINER FIX ===== */
.container-wiz {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}
