/* Base Fonts */
body {
    background: #f5f6fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Open Sans', 'Montserrat', 'Lato', 'Nunito Sans', 'Source Sans Pro', sans-serif;
}

/* Calculator Container */
.calc-container {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-sizing: border-box;
}
.calc-title {
    font-size: 26px;
    color: #0078d7;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Inputs & Buttons */
input, button {
    width: 100%;
    padding: 14px;
    margin: 10px 0;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}
input:focus {
    border-color: #0078d7;
    outline: none;
    box-shadow: 0 0 6px rgba(0,120,215,0.3);
}
button {
    background: #0078d7;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
button:hover { background: #005a9e; }

/* Captcha */
.captcha-box {
    margin: 12px 0;
    padding: 10px;
    background: #f0f2f5;
    border-radius: 10px;
    font-weight: 600;
    color: #333;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;              /* Flexbox use karo */
    justify-content: center;    /* Horizontal center */
    align-items: center;        /* Vertical center */
}

/* Popup Content */
.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeSlide 0.8s ease-in-out forwards;
}

.close {
    float: right;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}
.close:hover { color: #000; }

/* Logo at top of popup */
.popup-logo {
    width: 120px;
    margin-bottom: 20px;
}

/* Result Card */
.result-card {
    text-align: center;
    font-family: 'Montserrat', 'Lato', 'Nunito Sans', sans-serif;
}
.result-card.error {
    color: #d32f2f;
}
.animated-heading {
    font-size: 26px;
    color: #0078d7;
    margin-bottom: 15px;
    font-weight: 700;
    animation: zoomIn 1s ease-in-out;
}
.age-highlight {
    font-size: 22px;
    color: #ff5722;
    font-weight: bold;
    margin-top: 15px;
    animation: zoomIn 1s ease-in-out;
}

/* Animations */
@keyframes fadeIn { from { opacity:0; transform:scale(0.9);} to {opacity:1; transform:scale(1);} }
@keyframes zoomIn { from { opacity:0; transform:scale(0.5);} to {opacity:1; transform:scale(1);} }
@keyframes fadeSlide { from { opacity:0; transform:translateY(-30px);} to {opacity:1; transform:translateY(0);} }

/* Responsive Media Queries */
@media (max-width: 480px) {
    .calc-title { font-size: 22px; }
    input, button { font-size: 14px; padding: 10px; }
    .popup-content { padding: 20px; }
    .animated-heading { font-size: 22px; }
    .age-highlight { font-size: 18px; }
}
@media (min-width: 481px) and (max-width: 768px) {
    .calc-title { font-size: 24px; }
    input, button { font-size: 15px; padding: 12px; }
    .popup-content { padding: 25px; }
    .animated-heading { font-size: 24px; }
}
@media (min-width: 769px) {
    .calc-title { font-size: 26px; }
    input, button { font-size: 16px; padding: 14px; }
}
