/* --- Root Variables & Reset --- */
:root {
    --brand-500: #0ea5e9;
    --cyan-400: #22d3ee;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --border-white: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(at top center, #1e293b, #0f172a);
    color: #e2e8f0;
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

/* --- Layout Engine (Fixed Grid System) --- */
.w-full { width: 100% !important; }
.max-w-4xl { max-width: 56rem; width: 100%; }
.mx-auto { margin: 0 auto; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* This fixes the Medical Aid alignment */
.grid { display: grid; gap: 1.5rem; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.items-center { align-items: center; }
.capitalize { text-transform: capitalize; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-wide { letter-spacing: 0.025em; }
.w-fit { width: fit-content; }
.inline-block { display: inline-block; }
.antialiased { -webkit-font-smoothing: antialiased; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
}

/* --- Main Glass Card --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-white);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* --- THE UN-SQUASHABLE BUTTON --- */
.pt-6 {
    width: 100% !important;
    display: block !important;
    margin-top: 2rem;
}

.btn-calculate {
    display: block !important;
    width: 100% !important;
    min-height: 3.5rem !important; /* Forces vertical height */
    padding: 1rem 2rem !important;
    
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 0.75rem !important;
    
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    cursor: pointer !important;
    
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.5) !important;
    animation: buttonPulse 3s infinite !important;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* --- Input Styling --- */
input[type="number"],
input[type="date"] {
    width: 100% !important;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #475569;
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    color: white;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--cyan-400);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

/* --- Header & Typography --- */
h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

h2 {
    color: var(--cyan-400);
    border-bottom: 1px solid var(--border-white);
    padding-bottom: 0.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

/* --- Checkbox & Fixes --- */
.relative { position: relative; }
.absolute { position: absolute; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.pl-8 { padding-left: 2rem !important; }

/* Tailwind-like checkbox utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.peer { /* marker class — no styles needed */ }
.appearance-none { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
input[type="checkbox"].peer { position: relative; cursor: pointer; width: 1.25rem; height: 1.25rem; border-radius: 0.375rem; border: 1px solid #64748b; background: #1e293b; appearance: none; -webkit-appearance: none; transition: all 0.2s; flex-shrink: 0; }
input[type="checkbox"].peer:checked { border-color: #22d3ee; background: #22d3ee; }
input[type="checkbox"].peer + svg,
input[type="checkbox"].peer ~ svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 0.875rem; height: 0.875rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
input[type="checkbox"].peer:checked + svg,
input[type="checkbox"].peer:checked ~ svg { opacity: 1; }

/* peer-checked for radio buttons (age group) */
input[type="radio"].peer { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
input[type="radio"].peer:checked + div,
input[type="radio"].peer:checked ~ div { background: rgba(34,211,238,0.1); border-color: #22d3ee; color: #22d3ee; }

@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-\[slideUp_0\.6s_ease-out\] { animation: slideUp 0.6s ease-out forwards; }