/* Tools Dedicated Styles */
:root {
    --step-active: #1f57c3;
    --step-upcoming: #cbd5e1;
    --step-completed: #10b981;
}

.tool-page-container {
    padding-top: 100px;
    padding-bottom: 80px;
    background-color: #f8fafc;
    min-height: 100vh;
}

/* Progress Stepper */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    padding: 0 10px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--step-upcoming);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--step-upcoming);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    border-color: var(--step-active);
    color: var(--step-active);
    box-shadow: 0 0 0 4px rgba(31, 87, 195, 0.1);
}

.step-item.completed .step-circle {
    background: var(--step-completed);
    border-color: var(--step-completed);
    color: white;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}

/* Wizard Form */
.wizard-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    max-width: 900px;
    margin: 0 auto;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-field input, .form-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-field input:focus {
    outline: none;
    border-color: var(--step-active);
    box-shadow: 0 0 0 3px rgba(31, 87, 195, 0.1);
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

/* Result UI */
.result-banner {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

.comparison-table th {
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.table-row-total {
    background: #f8fafc;
    font-weight: 700;
}

@media (max-width: 768px) {
    .form-group-grid {
        grid-template-columns: 1fr;
    }
    .stepper {
        padding: 0 20px;
    }
    .step-label {
        display: none;
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        padding: 0 !important;
    }
    
    .navbar, .footer-exact, .stepper, .wizard-actions, .mobile-menu-btn, .btn-ghost {
        display: none !important;
    }

    .tool-page-container {
        padding-top: 0 !important;
        background: white !important;
    }

    .wizard-card {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .wizard-step {
        display: none !important;
    }

    .wizard-step.active, #step4 {
        display: block !important;
    }

    .print-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #f1f5f9;
    }

    .print-logo {
        height: 60px;
    }

    .result-banner {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
    }

    .comparison-table th {
        background: #f8fafc !important;
        color: #1e293b !important;
    }

    .table-row-total {
        background: #f1f5f9 !important;
    }

    /* Ensure colors print */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

.print-header {
    display: none;
}

