/* ==========================================
   TOOLS PAGE STYLES
   ========================================== */

.tool-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    margin-bottom: 35px;
    border-top: 4px solid var(--light-blue);
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.tool-card h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 700;
}

.tool-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.tool-body {
    max-width: 700px;
    margin: 0 auto;
}

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

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

.form-group select,
.form-group input[type="number"] {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group select:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-group label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-group label:hover {
    border-color: var(--light-blue);
    background: rgba(52, 152, 219, 0.05);
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.btn-calculate {
    width: 100%;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-calculate i {
    margin-right: 10px;
}

/* Result Boxes */
.result-box {
    margin-top: 30px;
    padding: 30px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px solid var(--border-color);
}

.result-success,
.result-status {
    text-align: center;
}

.result-success i,
.result-status > i {
    display: block;
    margin-bottom: 15px;
}

.result-success h3,
.result-status h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cost-range {
    font-size: 3rem;
    font-weight: 800;
    color: var(--light-blue);
    margin: 20px 0;
}

.result-note {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.result-note i {
    color: #856404;
    margin-right: 8px;
}

.btn-find-engineer {
    display: inline-block;
    background: var(--success-green);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-find-engineer:hover {
    background: #229954;
    transform: scale(1.05);
}

.btn-find-engineer i {
    margin-right: 8px;
}

/* Age Details */
.age-details {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
}

.age-details p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.age-details strong {
    color: var(--text-dark);
}

.result-status {
    border-left: 5px solid;
    padding-left: 25px;
}

.recommendation {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: left;
}

.recommendation h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.recommendation h4 i {
    color: var(--warning-orange);
    margin-right: 8px;
}

.highlight {
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    font-weight: 600;
    color: #155724;
}

.highlight i {
    margin-right: 8px;
    color: #28a745;
}

/* Checklist Styles */
.checklist {
    text-align: left;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--light-blue);
    transition: all 0.3s ease;
}

.checklist-item:hover {
    background: #e9ecef;
}

.checklist-item input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checklist-item label {
    flex: 1;
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1.6;
}

.checklist-item input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Maintenance Schedule */
.maintenance-schedule {
    text-align: left;
}

.schedule-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid var(--light-blue);
}

.schedule-month {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.schedule-task {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
}

.schedule-task input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.schedule-task label {
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.schedule-task input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Quiz Styles */
.quiz-question {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--light-blue);
}

.quiz-question p {
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.quiz-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.quiz-score {
    margin: 25px 0;
}

.score-meter {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.score-fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 15px;
}

.action-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.action-box i {
    color: #856404;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-card {
        padding: 25px 20px;
    }

    .tool-card h2 {
        font-size: 1.5rem;
    }

    .tool-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .cost-range {
        font-size: 2.2rem;
    }

    .checklist-item,
    .schedule-task {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .tool-card {
        padding: 20px 15px;
    }

    .tool-card h2 {
        font-size: 1.3rem;
    }

    .form-group select,
    .form-group input[type="number"] {
        padding: 12px;
        font-size: 0.95rem;
    }

    .btn-calculate {
        padding: 15px 25px;
        font-size: 1rem;
    }

    .cost-range {
        font-size: 2rem;
    }
}