/* ================= GLOBAL ================= */

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg,
            #ffd27f 0%,
            #ffe7b5 25%,
            #eaf2ff 60%,
            #3c0202 100%);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
}

.watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: clamp(35px, 8vw, 130px);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.035);
    pointer-events: none;
    z-index: 0;
    text-align: center;
}

/* ================= HEADER ================= */

.school-header {
background: linear-gradient(135deg,#3c0202 0%,#3c0202 50%,#ffd27f 120%);
padding: 10px 0;
box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* CENTER HEADER CONTENT */
.school-header-inner {
max-width: 1100px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: center;
gap: 30px;
padding: 0 20px;
}

/* BIGGER LOGO */
.school-logo {
width: 160px;
height: 160px;
object-fit: contain;
}

/* HEADER TEXT */
.school-text {
color: #ffffff;
text-align: center;
}

.school-name {
font-size: 44px;
font-weight: 800;
letter-spacing: 2px;
margin: 0;
}

.school-affiliation {
font-size: 18px;
margin-top: 8px;
opacity: 0.95;
}

.school-codes {
font-size: 15px;
margin-top: 10px;
}

.school-codes span {
color: #ffd27f;
font-weight: 700;
}

/* ================= FORM ================= */

.container {
    position: relative;
    z-index: 2;
    margin-top: 70px;
    margin-bottom: 80px;
}

.form-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-top: 6px solid #3c0202;
}

/* Improve Label Readability */
.form-label {
    font-weight: 600;
    font-size: 18px;
    color: #1f2d3d;
    /* darker for better readability */
    margin-bottom: 6px;
}

/* Required Asterisk */
.required {
    color: #dc3545;
    /* professional red */
    font-weight: 700;
    margin-left: 2px;
}

/* Form Header */
.card-header {
    background: linear-gradient(135deg, #3c0202 0%, #3c0202 50%, #ffd27f 120%);
    color: #ffffff;
    padding: 25px 40px;
    border-radius: 24px 24px 0 0 !important;

}

.card-header h4 {
    font-size: 24px;
    font-weight: 700;
}

/* Section Titles */
.section-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    color: #0d3b66;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3c0202, #ffd27f);
    border-radius: 5px;
}

.btnclr {
    background: #3c0202;
}

/* Inputs */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #dbe4f3;
    transition: all .3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #3c0202;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 14px;
}

/* Buttons */
.btn-primary {
    background: #3c0202;
    border: none;
    border-radius: 10px;
    padding: 12px 35px;
    font-weight: 600;
}

.btn-primary:hover {
    background: #0b5ed7;
}

.btn-secondary {
    border-radius: 10px;
    padding: 12px 35px;
}

/* Mandatory Note Styling */
.mandatory-note {
    font-size: 14px;
    font-weight: 500;
    color: #f8f9fa;
    opacity: 0.95;
}

/* Responsive: Move text below on small screens */
@media (max-width: 768px) {
    .mandatory-note {
        width: 100%;
        margin-top: 8px;
        font-size: 13px;
    }
}

/* ================= MOBILE RESPONSIVE FIX ================= */

@media (max-width: 992px) {

    /* Header Padding */
    .school-header-inner {
        padding: 0 20px;
        gap: 25px;
    }

    /* Logo smaller */
    .school-logo {
        width: 120px;
        height: 120px;
    }

    /* Heading smaller */
    .school-name {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .school-affiliation {
        font-size: 15px;
    }

    .school-codes {
        font-size: 13px;
    }
}

@media (max-width: 768px) {

    /* Stack header vertically */
    .school-header-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .school-logo {
        width: 100px;
        height: 100px;
    }

    .school-name {
        font-size: 26px;
    }

    .school-affiliation {
        font-size: 14px;
    }

    /* Reduce card padding */
    .card-body {
        padding: 20px !important;
    }

    /* Section title smaller */
    .section-title {
        font-size: 17px;
    }

    /* Labels slightly smaller */
    .form-label {
        font-size: 15px;
    }

    /* Make buttons full width */
    .text-end {
        text-align: center !important;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-secondary {
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {

    .school-name {
        font-size: 22px;
    }

    .watermark {
        font-size: 60px;
    }

    .card-header h4 {
        font-size: 18px;
    }

}

/* Validation Red Border */
.form-control:invalid,
.form-select:invalid {
    border-color: #dc3545;
}

.form-control:valid,
.form-select:valid {
    border-color: #ced4da;
}

/* Capitalize Professionally */
.text-proper {
    text-transform: capitalize;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    /* allow wrapping on small screens */
}

/* Mobile layout */
@media (max-width:768px) {

    .header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .registration-announcement {
        font-size: 13px;
    }

    .mandatory-note {
        font-size: 13px;
    }

    .card-header h4 {
        font-size: 18px;
    }
}

/* Announcement Styling */
.registration-announcement {
    font-weight: 600;
    font-size: 14px;
    color: #ffd27f;
    animation: blink 1.2s infinite;
}

/* Blink Effect */
@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}



#captchaImage {
    letter-spacing: 4px;
}

@media (max-width: 768px) {
    .captcha-box {
        margin-bottom: 15px;
    }
}