/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumbs {
    margin-bottom: 30px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #aaa;
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs li:last-child {
    color: #777;
}

/* Calculator Styles */
.calculator-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 40px;
}

.form-section {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
}

button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
}

button:hover {
    background-color: #2980b9;
}

/* Results Section */
.hidden {
    display: none;
}

.results-section {
    margin-top: 30px;
}

.phase-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.phase-container h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.table-responsive {
    overflow-x: auto;
}

.program-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.program-table th, .program-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #ddd;
}

.program-table th {
    background-color: var(--primary-color);
    color: white;
}

.program-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.expected-results {
    background-color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.expected-results h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

/* Info Section */
.info-section {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-section h3 {
    color: var(--secondary-color);
    margin: 20px 0 10px;
}

.info-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.info-section li {
    margin-bottom: 12px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    box-shadow: var(--shadow);
}

.info-table th, .info-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.info-table th {
    background-color: var(--primary-color);
    color: white;
}

.info-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.faq-section {
    margin-top: 40px;
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
}

.faq-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.faq-section h4 {
    color: var(--secondary-color);
    margin: 20px 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-section p {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--secondary-color);
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 40px 20px;
    background-color: var(--primary-color);
    color: #f1f1f1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-disclaimer {
    margin-bottom: 20px;
}

.footer-nav h4, .footer-resources h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-nav ul, .footer-resources ul {
    list-style: none;
    padding: 0;
}

.footer-nav li, .footer-resources li {
    margin-bottom: 10px;
}

.footer-nav a, .footer-resources a {
    color: #f1f1f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover, .footer-resources a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

.copyright a {
    color: #ccc;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .form-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .form-section h2 {
        grid-column: 1 / -1;
    }
    
    button {
        grid-column: 1 / -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 992px) {
    header h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .calculator-container {
        display: grid;
        grid-template-columns: 350px 1fr;
        gap: 30px;
        align-items: start;
    }
    
    .form-section {
        display: block;
        position: sticky;
        top: 20px;
    }
    
    .results-section {
        margin-top: 0;
    }
}

@media (max-width: 992px) {
    .form-section {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .calculator-container {
        padding: 20px;
    }
    
    .program-table th, .program-table td {
        padding: 8px;
        font-size: 14px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .breadcrumbs {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .phase-container {
        padding: 15px 10px;
    }
    
    .program-table th, .program-table td {
        padding: 6px 4px;
        font-size: 12px;
    }
    
    .info-table th, .info-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
}