* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-section {
    width: 100%;
    background-color: #003049;
    padding: 16px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

.calculator {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    width: 100%;
    max-width: 600px;
    margin: 20px;
}

.calculator-header {
    margin-bottom: 24px;
    text-align: center;
}

.calculator-header h1 {
    font-size: 24px;
    color: #003049;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.input-group input:hover {
    border-color: #bfdbfe;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
}

.input-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.input-group select:hover {
    border-color: #bfdbfe;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.input-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
}

.input-group select::-ms-expand {
    display: none;
}

.input-group select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.input-group.error input {
    border-color: #dc2626;
}

.error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.input-group.error .error-message {
    display: block;
}

/* Slider styles */
.slider-container {
    position: relative;
    padding: 10px 0;
}

.slider-value {
    text-align: center;
    font-weight: 500;
    color: #003049;
    margin-top: 8px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0f2fe;
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #003049;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #003049;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #004b73;
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb:hover {
    background: #004b73;
    transform: scale(1.1);
}

.results {
    background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 4px;
    padding: 16px;
    margin-top: 24px;
    display: none;
}

.results.show {
    display: block;
}

.results-divider {
    margin: 16px 0;
    border: none;
    border-top: 1px solid #bae6fd;
}

.results p {
    margin-bottom: 8px;
    color: #003049;
    font-size: 16px;
    font-weight: 500;
}

.reset-button {
    width: 100%;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.reset-button:hover {
    background: #f5f5f5;
    border-color: #94a3b8;
}

.reset-button:active {
    transform: translateY(1px);
}

.reset-button svg {
    margin-right: 8px;
}

/* FAQ Styles */
.faq-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 24px;
    width: 100%;
    max-width: 600px;
    margin: 20px;
}

.faq-container h2 {
    font-size: 24px;
    color: #003049;
    margin-bottom: 24px;
    text-align: center;
}

.accordion-item {
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 16px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #e9ecef;
}

.accordion-header span {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    flex: 1;
    margin-right: 16px;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
    padding: 0 16px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
    padding: 16px;
}

.accordion-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
}

.accordion-content ul {
    margin: 16px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.accordion-content ul li {
    font-size: 16px;
    color: #555;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* Footer Styles */
.footer {
    width: 100%;
    background: #003049;
    color: white;
    padding: 40px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 24px;
}

.footer-section:last-child {
    margin-bottom: 0;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-section p {
    font-size: 16px;
    line-height: 1.5;
    color: #f5f5f5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #f5f5f5;
}

@media (max-width: 640px) {
    .calculator,
    .faq-container {
        margin: 16px;
        padding: 16px;
    }
    
    .accordion-header span {
        font-size: 16px;
    }
    
    .accordion-content {
        font-size: 15px;
    }
}