
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); /* Lighter, softer gradient */
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    padding-top: 30px;
    padding-bottom: 30px;
    color: #4a5568; /* Tailwind's gray-700 */
    line-height: 1.65;
}

.main-container { /* Added for better centering and spacing on larger screens */
    max-width: 1200px; /* Slightly wider for more content */
    margin: auto;
}

.registration-container {
    background: #ffffff; 
    border-radius: 24px; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); 
    overflow: hidden; 
}

.form-header {
    background: linear-gradient(to right, #4e73df, #224abe); /* Bootstrap primary to darker blue */
    color: white;
    padding: 30px 35px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    margin-bottom: 35px;
    text-align: center; /* Center header content */
}
.header-logo {
    max-width: 100px; /* Adjust as needed */
    height: auto;
    margin-bottom: 15px; /* Space below logo */
    border-radius: 50%; /* Circular logo if appropriate */
    background-color: rgba(255,255,255,0.1);
    padding: 5px;
}

.form-header h1 { 
    font-size: 2.25rem; 
    font-weight: 700; 
    letter-spacing: 0.2px; 
    margin-bottom: 8px;
}
.form-header p { 
    font-size: 1.05rem; 
    opacity: 0.9; 
    font-weight: 300;
}

.section-header {
    background: #f8f9fc; /* Lightest blue-gray */
    color: #224abe; 
    border-radius: 12px;
    padding: 18px 25px;
    margin-top: 20px; 
    margin-bottom: 30px;
    border-left: 8px solid #4e73df; 
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    display: flex; /* For icon and text alignment */
    align-items: center;
}
.section-header i.fas {
    font-size: 1.3rem;
    margin-right: 12px;
    opacity: 0.8;
}
.section-header h4 { 
    font-size: 1.35rem; 
    font-weight: 600; 
    margin-bottom: 0; 
}
.hindi-text {
    font-family: 'Noto Sans Devanagari', sans-serif; 
    font-size: 0.75rem; /* Slightly smaller */
    color: #6c757d; 
    display: block; 
    margin-top: 4px;
    font-weight: 400;
    font-style: italic;
}
.form-label { 
    font-weight: 600; /* Bolder labels */
    margin-bottom: 0.5rem; 
    font-size: 0.9rem;
    color: #343a40;
}
.form-control, .form-select {
    border-radius: 0.375rem; /* Bootstrap 5 default */
    border: 1px solid #d1d5db; /* Tailwind's gray-300 */
    padding: 0.65rem 1rem; 
    font-size: 0.95rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    background-color: #fdfdff; /* Slightly off-white */
}
.form-control::placeholder, textarea::placeholder { /* Style for placeholders */
    color: #a0aec0; /* Tailwind's gray-500 */
    opacity: 1; /* Firefox */
    font-style: italic;
    font-size: 0.9rem;
}
.form-control.has-placeholder { /* Class added by JS when placeholder is visible */
    color: #a0aec0;
    font-style: italic;
}

.form-control:focus, .form-select:focus {
    border-color: #4e73df; 
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
    background-color: #fff;
}
.btn-primary { 
    background-color: #4e73df; border-color: #4e73df; 
    padding: 0.7rem 2rem; font-size: 1.1rem; font-weight: 500;
    transition: all 0.25s ease-in-out;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.07);
}
.btn-primary:hover { 
    background-color: #224abe; border-color: #224abe; 
    transform: translateY(-3px); 
    box-shadow: 0 6px 12px rgba(34, 74, 190, 0.2);
}
.btn-info {
    background-color: #36b9cc; border-color: #36b9cc;
    color: white;
}
.btn-info:hover {
    background-color: #2c9faf; border-color: #2a96a5;
    color: white;
}

.btn-outline-danger { color: #e74c3c; border-color: #e74c3c; font-weight: 500;}
.btn-outline-danger:hover { background-color: #e74c3c; color: white; }
.btn-outline-primary { color: #4e73df; border-color: #4e73df; font-weight: 500;}
.btn-outline-primary:hover { background-color: #4e73df; color: white; }
.btn-outline-success { color: #1cc88a; border-color: #1cc88a; font-weight: 500;}
.btn-outline-success:hover { background-color: #1cc88a; color: white; }


.alert { 
    border-radius: 0.375rem; 
    font-size: 0.95rem; 
    border-width: 0; 
    border-left-width: 5px;
    padding: 1rem 1.25rem;
}
.alert-success { border-left-color: #1cc88a; background-color: #e7f8f2; color: #117a52;}
.alert-danger { border-left-color: #e74a3b; background-color: #fce8e6; color: #a5281b;}
.alert-info { border-left-color: #36b9cc; background-color: #e6f7f9; color: #1e6a76;}


.field-error-glow { 
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25) !important;
}
.form-control.is-invalid, .form-select.is-invalid { 
     border-color: #e74c3c;
}
.form-control.is-invalid:focus, .form-select.is-invalid:focus { 
    box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25);
}
.invalid-feedback { display: none; width: 100%; margin-top: .25rem; font-size: .875em; color: #e74c3c; font-weight:500;}
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback,
input[type="checkbox"].is-invalid ~ .invalid-feedback {
    display: block;
}

#webcam_modal .modal-content { border-radius: 12px; }
#webcam_modal .modal-header { background-color: #f8f9fc; border-bottom-color: #e3e6f0;}
#webcam_modal video { width: 100%; border-radius: 8px; border: 1px solid #d1d5db;}
#webcam_modal canvas { display: none; } 
.preview-image { 
    max-width: 180px; max-height: 180px; 
    border: 2px dashed #adb5bd; 
    padding: 6px; border-radius: 10px; margin-top: 12px;
    object-fit: cover;
    background-color: #f8f9fa;
}
.preview-image.signature { max-height: 90px; background-color: #fff; } 

.education-entry { 
    background-color: #fdfdff; 
    transition: box-shadow 0.3s ease, border-left-color 0.3s ease; 
    border-left: 4px solid transparent;
    padding: 20px !important;
}
.education-entry:hover { 
    box-shadow: 0 6px 15px rgba(0,0,0,0.09); 
    border-left-color: #6DD5FA;
}
.education-entry h5 { 
    color: #224abe; 
    font-weight: 600; 
    padding-bottom: 12px; 
    border-bottom: 1px solid #e3e6f0; 
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.form-check-label a { color: #4e73df; text-decoration: none; font-weight: 500;}
.form-check-label a:hover { text-decoration: underline; color: #224abe;}

.footer-links {
    padding-top: 20px;
    border-top: 1px solid #e3e6f0;
}
.footer-links a { margin: 0 10px; color: #4e73df; text-decoration: none; font-weight: 500;}
.footer-links a:hover { text-decoration: underline; color: #224abe;}

/* Styling for Terms Modal */
#termsModal .modal-content { border-radius: 15px; }
#termsModal .modal-header { background-color: #f8f9fc; border-bottom-color: #e3e6f0; }
#termsModal .modal-header .modal-title { color: #224abe; font-weight: 600;}
#termsModal .modal-body h6 { color: #4e73df; font-weight: 600; margin-top: 15px; margin-bottom: 5px; }
#termsModal .modal-body p { color: #495057; margin-bottom: 12px; }
#termsModal .modal-footer { border-top-color: #e3e6f0; }

/* Additional responsive adjustments if needed */
@media (max-width: 768px) {
    .form-header h1 { font-size: 1.8rem; }
    .section-header h4 { font-size: 1.15rem; }
    .registration-container { padding: 20px !important; }
}
