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

a {
    color: inherit;
}

p {
    font-size: 14px;
}

/* Visual indicator for required fields */
label.required::after {
    content: " *";
    color: red;
}

/* Visual indicator for optional fields */
label.optional::after {
    content: " (Optional)";
    font-style: italic;
    color: #888;
    font-weight: normal;
}

/* Section dividers for the long form */
.form-section-title {
    font-size: 14px;
    font-weight: bold;
    color: #0a5ed7;
    margin-top: 15px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkbox group styling */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    background: #fff;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.checkbox-item input {
    width: auto; 
    margin: 0;
}

/* --- ADDED FOR SENIOR CITIZEN LOGIC --- */
/* Disabled Checkbox Style (looks auto-calculated) */
.checkbox-item.disabled {
    background: #f0f0f0; 
    color: #888; 
    cursor: not-allowed; 
    border-color: #ddd; 
}
.checkbox-item.disabled input { 
    cursor: not-allowed; 
}

/* --- ADDED FOR PHONE INPUT (Split style) --- */
.phone-group { 
    display: flex; 
    align-items: center; 
    border: 1px solid #ccc; 
    border-radius: 6px; 
    overflow: hidden; 
}
.phone-group span { 
    background: #eee; 
    padding: 10px 12px; 
    font-size: 13px; 
    color: #555; 
    border-right: 1px solid #ccc; 
    font-weight: bold; 
}
.phone-group input { 
    border: none; 
    outline: none; 
    box-shadow: none; 
    border-radius: 0; 
}
.phone-group:focus-within { 
    border-color: #0a5ed7; 
    box-shadow: 0 0 0 3px rgba(10, 94, 215, 0.1); 
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
#toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 250px;
    padding: 16px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    /* Slide in over 0.3s, stay visible, fade out starting at 2.7s */
    animation: slideIn 0.3s forwards, fadeOut 0.3s forwards 2.7s;
    pointer-events: auto;
}

/* Toast Colors */
.toast.success { background: #10b981; border-left: 5px solid #064e3b; }
.toast.error   { background: #ef4444; border-left: 5px solid #7f1d1d; }
.toast.info    { background: #0a5ed7; border-left: 5px solid #074fb6; }

@keyframes slideIn {
    to { transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(20px); }
}