/* Age Calculator — plain form + result summary, consistent with the
   other Services sub-pages (Phone Directory, Hijri converter). */

.ac-form-card { margin-bottom: .85rem; }
.ac-form { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.ac-form-field { display: flex; flex-direction: column; gap: .3rem; }
.ac-form-field label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.ac-form-field input[type="date"] {
    border: 1px solid var(--border); border-radius: 5px; padding: .55rem .7rem;
    background: var(--paper); color: var(--ink); font-family: inherit; font-size: .9rem;
}
.ac-error { color: var(--danger); font-size: .85rem; margin: .75rem 0 0; }

.ac-result-card {
    background: linear-gradient(135deg, #6d28d9, #4338ca); color: #fff;
    border-radius: 5px; padding: 1.4rem 1.2rem; text-align: center; margin-bottom: .7rem;
    box-shadow: 0 14px 32px -14px rgba(0,0,0,.35);
}
.ac-result-headline { display: flex; align-items: baseline; justify-content: center; gap: .3rem; flex-wrap: wrap; }
.ac-result-number { font-size: 2rem; font-weight: 800; font-family: var(--font-display); }
.ac-result-unit { font-size: .82rem; opacity: .85; margin-right: .5rem; }
.ac-result-sub { font-size: .8rem; opacity: .85; margin: .4rem 0 0; }

.ac-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem;
}
.ac-stat {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius, 5px);
    padding: .9rem .6rem; text-decoration: none; color: inherit;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05));
}
.ac-stat-icon { font-size: 1.15rem; color: var(--indigo); }
.ac-stat-value { font-weight: 800; font-size: 1rem; color: var(--ink); }
.ac-stat-label { font-size: .72rem; color: var(--ink-soft); }
.ac-stat-link:hover { border-color: color-mix(in srgb, var(--indigo) 30%, var(--border)); }

@media (max-width: 480px) {
    .ac-form { flex-direction: column; align-items: stretch; }
    .ac-result-number { font-size: 1.6rem; }
    .ac-stats-grid { grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: .5rem; }
}
