@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Inter:wght@400;500;600&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;    line-height: 1.6;
    color: #333;
    background: #1a2332;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid #d4af37;
}

h1 {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.subtitle {
    color: #f0f4f8;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
}

.subtitle a {
    color: white;
}

.nav-bar {
    background: #2c5282;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.support-link {
    background: #d4af37;
    color: #1a2332 !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95em;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    white-space: nowrap;
}

.support-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    color: #1a2332 !important;
    text-decoration: none !important;
    background: #e0bd47;
}

main {
    padding: 15px 30px 40px 30px;
}

.calculator-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: #2c5f8d;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f8d 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 58, 95, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.results {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    border-left: 5px solid #2c5f8d;
}

.results.hidden {
    display: none;
}

.results.success {
    border-left-color: #28a745;
    background: #d4edda;
}

.results.failure {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.results h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.results p {
    margin-bottom: 10px;
}

.info-section {
    margin-top: 40px;
}

.info-section {
    margin-top: 40px;
}

.info-section h2 {
    color: #1e3a5f;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2c5f8d;
}

.info-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.info-section li {
    margin-bottom: 8px;
}

footer {
    background: #f8f9fa;
    padding: 30px;
    border-top: 1px solid #e0e0e0;
}

.footer-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.footer-links a {
    color: #2c5282;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.disclaimer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.disclaimer h3 {
    color: #856404;
    margin-bottom: 10px;
}

.disclaimer p, .disclaimer ul {
    color: #856404;
    font-size: 0.9rem;
}

.disclaimer ul {
    margin-left: 20px;
    margin-top: 10px;
}

.disclaimer li {
    margin-bottom: 5px;
}

.copyright {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.radio-label span {
    font-size: 16px;
}

.ad-container {
    text-align: center;
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.ad-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

#ad-slot-1 {
min-height: 90px;
background: #f8f9fa;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
}

.calculator-box h2 {
    color: #1e3a5f;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.calculator-box > p:first-of-type {
    color: #1e3a5f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.support-section {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
}

.support-section p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.coffee-btn {
    display: inline-block;
    background: #FFDD00;
    color: #000;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
}

.coffee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 221, 0, 0.4);
    color: #000;
    text-decoration: none;
}

a {
    color: #2c5f8d;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1e3a5f;
}

/* Override for specific contexts */
main a:hover,
footer a:hover {
    text-decoration: underline;
}

header a {
    color: white;
    text-decoration: underline;
}

header a:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        padding: 30px 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 20px;
    }

    .calculator-box {
        padding: 20px;
    }

    .nav-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .support-link {
        width: 100%;
        text-align: center;
    }
}
