/* ─── Age Calculator — True Premium Layout ─── */

.age-calculator .tool-area {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

/* Subtle accent bar at top */
.age-calculator .tool-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd);
}

.age-calculator .tool-header {
    margin-bottom: 36px;
}

.age-calculator .tool-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.age-calculator .tool-header p {
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 400;
}

/* Input section — card style */
.age-calculator .input-group {
    background: #f8fafc;
    padding: 24px 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid #eef2f6;
}

.age-calculator .input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.age-calculator .input-group input {
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    background: #ffffff;
    transition: all 0.25s ease;
    color: #0f172a;
}

.age-calculator .input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

/* Primary button — full width, pill shape */
.age-calculator .primary-btn {
    width: 100%;
    padding: 16px 28px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.age-calculator .primary-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.age-calculator .primary-btn:active {
    transform: scale(0.98);
}

/* Results — grid with glassmorphism */
.age-calculator .result-area {
    display: none;
    margin-top: 32px;
    padding: 28px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    gap: 16px;
}

.age-calculator .result-area .result-item {
    text-align: center;
    padding: 12px 8px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    flex: 1;
    min-width: 70px;
}

.age-calculator .result-area .result-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -1px;
    line-height: 1.2;
}

.age-calculator .result-area .result-label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Extra info — subtle alert style */
.age-calculator .extra-info {
    display: none;
    margin-top: 20px;
    padding: 18px 24px;
    background: #f0fdf4;
    border-radius: 12px;
    border-left: 4px solid #22c55e;
}

.age-calculator .extra-info p {
    color: #166534;
    font-weight: 500;
    margin: 4px 0;
    font-size: 0.95rem;
}

/* SEO content — clean, airy */
.age-calculator .seo-content {
    margin-top: 48px;
    padding: 36px;
    background: #fafcff;
    border-radius: 20px;
    border: 1px solid #eef2f6;
}

.age-calculator .seo-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.age-calculator .seo-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 20px;
}

.age-calculator .seo-content ul {
    margin-left: 20px;
    color: #475569;
    line-height: 1.8;
}

.age-calculator .seo-content p {
    color: #475569;
    line-height: 1.8;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .age-calculator .tool-area {
        padding: 24px;
    }

    .age-calculator .tool-header h2 {
        font-size: 1.6rem;
    }

    .age-calculator .input-group {
        padding: 16px 18px;
    }

    .age-calculator .result-area .result-number {
        font-size: 2rem;
    }

    .age-calculator .seo-content {
        padding: 24px;
    }
}