body, div, input, li, p, span, td, textarea {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.calculator-container {
    background: linear-gradient(to right, #f8f9fa, #e0eafc);
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

.calculator-title {
    text-align: center;
    color: #053b7d;
    margin-bottom: 5px;
    font-size: 28px;
}

.calculator-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.input-sections {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.section-header {
    background: linear-gradient(135deg, #053b7d, #0a5abd);
    color: white;
    padding: 10px 15px;
    margin: 15px -20px;
    font-weight: 600;
    font-size: 14px;
}

.section-header:first-child {
    margin-top: -20px;
    border-radius: 10px 10px 0 0;
}

.input-group {
    margin-bottom: 15px;
    padding: 0 5px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #053b7d;
    box-shadow: 0 0 5px rgba(5, 59, 125, 0.3);
}

.button-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #053b7d;
    color: white;
}

.btn-primary:hover {
    background-color: #042a5c;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.age-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.age-card {
    text-align: center;
    padding: 25px 30px;
    border-radius: 15px;
    min-width: 150px;
}

.age-card.chrono {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
}

.age-card.bio {
    color: white;
}

.age-card.bio.younger {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.age-card.bio.same {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.age-card.bio.older {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
}

.age-arrow {
    font-size: 24px;
    font-weight: 700;
    color: #666;
}

.age-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.age-value {
    font-size: 48px;
    font-weight: 700;
}

.age-note {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 5px;
}

.verdict-section {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.verdict-section.great {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #28a745;
    color: #155724;
}

.verdict-section.good {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 1px solid #17a2b8;
    color: #0c5460;
}

.verdict-section.attention {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border: 1px solid #ffc107;
    color: #856404;
}

.verdict-section.concern {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 1px solid #dc3545;
    color: #721c24;
}

.verdict-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.verdict-message {
    font-size: 14px;
}

.factors-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.factors-section h3 {
    color: #053b7d;
    margin: 0 0 15px 0;
    text-align: center;
}

.factors-columns {
    display: flex;
    gap: 20px;
}

.factors-column {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
}

.factors-column.helping {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.factors-column.hurting {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.factors-column h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.factors-column ul {
    margin: 0;
    padding-left: 20px;
}

.factors-column li {
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
}

.recommendations-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.recommendations-section h3 {
    color: #053b7d;
    margin: 0 0 15px 0;
    text-align: center;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #053b7d;
}

.recommendation-icon {
    font-size: 20px;
    min-width: 30px;
    text-align: center;
}

.recommendation-text {
    font-size: 14px;
    color: #333;
}

.tips-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.tips-section h3 {
    color: #053b7d;
    margin: 0 0 15px 0;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tip-card {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.tip-icon {
    background: linear-gradient(135deg, #053b7d, #0a5abd);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.tip-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.tip-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.disclaimer {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    font-size: 13px;
    color: #856404;
    border: 1px solid #ffc107;
}

.disclaimer-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.smaller-button {
    padding: 8px 15px;
    background: #053b7d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.smaller-button:hover {
    background: #042a5c;
}

@media (max-width: 600px) {
    .calculator-container {
        padding: 15px;
    }

    .age-comparison {
        flex-direction: column;
    }

    .age-arrow {
        transform: rotate(90deg);
    }

    .factors-columns {
        flex-direction: column;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}
