/* ========================= */
/* General Styles */
/* ========================= */
body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(135deg, #0D1B2A 0%, #1B263B 100%);
    background-attachment: fixed;
    background-size: cover;
}

/* ========================= */
/* Menu Toggle Button */
/* ========================= */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #002E5D;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    padding: 8px;
    border-radius: 4px;
}

.menu-toggle:hover {
    color: #0056b3;
}

/* Ensure container has relative positioning for absolute menu toggle */
.main-header .container {
    position: relative;
}

/* ========================= */
/* Animated Background with Subtle Image */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-banner-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: blur(2px);
}

.shape {
    position: absolute;
    background: rgba(0, 207, 253, 0.05);
    border-radius: 50%;
    filter: blur(60px);
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: rgba(0, 46, 93, 0.08);
    animation: float 10s ease-in-out infinite 1s;
}

.shape-3 {
    top: 50%;
    right: 20%;
    width: 200px;
    height: 200px;
    background: rgba(210, 0, 0, 0.05);
    animation: float 7s ease-in-out infinite 0.5s;
}

.shape-4 {
    bottom: 30%;
    left: 20%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    animation: float 9s ease-in-out infinite 1.5s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Background Slideshow */
.slideshow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.slideshow-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(27, 38, 59, 0.85) 100%);
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(1.05);
    z-index: 0;
}

.slide img {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(1px);
}

.slide.active {
    opacity: 1;
    z-index: 0;
    transform: scale(1);
}

/* Fade animation */
.fade {
    animation-name: fade;
    animation-duration: 2s;
}

@keyframes fade {
    from {opacity: 0; transform: scale(1.08);}
    to {opacity: 1; transform: scale(1);}
}

/* Centered Container */
.registration-container {
    position: relative;
    top: 3em;
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
                0 0 20px rgba(0, 207, 253, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    overflow: hidden;
    transition: all 0.3s ease;
}

.registration-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #002E5D, #00CFFD, #002E5D);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Form Header */
.form-header {
    margin-bottom: 30px;
}

.form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #002E5D 0%, #004a94 100%);
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 46, 93, 0.2);
    position: relative;
    overflow: hidden;
}

.form-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2));
    border-radius: 50%;
}

.form-icon i {
    font-size: 36px;
    color: white;
}

/* Heading */
.registration-container h1 {
    color: #002E5D;
    font-size: 2.2rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.registration-container h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #00CFFD;
    border-radius: 3px;
}

.registration-container p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Form Progress */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.step-label {
    font-size: 0.85rem;
    color: #555;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #002E5D 0%, #004a94 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 46, 93, 0.3);
}

.progress-step.active .step-label {
    color: #002E5D;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
}

.progress-step.completed .step-number::after {
    content: '✓';
    position: absolute;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Groups */
.form-group {
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #002E5D;
    display: block;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.form-group label i {
    margin-right: 8px;
    color: #00CFFD;
}

/* Inputs & Select Dropdown */
.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid rgba(0, 46, 93, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus {
    border-color: #00CFFD;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 207, 253, 0.2);
    background-color: #fff;
    transform: translateY(-2px);
}

.form-group input.valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.form-group input.invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.form-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
    display: block;
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    border: 2px dashed rgba(0, 46, 93, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: #00CFFD;
    background-color: rgba(0, 207, 253, 0.05);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #555;
    z-index: 1;
}

.file-upload-text i {
    font-size: 2rem;
    color: #002E5D;
    margin-bottom: 10px;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.next-btn, .prev-btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-btn {
    background: linear-gradient(135deg, #002E5D 0%, #004a94 100%);
    color: white;
    border: none;
    margin-left: auto;
    box-shadow: 0 4px 15px rgba(0, 46, 93, 0.2);
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 46, 93, 0.3);
}

.prev-btn {
    background: transparent;
    color: #002E5D;
    border: 1px solid #002E5D;
}

.prev-btn:hover {
    background-color: rgba(0, 46, 93, 0.05);
}

.form-group input[type="file"] {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px dashed rgba(0, 46, 93, 0.3);
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: #00CFFD;
    background-color: rgba(0, 207, 253, 0.05);
}

/* Error Messages */
.error-message {
    color: #D20000;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none; /* Initially hidden */
    animation: fadeIn 0.3s ease;
}

/* Submit Button */
.primary-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    background: linear-gradient(135deg, #002E5D 0%, #004a94 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 46, 93, 0.3);
    letter-spacing: 0.5px;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #D20000 0%, #ff3333 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(210, 0, 0, 0.4);
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(210, 0, 0, 0.3);
}

/* Form Footer */
.form-footer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
}

.form-footer a {
    color: #002E5D;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #00CFFD;
    text-decoration: underline;
}

/* Admin Security Note */
.security-note {
    display: flex;
    align-items: center;
    background-color: rgba(0, 46, 93, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid #002E5D;
}

.security-icon {
    margin-right: 15px;
    font-size: 1.5rem;
    color: #002E5D;
}

.security-text h4 {
    margin: 0 0 5px 0;
    color: #002E5D;
    font-size: 1rem;
}

.security-text p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

/* Admin Features Preview */
.features-preview {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.features-preview h3 {
    color: #002E5D;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.features-preview h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #00CFFD;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: rgba(0, 46, 93, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 207, 253, 0.05);
}

.feature-item i {
    font-size: 1.5rem;
    color: #002E5D;
    margin-bottom: 10px;
}

.feature-item span {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-container {
        padding: 25px;
        margin: 30px auto;
        margin-top: 70px; /* Increased margin to account for fixed navbar */
    }
    
    .registration-container h1 {
        font-size: 1.8rem;
    }
    
    .form-progress {
        flex-direction: column;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 14px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .next-btn, .prev-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile menu responsive styles added for consistency with home page */
    .main-header .container {
        padding: 0 15px;
        position: relative;
    }
    
    .menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .main-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .main-nav ul.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 0;
    text-align: center;
    min-width: 320px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-content {
    padding: 30px;
}

.modal-content h3 {
    color: #002E5D;
    margin-bottom: 15px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #002E5D;
    transition: all 0.3s ease;
}

.close:hover {
    color: #D20000;
    transform: rotate(90deg);
}

.modal.show {
    display: block; /* Show modal when triggered */
}

.modal button {
    background: linear-gradient(135deg, #002E5D 0%, #004a94 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 46, 93, 0.2);
}

.modal button:hover {
    background: linear-gradient(135deg, #004a94 0%, #006ad8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 46, 93, 0.3);
}

/* Menu Toggle Button styles moved to top of file */

/* Additional mobile menu visibility for smaller screens */
@media (max-width: 480px) {
    .menu-toggle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        right: 15px;
        font-size: 1.3rem;
    }
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: rgba(0, 207, 253, 0.6);
    transform: scale(1.2);
}

/* Registration Number Custom Validation Styling */
input[name="reg_number"] {
    font-family: monospace;
    letter-spacing: 1px;
    text-align: center;
    font-size: 1.1rem;
}

input[name="reg_number"].valid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z' fill='%2328a745'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

input[name="reg_number"].invalid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z' fill='%23dc3545'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

/* Submission overlay styles */
.submission-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.submission-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #2a6496;
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.invalid {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 1px #ff3b30 !important;
}

.valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 1px #28a745 !important;
}


