/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
}
label{
    display: block;
    padding: 3px 0px;
    padding-bottom: 5px;
    font-weight: 500;
    color: #010080;
}
h2 {
    text-align: center;
    font-weight: 600;
    color: #010080;
}
.form-check-label {
    color: black;
}
/* Main Section */
.jaintechacademy_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-color: #010080;
    text-align: center;
    padding: 3%;
    width: 100%;
    position: relative;
}

.jaintechacademy_container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 0;
}

/* Form */
.jaintechacademy_form {
    background: white;
    padding: 2%;
    border-radius: 12px;
    width: 80%;
    max-width: 50%;
    text-align: left;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jaintechacademy_form {
        width: 90%;
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .jaintechacademy_container h2 {
        font-size: 20px;
    }
    .jaintechacademy_form {
        width: 95%;
    }
    label{
        margin-top: 2px;
        font-size: 15px;
    }
}



.btn-primary {
    background-color: #010080;
    border-color: #010080;
    font-size: 20px;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: #000066;
    border-color: #000066;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.logo-container img {
    max-width: 100px;
    height: auto;
    margin-top: -5%;
}
.logo-container h2 {
    margin: 0;
    font-size: 1.5rem;
    margin-top: -3%;
}
@media (max-width: 768px) {
    .logo-container img {
        max-width: 80px;
        height: auto;
        margin-top: -5%;
    }
    .logo-container h2 {
        margin-top: -4%;
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
}

input, textarea, select {
    padding: 10px; /* Add padding inside inputs, textareas, and selects */
    margin-bottom: 10px; /* Add some space below each input */
    border-radius: 5px; /* Optional: adds rounded corners */
    border: 1px solid #ccc; /* Border for input fields */
    width: 100%; /* Ensure inputs take the full width */
    box-sizing: border-box; /* Make sure padding doesn't affect width */
}



@media (max-width: 767px) {
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    .jaintechacademy_form {
        padding: 15px;
        margin: 0;
        width: 100%;
    }

    /* Add some margin between inputs and form elements on mobile */
    input, textarea, select, button {
        margin-bottom: 10px; /* Adjust space between elements */
    }
    label{
        display: block;
        padding: 3px 0px;
        padding-bottom: 2px;
        font-weight: 500;
        color: #010080;
    }
}


input, textarea, select {
    transition: all 0.3s ease-in-out; /* Smooth transition for input elements */
}

input:focus, textarea:focus, select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

button {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    transform: translateY(-5px);
}

button:active {
    transform: translateY(0);
}

/* Initial state (before animation starts) */
.jaintechacademy_form {
    opacity: 0;
    transform: translateY(-50px);
    animation: fadeInDown 0.8s ease-in-out forwards;
}

/* Keyframes for the up-to-down animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Initial state - form elements are hidden and positioned left */
.jaintechacademy_form input,
.jaintechacademy_form textarea,
.jaintechacademy_form select,
.jaintechacademy_form .form-check {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.5s ease-in-out forwards;
}

/* Add delay for sequential animation */
.jaintechacademy_form input:nth-child(1) { animation-delay: 0.2s; }
.jaintechacademy_form textarea { animation-delay: 0.4s; }
.jaintechacademy_form select { animation-delay: 0.6s; }
.jaintechacademy_form .form-check:nth-child(1) { animation-delay: 0.8s; }
.jaintechacademy_form .form-check:nth-child(2) { animation-delay: 1s; }
.jaintechacademy_form .form-check:nth-child(3) { animation-delay: 1.2s; }
.jaintechacademy_form button { animation-delay: 1.4s; }

/* Keyframes for slide-in animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus effect: Slightly enlarge input field and highlight */
input:focus, textarea:focus, select:focus {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    transition: all 0.3s ease-in-out;
}
