.summer-camp-admission-bg {
    background-image: url(/assets/css/img/bg/red-bg.png);
}

#bg-block.summer-camp-admission-bg-block {
    height: 145vh;
}

#bg-block.summer-camp-admission-bg-block .white-grad {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.08) 55%,
        rgba(255, 255, 255, 0.22) 75%,
        rgba(255, 255, 255, 0.55) 88%,
        rgba(255, 255, 255, 0.82) 96%,
        rgb(255, 255, 255) 100%
    );
}


.summer-camp-admission-form-wrap {
    max-width: 760px;
    margin: 0 auto;
    display: block;
    width: 100%;
}

.summer-camp-admission-form-wrap form {
    width: 100%;
}

.summer-camp-admission-input-spacer {
    margin-top: 10px;
}

.summer-camp-admission-date-input {
    width: 100%;
    box-sizing: border-box;
    background: #ECECEC;
    border-radius: 3px;
    border: 1px solid #ccc;
    padding: 14px 18px;
    color: #002169;
    opacity: 0.5;
    font-size: 18px;
}

.academy-floating-field {
    position: relative;
}

.academy-floating-field > input {
    padding-top: 22px;
    padding-bottom: 8px;
}

.academy-floating-field > label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #002169;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.18s ease;
    background: #ECECEC;
    padding: 0 4px;
    line-height: 1.1;
}

.academy-floating-field > input:focus + label,
.academy-floating-field > input:not(:placeholder-shown) + label {
    top: 8px;
    transform: none;
    font-size: 12px;
    opacity: 0.9;
}

.academy-floating-select {
    position: relative;
}

.academy-floating-select > select {
    padding-top: 22px;
    padding-bottom: 8px;
    padding-inline-end: 3rem;
    /* Native OS arrows ignore inset; custom chevron sits left of the border */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ececec;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23002169' stroke-opacity='0.45' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.125rem center;
    background-size: 14px 9px;
}

.academy-floating-select > label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #002169;
    opacity: 0.5;
    pointer-events: none;
    transition: all 0.18s ease;
    background: #ECECEC;
    padding: 0 4px;
    line-height: 1.1;
}

.academy-floating-select > select:focus + label,
.academy-floating-select > select:valid + label {
    top: 8px;
    transform: none;
    font-size: 12px;
    opacity: 0.9;
}

.summer-camp-admission-note-block {
    margin-top: 28px;
    color: rgba(0, 33, 105, 0.85);
    font-family: "webly-bold";
    font-size: 16px;
    line-height: 1.7;
    display: flex;
    gap: 48px;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.summer-camp-admission-note-left {
    flex: 1 1 auto;
    min-width: 0;
}

.summer-camp-admission-note-right {
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
}

.summer-camp-admission-required-list,
.summer-camp-admission-contact-list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.summer-camp-admission-required-list li,
.summer-camp-admission-contact-list li {
    margin-bottom: 4px;
}

.summer-camp-admission-required-list li:last-child,
.summer-camp-admission-contact-list li:last-child {
    margin-bottom: 0;
}

.summer-camp-admission-mb-18 {
    margin-bottom: 18px;
}

.summer-camp-admission-mb-10 {
    margin-bottom: 10px;
}

.summer-camp-admission-mb-4 {
    margin-bottom: 4px;
}

.summer-camp-admission-mb-0 {
    margin-bottom: 0;
}

.summer-camp-admission-form-wrap .error-block {
    color: red;
    font-size: 13px;
    line-height: 1.25;
    margin: 6px 0 2px;
    padding: 0;
}

/* Keep submit button in hover visual state on summer camp admission page */
.summer-camp-admission-form-wrap .submit {
    background: linear-gradient(92.38deg, #002169 -10.19%, #C50F3C 51.02%, #FFA200 104.72%);
    color: #ffffff;
    margin-left: auto;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 200px;
    box-sizing: border-box;
    white-space: nowrap;
}

.summer-camp-admission-form-wrap .submit span {
    background: unset;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    background-clip: unset;
    text-fill-color: #ffffff;
    color: #ffffff;
    display: inline-block;
    line-height: 1.2;
}

@media (max-width: 768px) {
    /*
     * Mobile academy form: smaller label type than desktop .academy-floating-field > label (18px);
     * inputs 17px + error spacing; desktop base rules unchanged.
     */
    #s-page .inner-container .s-page-body.shadow {
        font-size: 17px;
    }

    #s-page .inner-container .s-page-body.shadow > h1.h1-text-center-2rem {
        font-size: 17px;
        line-height: 1.25;
    }

    #summer-camp-admission-form .academy-floating-field > label,
    #summer-camp-admission-form .academy-floating-select > label {
        font-size: 14px;
        line-height: 1.2;
        max-width: calc(100% - 3.5rem);
        white-space: normal;
    }

    #summer-camp-admission-form .academy-floating-field > input:focus + label,
    #summer-camp-admission-form .academy-floating-field > input:not(:placeholder-shown) + label,
    #summer-camp-admission-form .academy-floating-select > select:focus + label,
    #summer-camp-admission-form .academy-floating-select > select:valid + label {
        font-size: 10px;
        line-height: 1.15;
        max-width: calc(100% - 3.5rem);
        white-space: normal;
    }

    #summer-camp-admission-form .academy-floating-field > input,
    #summer-camp-admission-form .academy-floating-field > input.summer-camp-admission-date-input,
    #summer-camp-admission-form .academy-floating-select > select {
        font-size: 17px;
        line-height: 1.3;
        min-height: 72px;
        padding-bottom: 12px;
        box-sizing: border-box;
    }

    .summer-camp-admission-form-wrap .error-block {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    #summer-camp-admission-form .error-block {
        margin-top: 12px;
        margin-bottom: 6px;
        font-size: 11px;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .summer-camp-admission-note-block {
        flex-direction: column;
        gap: 20px;
    }

    .summer-camp-admission-note-right {
        white-space: normal;
    }

    .summer-camp-admission-contact-list li {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .summer-camp-admission-form-wrap .submit {
        min-width: 180px;
        font-size: 18px;
        padding: 18px 36px;
    }
}
