/* ===================================
   Project Wizard Styles - Premium Light
   =================================== */

:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --primary-blue: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.2);
    --accent-purple: #a855f7;
    --accent-orange: #f97316;
    --success-green: #10b981;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

body.wizard-page {
    background: var(--bg-page);
    font-family: var(--font-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

.project-wizard {
    min-height: 100vh;
    padding: 20px 20px 40px;
    /* Drastically reduced from 120px */
    position: relative;
    background-image:
        radial-gradient(#e2e8f0 1px, transparent 1px),
        radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

.wizard-container {
    max-width: 85%;
    /* User Request: Widened Layout */
    width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===================================
   Wizard Header
   =================================== */
.wizard-header {
    text-align: center;
    margin-bottom: 10px;
    /* Reduced from 60px to 10px */
}

.wizard-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.wizard-badge i {
    color: var(--primary-blue);
}

.wizard-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.highlight-text {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-glow);
    z-index: -1;
    border-radius: 4px;
}

.wizard-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Back Home Button */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.back-home-btn:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* ===================================
   Progress Steps
   =================================== */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    padding: 0 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--border-color);
    z-index: 0;
    border-radius: 10px;
}

.progress-line {
    position: absolute;
    top: 25px;
    left: 40px;
    height: 3px;
    background: var(--primary-blue);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    width: 0%;
    box-shadow: 0 0 10px var(--primary-glow);
    border-radius: 10px;
}

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

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.step.active .step-circle {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
    transform: scale(1.1);
}

.step.completed .step-circle {
    background: var(--success-green);
    border-color: var(--success-green);
    color: #fff;
}

.step.completed .step-number {
    display: none;
}

.step.completed .step-check {
    display: block;
}

.step-check {
    display: none;
    font-size: 1.1rem;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: 0.3s;
}

.step.active .step-label {
    color: var(--primary-blue);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--success-green);
}

/* ===================================
   Wizard Content - Premium White Card
   =================================== */
.wizard-content {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 60px;
    min-height: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Animations */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeInSlide 0.5s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

.step-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.step-description {
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-size: 1.05rem;
}

/* ===================================
   Project Type Cards
   =================================== */
.project-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    /* Bigger cards */
    gap: 30px;
    margin-bottom: 40px;
}

.project-type-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
    border-color: rgba(59, 130, 246, 0.3);
}

.project-type-card.selected {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.02);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
    transform: translateY(-5px);
}

.type-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(59, 130, 246, 0.08);
    /* Light Blue Tint */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.project-type-card:hover .type-icon,
.project-type-card.selected .type-icon {
    background: var(--primary-blue);
    color: #fff;
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.project-type-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.project-type-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===================================
   Feature Selection
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-item.selected {
    background: rgba(59, 130, 246, 0.03);
    border-color: var(--primary-blue);
}

.feature-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.feature-item.selected .feature-checkbox {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.feature-item.selected .feature-checkbox i {
    display: block;
    animation: scaleIn 0.2s;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.feature-info h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.feature-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===================================
   Budget Slider
   =================================== */
.budget-slider-container {
    margin: 60px 0;
}

.budget-display {
    text-align: center;
    margin-bottom: 50px;
}

.budget-amount {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.budget-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 600;
}

.budget-slider {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.budget-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--primary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.budget-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.budget-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

.budget-info {
    background: #fff;
    border-left: 4px solid var(--accent-orange);
    border: 1px solid var(--border-color);
    border-left-width: 4px;
    border-radius: 12px;
    padding: 30px;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.budget-info h4 {
    color: var(--accent-orange);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.budget-info ul {
    list-style: none;
    padding: 0;
}

.budget-info li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-secondary);
}

.budget-info li strong {
    color: var(--text-primary);
    margin-right: 8px;
}

/* ===================================
   Timeline
   =================================== */
.timeline-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.timeline-option {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.timeline-option:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.timeline-option.selected {
    background: rgba(59, 130, 246, 0.03);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
}

.timeline-option i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: 0.3s;
}

.timeline-option.selected i {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.timeline-option h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 600;
}

.timeline-option p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===================================
   Form & Contact
   =================================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    background: #f8fafc;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.project-summary {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 50px;
}

.project-summary h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
}

.summary-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.summary-item strong {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

/* ===================================
   Navigation Buttons
   =================================== */
.wizard-navigation {
    display: flex;
    justify-content: flex-end;
    /* Right aligned */
    gap: 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.wizard-btn {
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-back {
    background: #fff;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-back:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-next,
.btn-submit {
    background: var(--text-primary);
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.3);
    background: #000;
}

/* Success Animation */
.success-checkmark {
    color: var(--success-green);
    font-size: 6rem;
    margin-bottom: 30px;
}

.success-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    margin: 10px;
    flex: 1;
    text-align: center;
    border: 1px solid var(--border-color);
}

.success-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.success-card h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.success-details {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-blue);
    color: #fff;
    padding: 14px 34px;
    border-radius: 100px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #2563eb;
}

.btn-secondary {
    background: #fff;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 34px;
    border-radius: 100px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-weight: 600;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .wizard-container {
        max-width: 95%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .wizard-container {
        width: 100%;
        padding: 0 10px;
    }

    .wizard-content {
        padding: 30px;
    }

    .project-type-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .success-details {
        flex-direction: column;
    }
}