.admission-float {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
}

.admission-button {
    background: linear-gradient(to right, #f75700, #007bff);
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    animation: glowPulse 1.8s infinite;
    transition: all 0.3s ease;
}

.admission-button img {
    width: 26px;
    height: 26px;
    margin-right: 10px;
}

.admission-button span {
    font-weight: bold;
    font-size: 15px;
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.admission-form {
    margin-top: 12px;
    padding: 18px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 300px;
    display: none;
    flex-direction: column;
    animation: fadeInUp 0.4s ease-out;
    color: #333;
    position: relative;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admission-form h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #f75700;
    height: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 14px;
}

.input-group i {
    position: absolute;
    top: 8px;
    left: 8px;
    color: #f75700;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    height: 35px;
    padding: 7px 7px 7px 32px;
    border-radius: 6px;
    border: 2px solid #ccc;
    font-size: 12px;
    background: #fff;
    color: #333;
}

.input-group textarea {
    height: 50px;
    padding-top: 10px;
}

.input-group input.error-field,
.input-group textarea.error-field,
.input-group select.error-field {
    border-color: red;
}

.input-group input.valid-field,
.input-group textarea.valid-field,
.input-group select.valid-field {
    border-color: #28a745;
}

.submit-btn {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #007bff;
}

.close-form-btn {
    display: none;
}

@media screen and (max-width: 600px) {
    .admission-button {
        padding: 10px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }
    .admission-button img {
        margin: 0;
        width: 24px;
        height: 24px;
    }
    .admission-button span {
        display: none;
    }
    .admission-form {
        position: fixed;
        right: 10px;
        bottom: 70px;
        width: 90vw;
        max-width: 360px;
    }
    .close-form-btn {
        font-size: 20px;
        padding: 10px;
        background: #f75700;
        color: white;
        border: none;
        border-radius: 50%;
        position: absolute;
        top: -15px;
        right: -15px;
        width: 42px;
        height: 42px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
}

.typing-text {
    font-size: 16px;
    font-weight: 800;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

#captchaQuestion {
    font-weight: 600;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: monospace;
    white-space: nowrap;
}

#captchaInput {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    flex: 1;
    outline: none;
    transition: border-color 0.3s;
}

#refreshCaptcha {
    background-color: #eee;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#refreshCaptcha:hover {
    background-color: #ddd;
}

#formMessage {
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Error and Valid field states */
.input-group input.error-field,
.input-group textarea.error-field,
.input-group select.error-field {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.input-group input.valid-field,
.input-group textarea.valid-field,
.input-group select.valid-field {
    border-color: #28a745;
    background-color: #f0fff4;
}