/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1A237E;
    background: #F5F7FA;
    overflow-x: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease-out;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInDown 0.8s ease-out;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    color: #E3F2FD;
    animation: fadeInDown 1s ease-out;
}

/* Container */
.container {
    max-width: 1200px;
    margin: -40px auto 40px;
    padding: 0 20px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* Calculator Card */
.calculator-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-header.blue {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.card-header.green {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
}

.card-header.teal {
    background: linear-gradient(135deg, #00BCD4, #0097A7);
    color: white;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.icon-circle.blue-light {
    background: #E3F2FD;
}

.icon-circle.green-light {
    background: #E8F5E9;
}

.icon-circle.teal-light {
    background: #E0F2F1;
}

.card-title-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.card-title-section p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.card-body {
    padding: 28px;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A237E;
    margin-bottom: 8px;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border: none;
    border-radius: 12px;
    background: #E3F2FD;
    color: #1A237E;
    transition: background 0.3s ease;
}

.input-group input[type="number"]:focus {
    outline: none;
    background: #BBDEFB;
}

.input-group input::placeholder {
    color: #90A4AE;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 12px;
    background: #E0F2F1;
    transition: background 0.3s ease;
    flex: 1;
}

.radio-label:hover {
    background: #B2DFDB;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    accent-color: #00BCD4;
}

.radio-label span {
    font-size: 1rem;
    font-weight: 500;
}

/* Buttons */
.btn-calculate {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-calculate:active {
    transform: translateY(0);
}

.btn-calculate.blue {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.btn-calculate.green {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.btn-calculate.teal {
    background: linear-gradient(135deg, #00BCD4, #0097A7);
}

.btn-clear {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: #546E7A;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-clear:hover {
    color: #1A237E;
}

/* Result Cards */
.result-card {
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 16px;
    animation: scaleIn 0.4s ease-out;
}

.result-card.blue-light {
    background: #E3F2FD;
}

.result-card.green-light {
    background: #E8F5E9;
}

.result-card.teal-light {
    background: #E0F2F1;
}

.result-label {
    font-size: 0.9rem;
    color: #546E7A;
    margin-bottom: 8px;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    margin: 8px 0;
}

.result-value.blue {
    color: #2196F3;
}

.result-value.green {
    color: #4CAF50;
}

.result-value.teal {
    color: #00BCD4;
}

.result-category {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1A237E;
    margin-top: 12px;
}

.result-range {
    font-size: 1rem;
    font-weight: 600;
    color: #1A237E;
    margin-top: 8px;
}

.info-card {
    background: #FFF3E0;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 16px;
}

.info-card small {
    color: #546E7A;
    font-size: 0.85rem;
}

/* Disclaimer */
.disclaimer-card {
    background: #FFF3E0;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.disclaimer-card p {
    color: #546E7A;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer Links */
.footer-links {
    text-align: center;
    margin-bottom: 40px;
}

.privacy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2196F3;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.privacy-link:hover {
    background: #E3F2FD;
}

/* Footer */
.footer {
    background: #1A237E;
    color: white;
    text-align: center;
    padding: 24px;
    margin-top: 60px;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 2rem;
    }

    .result-value {
        font-size: 2.5rem;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 20px;
    }

    .title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .icon-circle {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .result-value {
        font-size: 2rem;
    }
}
