/* ==============================================
   WIZARD APPLICATION FORM - G4 Style
   ============================================== */

:root {
    --wizard-primary: #667eea;
    --wizard-primary-dark: #5568d3;
    --wizard-success: #10b981;
    --wizard-error: #ef4444;
    --wizard-bg: #0a0e27;
    --wizard-card-bg: #ffffff;
    --wizard-text: #1e293b;
    --wizard-text-light: #64748b;
    --wizard-border: #e2e8f0;
    --wizard-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --wizard-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--wizard-bg);
    color: var(--wizard-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==============================================
   HEADER
   ============================================== */

.wizard-header {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wizard-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.wizard-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.wizard-logo:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: #667eea;
}

.logo-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

/* ==============================================
   WIZARD CONTAINER
   ============================================== */

.wizard-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.wizard-card {
    background: var(--wizard-card-bg);
    border-radius: 24px;
    box-shadow: var(--wizard-shadow);
    width: 100%;
    max-width: 700px;
    padding: 48px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   PROGRESS BAR
   ============================================== */

.wizard-progress-container {
    margin-bottom: 48px;
}

.wizard-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--wizard-border);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wizard-primary), var(--wizard-primary-dark));
    border-radius: 999px;
    width: 20%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.wizard-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.wizard-progress-text {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--wizard-text-light);
}

.wizard-progress-text span {
    color: var(--wizard-primary);
    font-weight: 600;
}

/* ==============================================
   WIZARD STEPS
   ============================================== */

.wizard-form {
    position: relative;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-step-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.wizard-step-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--wizard-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.wizard-step-description {
    font-size: 16px;
    color: var(--wizard-text-light);
    line-height: 1.6;
}

.wizard-step-content {
    animation: fadeInUp 0.5s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   FORM INPUTS
   ============================================== */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--wizard-text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--wizard-border);
    border-radius: 12px;
    background: var(--wizard-card-bg);
    color: var(--wizard-text);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: var(--wizard-text-light);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: none;
    color: var(--wizard-error);
    font-size: 13px;
    margin-top: 6px;
}

.form-error.show {
    display: block;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.form-input.error {
    border-color: var(--wizard-error);
}

/* ==============================================
   OPTION CARDS (Radio Buttons)
   ============================================== */

.option-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.option-card {
    position: relative;
    cursor: pointer;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-card-content {
    border: 2px solid var(--wizard-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--wizard-card-bg);
    height: 100%;
}

.option-card:hover .option-card-content {
    border-color: var(--wizard-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.option-card input[type="radio"]:checked + .option-card-content {
    border-color: var(--wizard-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(102, 126, 234, 0.1));
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.option-card-icon {
    font-size: 32px;
    color: var(--wizard-primary);
    margin-bottom: 12px;
}

.option-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--wizard-text);
    margin-bottom: 4px;
}

.option-card-description {
    font-size: 13px;
    color: var(--wizard-text-light);
}

/* ==============================================
   CHECKBOX OPTIONS
   ============================================== */

.checkbox-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-option {
    position: relative;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-option-content {
    border: 2px solid var(--wizard-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    background: var(--wizard-card-bg);
}

.checkbox-option:hover .checkbox-option-content {
    border-color: var(--wizard-primary);
    transform: translateX(4px);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-option-content {
    border-color: var(--wizard-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(102, 126, 234, 0.1));
    font-weight: 600;
}

.checkbox-option-content i {
    font-size: 24px;
    color: var(--wizard-primary);
}

.checkbox-option-content span {
    font-size: 15px;
    color: var(--wizard-text);
}

/* ==============================================
   NAVIGATION BUTTONS
   ============================================== */

.wizard-navigation {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.btn-wizard-back,
.btn-wizard-next,
.btn-wizard-submit {
    flex: 1;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn-wizard-back {
    background: var(--wizard-border);
    color: var(--wizard-text);
}

.btn-wizard-back:hover {
    background: #cbd5e1;
    transform: translateX(-4px);
}

.btn-wizard-next,
.btn-wizard-submit {
    background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-wizard-next:hover,
.btn-wizard-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.btn-wizard-next:active,
.btn-wizard-submit:active {
    transform: translateY(0);
}

.btn-wizard-submit {
    background: linear-gradient(135deg, var(--wizard-success), #059669);
}

/* ==============================================
   SUCCESS MESSAGE
   ============================================== */

.wizard-success {
    text-align: center;
    animation: successIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--wizard-success), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    animation: successBounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--wizard-text);
    margin-bottom: 16px;
}

.success-description {
    font-size: 16px;
    color: var(--wizard-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.success-description strong {
    color: var(--wizard-primary);
}

.btn-success-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--wizard-primary), var(--wizard-primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-success-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* ==============================================
   FOOTER
   ============================================== */

.wizard-footer {
    background: var(--wizard-card-bg);
    border-top: 1px solid var(--wizard-border);
    padding: 24px;
    text-align: center;
    color: var(--wizard-text-light);
    font-size: 14px;
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
    .wizard-card {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .wizard-step-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .wizard-step-title {
        font-size: 22px;
    }

    .wizard-step-description {
        font-size: 14px;
    }

    .option-cards,
    .checkbox-options {
        grid-template-columns: 1fr;
    }

    .wizard-navigation {
        flex-direction: column-reverse;
    }

    .btn-wizard-back,
    .btn-wizard-next,
    .btn-wizard-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wizard-card {
        padding: 24px 16px;
    }

    .wizard-step-title {
        font-size: 20px;
    }

    .option-card-content {
        padding: 16px;
    }

    .checkbox-option-content {
        padding: 12px;
    }
}

/* ==============================================
   ANIMATIONS & LOADING
   ============================================== */

.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading .btn-wizard-next::after,
.loading .btn-wizard-submit::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

