/* ============================
   BOSSCAST PAGE — MAIN STYLES
   ============================ */

.bosscast-sizer {
    width: 87.5rem;
}

.headline {
    transform: rotate(-2.998deg);
    color: #FFF;
    text-align: center;
    font-family: "FridayDisplay", sans-serif;
    font-size: 5.625rem;
    font-style: normal;
    font-weight: 700;
    line-height: 90%;
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    margin-left: -15rem;
    margin-bottom: 0;
}

.headline_1 {
    margin-top: -6rem;
}

.headline_2 {
    margin-left: 15rem;
}

.form-check {
    width: 36rem;
    margin: auto;
}

.form-check-label {
    display: block;
    font-size: 1.375rem;
}

/* --- Page wrapper --- */
.bosscast-page {
    background-color: #030c06;
    background-image: url('../img/Background-Sber-Kasting.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 100vh;
    font-family: 'Roboto', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

/* --- Decorative fur elements (corners) --- */
.bosscast-page .deco-topleft {
    position: absolute;
    top: -3.75rem;
    left: -5rem;
    width: 21.25rem;
    pointer-events: none;
    z-index: 0;
    transform: rotate(180deg);
}

.bosscast-page .deco-bottomright {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 26.25rem;
    pointer-events: none;
    z-index: 0;
}

.bosscast-page .deco-spiral {
    position: absolute;
    top: 2rem;
    left: -4.5rem;
    width: 11.25rem;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.bosscast-page .deco-donut {
    position: absolute;
    bottom: -11.75rem;
    left: -3.25rem;
    width: 18rem; /* 18 */
    pointer-events: none;
    z-index: 0;
}

.bosscast-page .deco-ball {
    position: absolute;
    bottom: 50.5rem;
    right: -4.5rem;
    width: 7.5rem;
    pointer-events: none;
    z-index: 0;
}

.bosscast-page .deco-heart {
    position: absolute;
    top: -2.5rem;
    right: 2.5rem;
    width: 6.25rem;
    pointer-events: none;
    z-index: 0;
}

/* --- Content wrapper --- */
.bosscast-page .bosscast-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem 0 12rem;
}

/* --- Container --- */
.bosscast-page .container {
    max-width: 72.8rem;
}

/* --- Logo / head block --- */
.bosscast-page .bosscast-logo {
    display: block;
    margin: 0 auto 2rem;
    width: 113%;
}

.bosscast-page .bosscast-logo--mobile {
    display: none;
}

.bosscast-page .bosscast-logo--mobile-wide {
    display: none;
}

/* --- Subtitle / lead text --- */
.bosscast-page .bosscast-lead {
    font-size: 2.125rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
    text-align: center;
    color: #fff;
    font-family: "FridayDisplay", sans-serif;
    font-style: normal;
    font-weight: normal;
    line-height: 120%; /* 2.55rem */
    letter-spacing: 0.0425rem;
}

/* --- Form card --- */
.bosscast-page .bosscast-form-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 4.5rem 3.5rem 2rem;
}

/* --- Form labels --- */
.bosscast-page .form-label {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    color: #000;
    line-height: 1.2;
}

/* --- Social links group --- */
.bosscast-page .field-social-group .form-group {
    margin-bottom: 0.625rem;
}

.bosscast-page .field-social-group .form-group:last-child {
    margin-bottom: 0;
}

/* --- Inputs & textareas --- */
.bosscast-page .form-control,
.bosscast-page select.form-select {
    padding: 0.875rem 1.125rem;
    background: #fff;
    color: #101010;
    font-size: 1.5rem;
    line-height: 1.4;
    box-shadow: none;
    outline: none;
    height: 3.75rem;
    border-radius: 1.25rem;
    border: 1px solid #000;
    width: 100%;
}

.bosscast-page .form-control:focus,
.bosscast-page select.form-select:focus {
    background: #fff;
    color: #101010;
    box-shadow: 0 0 0 1px #000;
    border-color: #000 !important;
}

.bosscast-page textarea.form-control {
    min-height: 5.625rem;
    resize: vertical;
}

/* --- Submit button --- */
.bosscast-page .button_submit {
    font-family: "FridayDisplay", sans-serif;
    background: #4ddc3a;
    color: #000;
    border: none;
    border-radius: 3.125rem;
    padding: 1.125rem 4rem;
    font-style: normal;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    background: linear-gradient(87deg, #21A038 -0.02%, #00D900 49.96%, #42E3B4 99.93%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.bosscast-page .button_submit:hover {
    background: #62f04d;
    transform: translateY(-0.125rem);
}

.bosscast-page .button_submit:active {
    transform: translateY(0);
}

/* --- Checkbox / consent --- */
.bosscast-page .required label::after {
    content: '';
}

.bosscast-page .form-check {
    display: flex;
    align-items: center;
}

.bosscast-page .form-check-input {
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0;
}

.bosscast-page .form-check-label {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 0.25rem;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: .2rem;
}

.bosscast-page .form-check-label a {
    color: #fff;
    text-decoration: underline;
}

/* --- Flash result message --- */
.bosscast-page .result-message {
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 5rem 0;
    color: #fff;
    line-height: 1.3;
}

/* --- Field error state (Bootstrap 5: is-invalid / invalid-feedback) --- */
.bosscast-page .has-error .form-label,
.bosscast-page .has-error label {
    color: #FF2C2C;
}

.bosscast-page .has-error .form-control,
.bosscast-page .has-error select.form-select,
.bosscast-page .form-control.is-invalid,
.bosscast-page select.form-select.is-invalid {
    border-color: #FF2C2C;
    background-image: none;
}

.bosscast-page .mb-3:has(.form-control.is-invalid) .form-label,
.bosscast-page .mb-3:has(select.form-select.is-invalid) .form-label {
    color: #FF2C2C;
}

.bosscast-page .has-error .help-block,
.bosscast-page .invalid-feedback {
    display: none !important;
}

/* --- Error hint --- */
.bosscast-page .form-errors-hint {
    font-size: 1.375rem;
    color: #ffcc00;
    text-align: center;
    margin-top: 0.75rem;
}

/* --- mb helpers inside card --- */
.bosscast-page .bosscast-form-card .mb-3 {
    margin-bottom: 1.25rem !important;
}

.form-text {
    font-size: 1.375rem;
}

._mobile {
    display: none;
}
._desktop {
    display: block;
}

/* ============================
   RESPONSIVE — MOBILE
   ============================ */

@media (max-width: 1399px) {
    html {
        font-size: 3vw;
    }

    /* Headline / titles */
    .headline {
        font-size: 3.2rem;
        letter-spacing: 0.071rem;
        margin-left: 0;
    }

    .headline_1 {
        margin-top: -0.667rem;
        margin-left: -3.667rem;
    }

    .headline_2 {
        margin-left: 4.333rem;
    }

    .bosscast-page {
        padding-bottom: 15rem;
        padding-top: 5rem;
    }

    /* Decorative elements */
    .bosscast-page .deco-topleft {
        width: 2.667rem;
        top: -0.333rem;
        left: -0.5rem;
    }

    .bosscast-page .deco-bottomright {
        width: 51.667rem;
        bottom: -6.333rem;
        left: auto;
        right: -25.5rem;
    }

    .bosscast-page .deco-spiral {
        top: 12.156rem;
        left: auto;
        right: 0;
        width: 9.778rem;
        z-index: 10;
        opacity: 1;
    }

    .bosscast-page .deco-donut {
        bottom: -30.75rem;
        left: -5.25rem;
        width: 12rem;
    }

    .bosscast-page .deco-ball {
        display: none;
    }

    .bosscast-page .deco-heart {
        display: none;
    }

    /* Inner padding */
    .bosscast-page .bosscast-inner {
        padding: 0.622rem 0 2.667rem;
    }

    /* Container */
    .bosscast-page .container {
        max-width: 100%;
        padding-left: 1.333rem;
        padding-right: 1.333rem;
    }

    /* Logo */
    .bosscast-page .bosscast-logo--desktop {
        display: none;
    }

    .bosscast-page .bosscast-logo--mobile-wide {
        background-image: url('../img/head-mob-wide.png');
        background-repeat: no-repeat;
        background-position: 50% 0;
        background-size: 46rem auto;
        display: block;
        width: 100%;
        height: 40rem;
        margin: 0 auto -1rem;
    }

    /* Lead text */
    .bosscast-page .bosscast-lead {
        font-size: 1.511rem;
        margin-top: 3rem;
        margin-bottom: 4.667rem;
        letter-spacing: 0.025rem;
    }

    /* Form card */
    .bosscast-page .bosscast-form-card {
        border-radius: 2.667rem;
        padding: 3.556rem 1.4rem 2.778rem;
        margin: 0 1.167rem 0;
    }

    /* Form labels */
    .bosscast-page .form-label {
        font-size: 1.244rem;
        margin-bottom: 0.444rem;
    }

    /* Inputs & selects */
    .bosscast-page .form-control,
    .bosscast-page select.form-select {
        height: 3.378rem;
        border-radius: 0.889rem;
        font-size: 1.244rem;
        padding: 0.889rem 1rem;
        border-width: 0.2rem;
    }

    .bosscast-page textarea.form-control {
        min-height: 6.667rem;
    }

    /* Social links group spacing */
    .bosscast-page .field-social-group .form-group {
        margin-bottom: 0.889rem;
    }

    /* mb helpers */
    .bosscast-page .bosscast-form-card .mb-3 {
        margin-bottom: 0.778rem !important;
    }

    /* Submit button */
    .bosscast-page .button_submit {
        width: 30.667rem;
        height: 5.333rem;
        border-radius: 2.667rem;
        padding: 1.067rem 0.889rem;
        font-size: 2.667rem;
        letter-spacing: 0.053rem;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Checkbox / consent */
    .bosscast-page .form-check-label {
        font-size: 1.244rem;
        margin-left: 0.667rem;
    }

    .bosscast-page .form-check-input {
        width: 3.556rem;
        height: 3.556rem;
    }

    /* Error hint */
    .bosscast-page .form-errors-hint {
        font-size: 1.067rem;
    }

    /* Result message */
    .bosscast-page .result-message {
        font-size: 2.133rem;
    }

    .bosscast-sizer {
        width: 100%;
    }

    .form-check {
        width: 27.667rem;
    }

    ._mobile {
        display: block;
    }
    ._desktop {
        display: none;
    }

    .form-text {
        font-size: .875rem;
    }
}
