
/* =========================================================
   KCG NURSERY ADMISSION - RAINBOW GARDEN THEME
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Quicksand:wght@400;500;600;700&display=swap');


:root {
    --purple: #7053a5;
    --purple-dark: #49346f;
    --pink: #f28b9b;
    --yellow: #ffd66b;
    --blue: #83c9ed;
    --green: #8bcfb0;
    --orange: #ffb47c;

    --page-bg: #f8f8fd;
    --surface: #ffffff;

    --text: #39354a;
    --muted: #77758a;
    --border: #eeedf4;

    --shadow: 0 8px 28px rgba(71, 57, 110, 0.08);

    --radius: 0px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    line-height: 1.65;
    color: var(--text);

    background:
        radial-gradient(circle at 5% 10%, #fff0f3 0, transparent 20%),
        radial-gradient(circle at 95% 25%, #eaf7ff 0, transparent 22%),
        radial-gradient(circle at 50% 95%, #f1fbea 0, transparent 25%),
        var(--page-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
}

a {
    text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.school-header {
    position: relative;
    background: #fff;
    border-bottom: 4px solid transparent;

    border-image: linear-gradient(
        90deg,
        var(--pink),
        var(--yellow),
        var(--green),
        var(--blue),
        var(--purple)
    ) 1;
}

.school-header .py-3 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.school-logo {
    display: block;
    width: 500px;
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.admission-page {
    min-height: calc(100vh - 160px);
}

.admission-page > .container {
    max-width: 1320px;
}


/* =========================================================
   ADMISSION BANNER
   ========================================================= */

.admission-banner {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 0;
    color: var(--purple-dark);

    background:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,.8) 0 4px, transparent 5px),
        radial-gradient(circle at 90% 70%, rgba(255,255,255,.7) 0 5px, transparent 6px),
        linear-gradient(120deg, #ffe4e9, #fff1c9 48%, #dff4ff);

    box-shadow: var(--shadow);
}

.admission-banner::before {
    content: '✦';
    position: absolute;
    top: 5px;
    right: 8%;
    font-size: 3em;
    color: rgb(233, 123, 123);
    transform: rotate(15deg);
}

.admission-banner::after {
    content: '★';
    position: absolute;
    bottom: 0;
    left: 7%;
    font-size: 3em;
    color: rgba(94, 133, 238, 0.35);
    transform: rotate(-15deg);
}

.admission-banner h1 {
    position: relative;
    z-index: 1;
    font-size: 1.389em;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    color: var(--purple-dark);
}

.admission-banner p {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 3px 14px;
    margin-bottom: 0;
    border-radius: 0;
    background: #fff;
    color: var(--purple);
    font-size: 0.667em;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(71, 57, 110, 0.08);
}


/* =========================================================
   INSTRUCTIONS CARD
   ========================================================= */

.instructions-card {
    height: 100%;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 5px solid var(--yellow);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.instructions-card h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--purple-dark);
    font-size: 1.4em;
    font-weight: 900;
    margin-bottom: 20px;
}

.instructions-card h5::before {
    content: '✿';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff0f3;
    color: var(--pink);
    border-radius: 0;
    font-size: 1.4em;
}


/* Instructions list */

.instructions-card ol {
    padding-left: 24px;
    margin-bottom: 22px;
}

.instructions-card ol li {
    padding-left: 5px;
    margin-bottom: 13px;
    color: #625e70;
    line-height: 1.7;
}

.instructions-card ol li::marker {
    color: var(--purple);
    font-weight: 900;
}

.instructions-card p {
    color: var(--muted);
    line-height: 1.7;
}

.instructions-card strong {
    color: var(--purple-dark);
}

.instructions-card hr {
    border: 0;
    height: 2px;

    background: linear-gradient(
        90deg,
        var(--pink),
        var(--yellow),
        var(--green),
        var(--blue)
    );

    opacity: 0.65;
    margin: 28px 0;
}


/* Requirements section */

.instructions-card > p:last-child {
    padding: 15px;
    background: #eef9f3;
    border: 1px solid #d9f0e3;
    border-radius: 0;
    color: #42765c;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.form-message {
    padding: 15px 18px;
    margin-bottom: 24px;
    border: 1px solid;
    border-left-width: 5px;
    font-size: 0.85em;
}

.form-message.success {
    color: #397858;
    background: #eef9f2;
    border-color: #d5eddd;
    border-left-color: var(--green);
}

.form-message.error {
    color: #a13e51;
    background: #fff0f2;
    border-color: #f7d6dc;
    border-left-color: var(--pink);
}

.admission-form-card {
    position: relative;
    overflow: hidden;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 5px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-heading {
    padding-bottom: 22px;
    margin-bottom: 26px;
    border-bottom: 1px dashed #e4dfee;
}

.form-heading h4 {
    color: var(--purple-dark);
    font-size: 1.4em;
    font-weight: 900;
    margin-bottom: 6px;
}
.form-heading h4 i {
    color: var(--pink);
    vertical-align: top;
}
.form-heading p {
    color: var(--muted);
    font-size: 0.722em;
}


/* =========================================================
   FORM CONTROLS
   ========================================================= */

.form-label {
    display: block;
    color: #504a63;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    min-height: 48px;
    padding: 10px 13px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9em;
    color: var(--text);
    background-color: #fff;
    border: 1.5px solid #e5e1ed;
    border-radius: 0;
    transition: all 0.2s ease;
}

.form-control::placeholder {
    color: #b3afbd;
}

.form-control:hover,
.form-select:hover {
    border-color: #c5b8df;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(112, 83, 165, 0.10);
    outline: none;
}

.form-select {
    cursor: pointer;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.btn-admission {
    min-height: 50px;
    padding: 13px 22px;
    color: #fff;
    background: linear-gradient(110deg, #7053a5, #9278c5);
    border: none;
    border-radius: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 0.833em;
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(112, 83, 165, 0.22);
    transition: all 0.25s ease;
}

.btn-admission:hover,
.btn-admission:focus {
    color: #fff;
    background: linear-gradient(110deg, #584080, #7053a5);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(112, 83, 165, 0.28);
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    padding: 15px 18px;
    border-radius: 0;
    font-size: 0.722em;
}

.alert-danger {
    display: block;
    padding: 15px 18px;
    color: #a13e51;
    background: #fff0f2;
    border: 1px solid #f7d6dc;
    border-left: 5px solid #e87591;
}

.alert-danger i {
    color: #e87591;
    font-size: 1.1em;
}

.alert-success {
    color: #397858;
    background: #eef9f2;
    border-color: #d5eddd;
}

.alert ul {
    padding-left: 20px;
    margin-bottom: 0;
}


/* =========================================================
   CLOSED ADMISSION
   ========================================================= */

.closed-card {
    max-width: 550px;
    padding: 48px 35px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow);
}

.closed-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
    color: var(--purple);
    background: #f3edff;
    border-radius: 0;
    font-size: 1.778em;
}

.closed-card h2 {
    color: var(--purple-dark);
    font-size: 1.333em;
    font-weight: 900;
    margin-bottom: 12px;
}


/* =========================================================
   KIDS ILLUSTRATION
   ========================================================= */

.kids-illustration {
    width: 100%;
    margin: 35px auto 0;
    text-align: center;
}

.kids-illustration img {
    display: block;
    width: 100%;
    max-width: 850px;
    height: auto;
    margin: 0 auto;
}


/* =========================================================
   FOOTER
   ========================================================= */

.school-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.667em;
}



/* -------- Form 2: Section Headings -------- */

.admission-form .form-heading {
    background: #f3effb;
    border-left: 5px solid #7053a5;
    padding: 18px 22px;
    margin-top: 18px;
    margin-bottom: 28px !important;
}

.admission-form .form-heading h4 {
    color: #49346f;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3em;
    font-weight: 800;
    margin-bottom: 6px;
}

.admission-form .form-heading h4 i {
    color: #f28b9b;
    margin-right: 8px;
}

.admission-form .form-heading p {
    color: #706780;
    font-size: 0.9em;
    margin-bottom: 0;
    padding-left: 2px;
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .admission-form .form-heading {
        padding: 15px 16px;
        margin-top: 12px;
        margin-bottom: 22px !important;
    }

    .admission-form .form-heading h4 {
        font-size: 1.15em;
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .instructions-card,
    .admission-form-card {
        padding: 25px;
    }

}


@media (max-width: 767.98px) {

    .school-logo {
        width: 245px;
        max-height: 78px;
    }

    .admission-page > .container {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    .admission-banner {
        padding: 30px 18px;
        border-radius: 0;
    }

    .admission-banner h1 {
        font-size: 1.389em;
    }

    .instructions-card,
    .admission-form-card {
        padding: 22px 19px;
        border-radius: 0;
    }

    .instructions-card h5 {
        font-size: 0.944em;
    }

    .instructions-card ol li {
        font-size: 0.889em;
    }

    .form-heading h4 {
        font-size: 1.111em;
    }

    .closed-card {
        padding: 38px 23px;
    }

}
