/* ─── COMNEXA Wizard ──────────────────────────────────────────────────────── */

.wizard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.wizard-card {
    background: rgba(10, 24, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

.wizard-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0055F0 0%, #00BBFF 100%);
    border-radius: 20px 20px 0 0;
}

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

/* ─── Progress ────────────────────────────────────────────────────────────── */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.step-circle {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #0055F0 0%, #00BBFF 100%);
    border-color: #0055F0;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 85, 240, 0.45);
}

.progress-step.completed .step-circle {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}

.progress-step.completed .step-circle::after {
    content: '✓';
    position: absolute;
    font-size: 24px;
}

.step-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #00BBFF;
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 10px;
    position: relative;
    top: -25px;
}

/* ─── Assistant bubble ────────────────────────────────────────────────────── */
.assistant {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.assistant-avatar {
    flex-shrink: 0;
    width: 60px; height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #0055F0 0%, #00BBFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.assistant-bubble {
    background: rgba(0, 187, 255, 0.08);
    border: 1px solid rgba(0, 187, 255, 0.2);
    border-radius: 15px;
    padding: 15px 20px;
    flex: 1;
}

.assistant-bubble p {
    color: #E4EEF8;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    transition: opacity 0.3s ease;
}

/* ─── Steps ───────────────────────────────────────────────────────────────── */
.wizard-step {
    display: none;
    animation: fadeInStep 0.3s ease;
}

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

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-10px); }
    75%       { transform: translateX(10px); }
}

.wizard-step h2 {
    color: #E4EEF8;
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.step-description {
    color: #8AA5BE;
    font-size: 15px;
    margin-bottom: 30px;
}

/* ─── Form fields ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 25px; }

.field-label {
    display: block;
    color: #E4EEF8;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #E4EEF8;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder { color: #8AA5BE; }

.input-field:focus {
    background: rgba(0, 187, 255, 0.05);
    border-color: #00BBFF;
    box-shadow: 0 0 0 3px rgba(0, 187, 255, 0.1);
}

.input-field:disabled { opacity: 0.5; cursor: not-allowed; }

.hint {
    display: block;
    margin-top: 8px;
    color: #8AA5BE;
    font-size: 13px;
}

/* ─── Checkboxes ──────────────────────────────────────────────────────────── */
.checkbox-group { margin-bottom: 20px; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(228, 238, 248, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.checkbox-label:hover { color: #E4EEF8; }

.checkbox-label input[type="checkbox"] {
    width: 20px; height: 20px;
    cursor: pointer;
    accent-color: #00BBFF;
}

.checkbox-label a {
    color: #00BBFF;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover { text-decoration: underline; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.wizard-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.btn-next, .btn-submit {
    background: #00BBFF;
    color: #030912;
    box-shadow: 0 10px 30px rgba(0, 85, 240, 0.3);
}

.btn-next:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 85, 240, 0.45);
}

.btn-next:disabled,
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-back {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #8AA5BE;
}

.btn-back:hover { background: rgba(255, 255, 255, 0.1); color: #E4EEF8; }

/* ─── Misc ────────────────────────────────────────────────────────────────── */
.footer-text {
    text-align: center;
    margin-top: 30px;
    color: #8AA5BE;
    font-size: 14px;
}

.footer-text a {
    color: #00BBFF;
    text-decoration: none;
    font-weight: 600;
}

.footer-text a:hover { text-decoration: underline; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@@media (max-width: 768px) {
    .wizard-card { padding: 25px; }
    .wizard-step h2 { font-size: 22px; }
    .progress-bar { gap: 5px; }
    .step-circle { width: 40px; height: 40px; font-size: 16px; }
    .step-label { font-size: 10px; }
    .progress-line { margin: 0 5px; }
    .wizard-buttons { flex-direction: column; }
    button { width: 100%; }
}

/* COMNEXA Web Design overrides */
.wizard-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.wizard-card::before {
    left: 0;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--blue), rgba(255, 255, 255, 0.96));
    border-radius: 0;
    transition: transform .28s ease;
}

.wizard-card:hover::before {
    transform: scaleX(1);
}

.step-circle {
    background: #fff;
    border-color: var(--line);
    color: var(--muted);
}

.progress-step.active .step-circle {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 12px 28px rgba(5, 142, 194, 0.22);
}

.progress-step.completed .step-circle {
    background: #27ae60;
    border-color: #27ae60;
}

.step-label,
.step-description,
.hint,
.footer-text,
.checkbox-label,
.btn-back {
    color: var(--muted);
}

.progress-step.active .step-label,
.checkbox-label a,
.footer-text a {
    color: var(--blue);
}

.progress-line {
    background: var(--line);
}

.assistant-avatar {
    background: linear-gradient(135deg, #00bbff, var(--blue));
}

.assistant-bubble {
    background: rgba(5, 142, 194, 0.08);
    border-color: rgba(5, 142, 194, 0.18);
}

.assistant-bubble p,
.wizard-step h2,
.field-label {
    color: var(--ink);
}

.input-field {
    background: #fff;
    border-color: var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-family: "Alegreya Sans", "Segoe UI", Arial, sans-serif;
}

.input-field::placeholder {
    color: var(--muted);
}

.input-field:focus {
    background: #fff;
    border-color: rgba(5, 142, 194, 0.62);
    box-shadow: 0 0 0 4px rgba(5, 142, 194, 0.12);
}

.checkbox-label:hover {
    color: var(--ink);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--blue);
}

button {
    border-radius: 8px;
    font-family: "Alegreya Sans", "Segoe UI", Arial, sans-serif;
}

.btn-next,
.btn-submit {
    background: var(--blue);
    color: #fff;
    box-shadow: none;
}

.btn-next:hover:not(:disabled),
.btn-submit:hover:not(:disabled) {
    background: var(--blue-dark);
    box-shadow: 0 16px 36px rgba(5, 142, 194, 0.24);
}

.btn-back {
    background: #fff;
    border-color: var(--line);
}

.btn-back:hover {
    background: rgba(5, 142, 194, 0.08);
    color: var(--ink);
}
