html, body {
    margin: 0;
    height: 100vh; /* Fixed height to prevent scrolling */
    overflow: hidden; /* Disable scrolling */
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #002244;
    position: relative;
    align-content: center;
}

/* Loader Container Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of everything */
    color: white; /* Text color for 'Loading...' */
    flex-direction: column;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between spinner and text */
}

/* Spinner animation */
.spinner {
    border: 8px solid rgba(255, 255, 255, 0.3); /* Light grey border */
    border-top: 8px solid #3498db; /* Blue top border (the spinning part) */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite; /* 1 second spin, linear, infinite */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Optional: Hide the form content when loader is active */
.form-container.loading > .form-wrapper {
    pointer-events: none;
    opacity: 0.5; /* Dim the form */
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/img04.jpg') no-repeat center center/cover;
    background-size: cover;
    opacity: 0.15;
}

*, *::before, *::after {
  box-sizing: border-box;
  
}

.form-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px; /* wider than before */
    align-items: center;
    align-content: center;
    justify-content: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.form-wrapper {
    background: #00224404;
    align-items: center;
    position: relative;
    padding: 50px;
    max-width: 900px;
    border-radius: 10px;
    margin: 20px auto;
    flex: content 2px;
}

.form-slides {
    position: relative;
    width: 100%;
    height: auto;
}

.form-panel {
    width: 100%;
    padding: 20px;
    background: none;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.form-panel.active {
    opacity: 1;
    transform: translateX(0);
    position: relative; 
}

.form-panel h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
}

.form-panel p {
    font-size: 0.9em;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
}

input, select, button {
    width: 100%;
    display: block;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #4e4343;
    font-size: 1em;
    box-sizing: border-box;

    
}

input::placeholder, select {
    color: #4e4343;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background-color: #007bff;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0057b3d2;
}

.toggle {
    font-size: 0.85em;
    color: #007bff;
    cursor: pointer;
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: center;
}

.toggle:hover {
    text-decoration: none;
    color: rgb(197, 197, 197);
}

.logo-section {
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 900px; /* match form width */
    margin: 0 auto;
    margin-bottom: 30px;
}

.logo {
    max-width: 150px; /* Adjust size as needed */
    height: auto;
}

@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }
    .form-wrapper {
        padding: 15px;
        margin: 10px auto;
    }
    .form-panel {
        padding: 15px;
    }
    input, select, button {
        padding: 8px;
        font-size: 0.9em;
    }
    .form-panel h2 {
        font-size: 1.5em;
    }
    .logo {
        max-width: 120px; /* Smaller logo on mobile */
    }
}