﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --mira-ink: #0f172a;
    --mira-ink-soft: #334155;
    --mira-accent: #0ea5e9;
    --mira-accent-strong: #0284c7;
    --mira-lime: #a3e635;
    --mira-surface: #ffffff;
    --mira-surface-soft: #f8fafc;
    --mira-border: #dbeafe;
    --mira-danger: #dc2626;
    --mira-success: #16a34a;
}

.wizard-shell {
    margin: 28px auto;
    max-width: 1120px;
    background: linear-gradient(155deg, rgba(255,255,255,0.95), rgba(240,249,255,0.96));
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(2, 132, 199, 0.15);
    overflow: hidden;
    border: 1px solid rgba(186, 230, 253, 0.8);
    font-family: "Manrope", "Segoe UI", sans-serif;
    position: relative;
    isolation: isolate;
}

    .wizard-shell:after {
        content: "";
        position: absolute;
        right: -70px;
        top: -58px;
        width: 420px;
        height: 420px;
        background-image: url('@Url.Content("~/Images/mira-logo.png")');
        background-repeat: no-repeat;
        background-size: contain;
        opacity: 0.06;
        pointer-events: none;
        z-index: 0;
        transform: rotate(-10deg);
    }

.wizard-head {
    padding: 20px 24px 14px;
    color: var(--mira-ink);
    background: #ffffff;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1;
}

    .wizard-head:before,
    .wizard-head:after {
        content: none;
    }

.form-header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.brand-block {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 86px;
    height: auto;
}

.form-meta {
    text-align: right;
    color: #111827;
}

.form-meta-number {
    margin: 0;
    font-size: 24px;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.form-meta-version {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.form-name-inline {
    text-align: center;
}

    .form-name-inline h1 {
        margin: 0;
        padding-top: 40px;
        font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
        font-size: 44px;
        line-height: 1.06;
        letter-spacing: .2px;
        font-weight: 700;
        color: #ea580c;
    }

.wizard-title {
    display: none;
}

.banner-top-right {
    z-index: 0 !important;
}

.instruction-box {
    border: 3px solid #f97316;
    border-radius: 12px;
    padding: 14px 18px;
    background: #fff;
}

.instruction-list {
    margin: 0;
    padding-left: 18px;
}

    .instruction-list li {
        font-size: 16px;
        line-height: 1.52;
        color: #1f2937;
        margin-bottom: 6px;
    }

        .instruction-list li:last-child {
            margin-bottom: 0;
        }

        .instruction-list li::marker {
            color: #111827;
            font-size: 20px;
        }

.wizard-content {
    padding: 24px;
    background: var(--mira-surface);
    position: relative;
    z-index: 1;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 8px 14px;
    background: #fef3c7;
    color: #92400e;
    margin-bottom: 16px;
}

    .status-chip.verified {
        background: #dcfce7;
        color: #166534;
    }

.card-soft {
    border: 1px solid var(--mira-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    padding: 20px;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 0px;
}

.eligibility-question {
    margin-bottom: 18px;
    padding-bottom: 4px;
}

    .eligibility-question > label {
        display: block;
        margin-bottom: 8px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 800;
    }

    .eligibility-question .section-helper {
        margin-top: 0;
        margin-bottom: 12px;
    }

    .eligibility-question .eligibility-note {
        margin-top: 12px;
        margin-bottom: 4px;
        color: #64748b;
        font-size: 12px;
    }

    .form-group label {
        font-size: 13px;
        color: #1e293b;
        font-weight: 700;
    }

.form-control,
.form-control:focus,
textarea.form-control {
    height: 42px;
    border-radius: 10px;
    box-shadow: none;
    border: 1px solid #bfdbfe;
    color: var(--mira-ink);
    font-size: 14px;
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.section-title {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 800;
    color: #0c4a6e;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.section-helper {
    margin-top: -6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--mira-ink-soft);
}

.wizard-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 6px 8px 22px;
    padding-top: 2px;
}

    .wizard-progress:before {
        content: "";
        position: absolute;
        left: 8%;
        right: 8%;
        top: 14px;
        height: 4px;
        background: #bfc4cc;
        z-index: 0;
    }

.wizard-step-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    border: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    transition: .25s ease;
    background: transparent;
    cursor: not-allowed;
    position: relative;
    z-index: 1;
    min-width: 90px;
}

    .wizard-step-pill:before {
        content: "";
        position: absolute;
        top: 14px;
        left: -50%;
        width: 100%;
        height: 4px;
        background: transparent;
        transition: background-color .25s ease;
        z-index: -1;
    }

    .wizard-step-pill:first-child:before {
        content: none;
    }

    .wizard-step-pill.can-go-back {
        cursor: pointer;
    }

        .wizard-step-pill.can-go-back:hover .step-label {
            color: #334155;
        }

        .wizard-step-pill.can-go-back:hover .bubble {
            border-color: #7aa3ee;
        }

    .wizard-step-pill.active {
        color: #0c4a6e;
    }

    .wizard-step-pill.done {
        color: #64748b;
    }

        .wizard-step-pill.done:before,
        .wizard-step-pill.active:before {
            background: transparent;
        }

    .wizard-step-pill .bubble {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid #bfc4cc;
        background: #fff;
        color: #64748b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 800;
        transition: .25s ease;
    }

    .wizard-step-pill .step-label {
        text-align: center;
        line-height: 1.2;
        color: #a1a1aa;
        font-weight: 700;
    }

    .wizard-step-pill.done .bubble {
        border-color: #5b8fe8;
        background: #eef4ff;
        color: #1d4ed8;
    }

    .wizard-step-pill.completed .bubble {
        border-color: #16a34a;
        background: #dcfce7;
        color: #15803d;
    }

    .wizard-step-pill.completed .step-label {
        color: #15803d;
    }

    .wizard-step-pill.completed.can-go-back:hover .bubble {
        border-color: #15803d;
    }

    .wizard-step-pill.active .bubble {
        border-color: #5b8fe8;
        background: #fff;
        color: #1d4ed8;
        transform: scale(1.07);
        box-shadow: 0 0 0 5px rgba(91, 143, 232, 0.18);
    }

    .wizard-step-pill.active .step-label {
        color: #0f172a;
        font-weight: 800;
    }

    .wizard-step-pill.active.completed .bubble {
        border-color: #16a34a;
        background: #dcfce7;
        color: #15803d;
        box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.18);
    }

    .wizard-step-pill.active.completed .step-label {
        color: #15803d;
    }

    .wizard-step-pill.done .step-label {
        color: #334155;
    }

.wizard-step {
    display: none;
    animation: rise .25s ease;
}

    .wizard-step.active {
        display: block;
    }

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.choice-item {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

    .choice-item input {
        margin-right: 7px;
    }

.activity-card,
.contact-card {
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
}

.activity-head,
.contact-head {
    background: #ecfeff;
    border-bottom: 1px solid #bae6fd;
    padding: 10px 14px;
    font-weight: 800;
    color: #0c4a6e;
    font-size: 14px;
}

.activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.remove-activity-btn {
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #b91c1c;
    background: #fff;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.activity-body,
.contact-body {
    padding: 14px;
    background: #fff;
}

.tag-button {
    border: 1px dashed #0284c7;
    border-radius: 999px;
    color: #0369a1;
    background: #f0f9ff;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 12px;
}

.btn-wizard {
    height: 42px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: .2px;
    border: 0;
    padding: 0 18px;
}

.action-col {
    display: flex;
    align-items: flex-end;
}

.btn-primary-wizard {
    background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 100%);
    color: #fff;
}

.btn-secondary-wizard {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-success-wizard {
    background: linear-gradient(90deg, #15803d 0%, #22c55e 100%);
    color: #fff;
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.otp-box {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    align-items: end;
}

    .otp-box .form-group {
        margin-bottom: 0;
    }

.helper-text {
    font-size: 12px;
    color: #64748b;
}

.error-text {
    color: var(--mira-danger);
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.inline-note {
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
}

.square-radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

    .square-radio-group label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        cursor: pointer;
    }

    .square-radio-group input[type="radio"] {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #94a3b8;
        border-radius: 4px;
        background: #fff;
        margin: 0;
        position: relative;
        cursor: pointer;
        transition: .2s ease;
    }

        .square-radio-group input[type="radio"]:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
            border-color: #0ea5e9;
        }

        .square-radio-group input[type="radio"]:checked {
            border-color: #0284c7;
            background: #e0f2fe;
        }

            .square-radio-group input[type="radio"]:checked::after {
                content: "";
                position: absolute;
                left: 4px;
                top: 1px;
                width: 5px;
                height: 9px;
                border: solid #0369a1;
                border-width: 0 2px 2px 0;
                transform: rotate(45deg);
            }

.messaging-app-list {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.messaging-app-row {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 10px;
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 10px;
}

.messaging-app-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    cursor: pointer;
}

    .messaging-app-toggle input[type="checkbox"] {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #94a3b8;
        border-radius: 4px;
        background: #fff;
        margin: 0;
        position: relative;
        transition: .2s ease;
    }

        .messaging-app-toggle input[type="checkbox"]:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
        }

        .messaging-app-toggle input[type="checkbox"]:checked {
            border-color: #0284c7;
            background: #e0f2fe;
        }

            .messaging-app-toggle input[type="checkbox"]:checked::after {
                content: "";
                position: absolute;
                left: 4px;
                top: 1px;
                width: 5px;
                height: 9px;
                border: solid #0369a1;
                border-width: 0 2px 2px 0;
                transform: rotate(45deg);
            }

.messaging-app-row .form-group {
    margin-bottom: 0;
}

.messaging-value:disabled {
    background: #eef2f7;
    color: #94a3b8;
}

@media (max-width: 767px) {
    .wizard-shell {
        margin: 12px;
        border-radius: 16px;
    }

    .wizard-head,
    .wizard-content {
        padding: 16px;
    }

    .form-header-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "logo meta"
            "name name";
        align-items: start;
        gap: 8px;
    }

    .brand-block {
        grid-area: logo;
    }

    .brand-logo {
        width: 58px;
    }

    .form-meta {
        grid-area: meta;
        text-align: right;
        padding-top: 2px;
    }

    .form-meta-number {
        font-size: 16px;
    }

    .form-meta-version {
        font-size: 10px;
    }

    .form-name-inline {
        grid-area: name;
        text-align: center;
        min-width: 0;
    }

        .form-name-inline h1 {
            padding-top: 0;
            font-size: 20px;
            line-height: 1.15;
            letter-spacing: 0;
        }

    .instruction-list li {
        font-size: 15px;
    }

    .messaging-app-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .wizard-progress {
        margin: 2px 0 20px;
        overflow-x: auto;
        padding-bottom: 6px;
        gap: 18px;
        justify-content: flex-start;
    }

        .wizard-progress:before {
            left: 20px;
            right: 20px;
            top: 14px;
        }

    .wizard-step-pill {
        min-width: 110px;
        flex: 0 0 110px;
    }

        .wizard-step-pill .step-label {
            font-size: 11px;
        }

    .otp-box {
        grid-template-columns: 1fr;
    }

    .wizard-footer {
        flex-direction: column;
        align-items: stretch;
    }
}
