/* General Styles */
:root {
    /* Background Colors */
    --bg-soft-blue: #E6F2FF;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F8F9FA;
    
    /* Primary Colors */
    --primary-red: #EE6363;
    --primary-red-dark: #D54D4D;
    --primary-red-light: #F4A6A6;
    
    /* Text Colors */
    --text-dark: #2D2D2D;
    --text-medium: #666666;
    --text-light: #999999;
    
    /* Border Colors */
    --border-color: #D0D0D0;
    --border-light: #EAEAEA;
    
    /* Additional variables for form elements */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --box-shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Legacy variables for compatibility */
    --primary-color: var(--primary-red);
    --primary-dark: var(--primary-red-dark);
    --primary-light: var(--primary-red-light);
    --secondary-color: var(--bg-soft-blue);
    --accent-color: var(--bg-soft-blue);
    --light-color: var(--bg-light-gray);
    --dark-color: var(--text-dark);
    --gray-color: var(--text-medium);
    --gray-light: var(--border-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--bg-soft-blue); /* Soft blue background */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styles (keep your existing navbar styles) */

/* Registration Form Styles */
.registration-header {
    text-align: center;
    padding: 100px 0 40px; /* Increased top padding to avoid navbar overlap */
    background: var(--bg-soft-blue); /* Soft blue background */
    color: var(--text-dark);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* Optional: if navbar is fixed, ensure body doesn't hide content */
body {
    padding-top: 80px; /* Equal to navbar height */
}

.registration-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 20%),
                radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 20%);
}

.registration-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    z-index: 2;
    color: var(--text-dark); /* Dark text for contrast */
}

.registration-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: var(--text-dark); /* Dark text for contrast */
}


.registration-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.registration-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.registration-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.course-selection {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.course-selection:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark-color); /* Use darker text color for better readability */
    font-size: 1rem;
}

.form-group label.required:after {
    content: " *";
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background-color: #fff;
    color: var(--dark-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover {
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
    transform: translateY(-3px);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    background: var(--gray-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Course Selection Styles */
.course-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.course-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.course-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-sm);
}

.course-option input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.course-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(230, 57, 70, 0.05);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.1);
}

.course-option.selected::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), transparent);
    pointer-events: none;
}

.course-selection h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.course-selection h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.course-selection p {
    text-align: center;
    color: var(--dark-color); /* Use darker text color for better readability */
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Preferred Batch Timing Styles */
.form-group select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 3rem;
}

/* Other Course Input Styles */
.other-course-input {
    margin-top: 15px;
    grid-column: 1 / -1;
}

/* Response Messages */
.response {
    padding: 15px;
    margin-top: 20px;
    border-radius: var(--border-radius);
    display: none;
}

.success {
    background: #e8f4f8; /* Light blue background */
    color: #10b981; /* Success green */
    display: block;
    border: 1px solid #a8dadc; /* Blue border */
}

.error {
    background: #ffccd5; /* Light red background */
    color: #ef4444; /* Error red */
    display: block;
    border: 1px solid #f08080; /* Red border */
}

/* Spinner Animation */
.spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Styles (keep your existing footer styles) */

/* Responsive Styles */
@media (max-width: 768px) {
    .registration-container {
        flex-direction: column;
    }
    
    .registration-form, .course-selection {
        width: 100%;
    }
    
    .course-options {
        grid-template-columns: 1fr;
    }
}

/* Validation Styles */
.is-invalid {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25) !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--primary-color);
}

.is-invalid ~ .invalid-feedback {
    display: block;
}