/* Advanced Age Calculator Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.aac-container {
    font-family: 'Inter', sans-serif;
    max-width: 500px;
    margin: 40px auto;
    padding: 0 20px;
}

.aac-calculator-wrapper {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 32px;
}

.aac-header {
    text-align: center;
    margin-bottom: 32px;
}

.aac-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    border-radius: 50%;
    margin-bottom: 16px;
    color: #dc2626;
    align-items: center;
    justify-content: center;
}

.aac-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.aac-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

.aac-form-group {
    margin-bottom: 24px;
}

.aac-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.aac-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    box-sizing: border-box;
}

.aac-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.aac-error {
    display: block;
    font-size: 13px;
    color: #dc2626;
    margin-top: 8px;
    min-height: 20px;
}

.aac-buttons {
    display: flex;
    gap: 12px;
}

.aac-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.aac-btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.aac-btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
}

.aac-btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 2px solid #d1d5db;
}

.aac-result {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #fecaca;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

.aac-result-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px;
}

.aac-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.aac-result-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
}

.aac-result-value {
    font-size: 36px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 8px;
}

.aac-result-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.aac-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.aac-footer p {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.aac-footer-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

.aac-footer-link:hover {
    text-decoration: underline;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.aac-shake {
    animation: shake 0.5s;
}

@media (max-width: 480px) {
    .aac-calculator-wrapper {
        padding: 32px 24px;
    }
    .aac-title {
        font-size: 28px;
    }
    .aac-result-value {
        font-size: 32px;
    }
    .aac-buttons {
        flex-direction: column;
    }
}
/* Ensure button is clickable */
.aac-btn {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.aac-btn-primary {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
    display: block;
    width: 100%;
    text-align: center;
}

.aac-btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: scale(1.02);
}

.aac-btn-primary:active {
    transform: scale(0.98);
}

/* Remove any potential blockers */
.aac-calculator-wrapper * {
    pointer-events: auto;
}

.aac-calculator-wrapper {
    position: relative;
    z-index: 1;
}