/* Smart Choice Academy - Unified Admission CSS
    Theme: Modern IT / Professional Academic
*/

:root {
    --primary: #38bdf8;
    --secondary: #6366f1;
    --accent: #f43f5e;
    --dark-bg: #0f172a;
    --deeper-bg: #020617;
    --text-gray: #94a3b8;
    --glass: rgba(15, 23, 42, 0.7);
    --border-glass: rgba(255, 255, 255, 0.1);
}

/* 1. Global Reset & Animated Background */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--deeper-bg);
    color: #f1f5f9;
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Moving Mesh Background Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 1) 0%, var(--deeper-bg) 100%);
    z-index: -1;
    animation: backgroundPulse 15s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* 2. Page Loader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--deeper-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(56, 189, 248, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 3. Layout & Section */
.admission-section {
    padding: 60px 20px;
    width: 100%;
}

.form-container {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

/* 4. Form Header */
.form-header {
    margin-bottom: 35px;
}

.form-logo {
    height: 110px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.2));
    transition: transform 0.4s ease;
}

.form-logo:hover {
    transform: scale(1.05);
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 300;
}

/* 5. Inputs & Labels */
label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-glass) !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    height: auto;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3) !important;
    outline: none;
    transform: translateY(-1px);
}

/* Select Styling */
select.form-control option {
    background-color: var(--dark-bg);
    color: #fff;
}

optgroup {
    background-color: var(--deeper-bg);
    color: var(--primary);
}

/* 6. Submit Button */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    padding: 16px;
    border-radius: 14px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 25px;
    box-shadow: 0 8px 20px -5px rgba(99, 102, 241, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

/* Shimmer Animation for Button */
.btn-submit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    animation: shimmer 5s infinite;
}

/* Container for relative positioning */
.input-group-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Hidden by default */
.validation-icon {
    position: absolute;
    right: 15px;
    color: #22c55e;
    /* Green color */
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

/* Shown when the input is valid */
.validation-icon.show {
    opacity: 1;
    transform: scale(1);
}

/* Adjust input padding so text doesn't hit the icon */
.form-control {
    padding-right: 40px !important;
}

@keyframes shimmer {
    0% {
        left: -60%;
    }

    15% {
        left: 120%;
    }

    100% {
        left: 120%;
    }
}

/* 7. Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
    }

    .form-header h2 {
        font-size: 1.6rem;
    }
}

::selection {
    background: var(--primary);
    color: #fff;
}