/* Age Calculator Stylesheet */
.age-wrapper {
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.age-container {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    width: 100%;
    max-width: 320px; /* Kept narrow for AdSense space */
    box-sizing: border-box;
}

.age-container h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #111827;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
}

.age-input-group {
    margin-bottom: 16px;
    text-align: left;
}

.age-input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
}

.age-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    background: #f9fafb;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.age-input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: #ffffff;
}

.age-btn {
    width: 100%;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.age-btn:hover {
    background: #2563eb;
}

.age-result-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    display: none; /* Hidden until calculated */
}

.age-result-box h3 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #1e40af;
    letter-spacing: 0.05em;
}

.age-result-main {
    margin: 10px 0 5px 0;
    font-size: 2.2rem;
    font-weight: 900;
    color: #1d4ed8;
}

.age-result-sub {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #2563eb;
}