/* ========================================= */
/*           REGISTER.CSS (FIXED)            */
/* ========================================= */

/* --- 1. Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #334155;
    background-color: #F1F5F9;
    
    /* Background Image Logic */
    background-image: url('college-bg.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    
    /* IMPORTANT: This centers the register box on the screen */
    display: flex;
    flex-direction: column;
}

/* --- 2. Header Styling (Matching Intro Page) --- */

/* Mobile First: Hidden by default */
.header {
    display: none; 
}

/* Desktop: Fixed Header */
@media (min-width: 269px) {
    body {
        padding-top: 100px; /* Prevents header from covering form */
    }
    
    .header {
        display: flex;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1000;
        justify-content: space-between;
        align-items: center;
        padding: 0 5%;
        background: #FFFFFF;
        border-bottom: 1px solid #e2e8f0;
        height: 90px;
    }
    
    .logo-section {
        display: block;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    /* FIXES THE BIG LOGO ISSUE */
    .logo-banner {
        height: 55px; /* Forces logo to be small and neat */
        width: auto;
    }
}

/* --- 3. Main Layout & Centering --- */
.register-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Starts at top with some padding */
    padding: 40px 20px;
    width: 100%;
}

/* The White Card */
.form-wrapper {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 900px;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 57, 114, 0.15);
    border: 1px solid #e2e8f0;
    margin-bottom: 40px;
}

/* --- 4. Typography --- */
.form-heading h1 {
    font-size: 32px;
    font-weight: 700;
    color: #002244;
    text-align: center;
    margin-bottom: 10px;
}

.form-heading p {
    color: #64748b;
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #003972;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 25px;
}

/* --- 5. Form Inputs & Grid --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1E293B;
    font-size: 14px;
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="date"], 
select, 
textarea {
    width: 100%;
    padding: 14px;
    background: #FFFFFF;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #334155;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

input:focus, 
select:focus, 
textarea:focus {
    outline: none;
    border-color: #003972;
    box-shadow: 0 0 0 4px rgba(0, 57, 114, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.required { color: #ef4444; }

/* --- 6. Radio & Checkbox --- */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.radio-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.form-group-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.form-group-checkbox label {
    margin-bottom: 0;
    cursor: pointer;
}

/* --- 7. Submit Button --- */
.submit-btn {
    width: 100%;
    margin-top: 30px;
    padding: 16px;
    background-color: #003972;
    color: #fff;
    border: 2px solid #003972;
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 57, 114, 0.2);
}

.submit-btn:hover {
    background-color: #fff;
    color: #003972;
    transform: translateY(-2px);
}

/* --- 8. Modal (Success Popup) --- */
.modal {
    display: flex;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h2 { color: #002244; margin: 15px 0 10px; }
.modal-content p { color: #64748b; margin-bottom: 25px; }
.success-icon img { width: 80px; }

.btn {
    padding: 12px 30px;
    background: #003972;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.btn:hover { background: #002244; }

/* --- 9. Mobile Responsiveness --- */
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-wrapper { padding: 30px 20px; }
    .form-heading h1 { font-size: 24px; }
    .register-section { padding-top: 20px; }
}