/* ==========================================================================
   HASHI TECH — MULTI-STEP PROJECT WIZARD STYLES (wizard.css)
   ========================================================================== */

.wizard-page {
    padding: clamp(96px, 11vw, 130px) max(var(--section-gutter), calc((100% - var(--content-max)) / 2)) 80px;
    min-height: 80vh;
}

.wizard-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    max-width: var(--content-max);
    margin: 0 auto;
}

/* ── Left Wizard Column ─────────────────────────────────────────────────── */
.wizard-main {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--shadow-sm);
    position: relative;
}

/* Progress Tracker */
.wizard-progress-bar-wrap {
    margin-bottom: 32px;
}

.wizard-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.wizard-step-name {
    color: var(--ink);
    font-weight: 700;
}

.wizard-progress-track {
    width: 100%;
    height: 6px;
    background: color-mix(in srgb, var(--line) 80%, transparent);
    border-radius: 999px;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    width: 25%;
    background: var(--red);
    border-radius: 999px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step Container & Transition */
.wizard-step {
    display: none;
    animation: fadeInStep 0.3s ease forwards;
}

.wizard-step.is-active {
    display: block;
}

@keyframes fadeInStep {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-step-heading {
    margin-bottom: 24px;
}

.wizard-step-heading h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.25;
}

.wizard-step-heading p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

/* ── Interactive Selection Cards ────────────────────────────────────────── */
.wizard-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.wizard-option-card {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    user-select: none;
}

.wizard-option-card:hover {
    border-color: color-mix(in srgb, var(--red) 40%, var(--line));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.wizard-option-card.is-selected {
    border-color: var(--red);
    background: color-mix(in srgb, var(--red) 4%, var(--card));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 30%, transparent);
}

.wizard-option-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--red) 10%, var(--card));
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 4px;
}

.wizard-option-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.wizard-option-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
    margin: 0;
}

/* Form Groups & Inputs */
.wizard-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.wizard-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.wizard-input,
.wizard-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wizard-input:focus,
.wizard-textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 15%, transparent);
}

.wizard-textarea {
    resize: vertical;
    min-height: 110px;
}

.wizard-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* NDA Checkbox */
.wizard-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--ink) 3%, transparent);
    border: 1px solid var(--line);
    margin-bottom: 24px;
    cursor: pointer;
}

.wizard-checkbox-wrap input {
    margin-top: 3px;
    accent-color: var(--red);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.wizard-checkbox-text {
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink);
}

.wizard-checkbox-sub {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

/* Navigation Buttons Bar */
.wizard-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
}

.btn-wizard-back {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    font: 600 13px/1 var(--display);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-wizard-back:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.btn-wizard-next {
    padding: 12px 28px;
    font-size: 14px;
    cursor: pointer;
}

.wizard-error-banner {
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    display: none;
}

/* ── Right Trust Rail ───────────────────────────────────────────────────── */
.wizard-trust-rail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.trust-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.trust-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.trust-badge-text {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #059669;
}

.trust-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--ink);
}

.trust-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.trust-check-icon {
    color: var(--red);
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.direct-link-card {
    border: 1px dashed var(--line);
    background: color-mix(in srgb, var(--paper) 60%, transparent);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.direct-link-card a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.direct-link-card a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .wizard-layout {
        grid-template-columns: 1fr;
    }

    .wizard-trust-rail {
        position: static;
        order: 2;
    }
}

@media (max-width: 580px) {
    .wizard-cards-grid {
        grid-template-columns: 1fr;
    }

    .wizard-input-row {
        grid-template-columns: 1fr;
    }

    .wizard-main {
        padding: 24px 18px;
    }

    .wizard-nav-bar {
        flex-direction: column-reverse;
        align-items: stretch;
    }

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