/* -------------------- BASE (Desktop/Laptop) -------------------- */
.admission-wrapper {
    display: flex;
    min-height: 100vh; /* use 100vh (from new block) */
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    overflow: hidden;
    padding: 30px;
}

.admission-card {
    max-width: 900px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: #fff;
}

.admission-card h2 {
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Left Panel */
.admission-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 3rem;
    background: url("https://www.transparenttextures.com/patterns/cubes.png");
}

.admission-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #fff;
    margin-bottom: 1.5rem;
    object-fit: cover;
    background: #fff;
}

.admission-left h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.admission-left p {
    font-size: 1rem;
    opacity: 0.9;
    text-align: center;
    margin: 0.2rem 0;
}

/* Right Panel */
.admission-right {
    flex: 1;
    background: #ffffff;
    border-radius: 20px 0 0 20px;
    padding: 3rem;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.admission-right h2 {
    font-weight: bold;
    margin-bottom: 1rem;
    /* gradient text already handled by .admission-card h2 */
}

.section-title {
    font-size: 1.1rem;
    font-weight: bold;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 5px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.form-label {
    position: relative;
    font-weight: 400;
}

.form-label.required::after {
    content: "*";
    color: red;
    position: absolute;
    top: -8px;
    right: -7px;
    font-size: 1.2rem;
    font-weight: bold;
} 
/* Buttons */
.btn-modern {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-new {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: #fff !important;
}

.btn-update {
    background: linear-gradient(45deg, #ff512f, #dd2476);
    color: #fff !important;
}

.btn-cancel {
    background: linear-gradient(45deg, #f12711, #f5af19);
    color: #fff !important;
}

/* Footer */
.custom-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.custom-footer a {
    color: #3b82f6;
    text-decoration: none;
}

.custom-footer a:hover {
    text-decoration: underline;
}

/* -------------------- MOBILE VIEW -------------------- */
@media (max-width: 768px) {
    .admission-wrapper {
        flex-direction: column;
        padding: 0.5rem;
        min-height: 100vh;
    }
    .admission-left {
        padding: 0.5rem 0;
    }
    .admission-logo {
        width: 90px;
        height: 90px;
        margin: 0.3rem 0;
    }
    .admission-left h1 {
        font-size: 1.1rem;
        margin: 0.2rem 0;
    }
    .admission-left p {
        font-size: 0.75rem;
        margin: 0.1rem 0;
    }
    .admission-right {
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.5rem;
        width: 100%;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
    .admission-right h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .admission-right p {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
    .btn-modern {
        width: 100%;
        font-size: 0.85rem;
        padding: 8px 15px;
        margin-bottom: 0.4rem;
    }
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.4rem;
    }
    .custom-footer {
        font-size: 0.7rem;
        padding: 0.5rem 0;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .btn-modern {
        font-size: 1rem;
        padding: 10px 20px;
    }
    .admission-card h2 {
        font-size: 1.25rem;
    }
    .form-label {
        font-size: 0.9rem;
    }
}

/* -------------------- MODAL -------------------- */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* use lighter shade from new block */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-modal.active {
    display: flex;
}

.custom-modal-content {
    background: #fff;
    padding: 25px; /* from new block */
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease;
}

.custom-modal-header,
.custom-modal-content h5 {
    font-weight: bold;
    font-size: 1.2rem;
    color: #dc2626;
    margin-bottom: 10px;
}

.custom-modal-footer,
.custom-modal-content button {
    margin-top: 15px;
}

.custom-modal-content button {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.custom-modal-content button:hover {
    background: #2563eb;
}

/* .o_footer, .navbar {
    display: none !important;
} */

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
