@font-face {
    font-family: 'Steelish';
    src: url('/assets/fonts/Steelfish Rg.otf') format('opentype'),
        url('/assets/fonts/steelfish rg_0.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Steelish';
    src: url('/assets/fonts/Steelfish RgIt.otf') format('opentype'),
        url('/assets/fonts/steelfish rg it_0.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Steelish';
    src: url('/assets/fonts/Steelfish-Bold.ttf') format('truetype'),
        url('/assets/fonts/steelfish bd_0.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Steelish';
    src: url('/assets/fonts/steelfish bd it_0.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Eb OTF sources (normal) */
@font-face {
    font-family: 'Steelish';
    src: url('/assets/fonts/Steelfish Eb.otf') format('opentype'),
        url('/assets/fonts/steelfish eb_0.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Eb italic OTF */
@font-face {
    font-family: 'Steelish';
    src: url('/assets/fonts/steelfish eb it_0.otf') format('opentype'),
        url('/assets/fonts/Steelfish Eb It.otf') format('opentype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* Separate TTF for Eb Regular 800 */
@font-face {
    font-family: 'Steelish';
    src: url('/assets/fonts/SteelfishEb-Regular 800.ttf') format('truetype');
    font-weight: 800;
    font-style: bold;
    font-display: swap;
}



/* Weird file */
@font-face {
    font-family: 'Helen';
    src: url('/assets/fonts/hsdbgn.TTF') format('truetype');
    font-weight: 400;
}

small {
    font-family: 'Helen';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    /*background-image: url('/assets/img/madri_pattern_bg.png');
    background-repeat: repeat;*/
    background-color: white;
    font-family: 'Steelish', sans-serif;
    color: white;
    font-style: normal;
    font-weight: 400;
}

h1 {
    font-weight: 800;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

.age-check-container {
    margin-top: 50px;
}

.landing-container {
    margin-top: 50px;
}

input {
    background: #fff;
    border: none;
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    border-radius: 2px;
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
    -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
    -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
}

.button {
    display: inline-block;
    background: #ff0000;
    color: #fff;
    font-weight: 800;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 5px solid #c61b1f;
    padding: 0.6rem 2.2rem;
    font-size: 2rem;
    letter-spacing: 2px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.button:hover {
    display: inline-block;
    background: #c61b1f;
    color: #fff;
    font-weight: 800;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 5px solid #ff0000;
    padding: 0.6rem 2.2rem;
    font-size: 2rem;
    letter-spacing: 2px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}


/* Date inputs row */
.date-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.date-input {
    background: #fff;
    border: none;
    padding: 0.55rem 0.6rem;
    width: 115px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 2px;
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
    -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
    -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
}

.year-input {
    width: 140px;
}

/* Remember line */
.remember-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 700;
    margin: 0.5rem 0 1.2rem 0;
}

.remember-checkbox {
    width: 50px;
    height: 50px;
    accent-color: #222;
}

.checkbox {
    width: 30px;
    height: 30px;
    accent-color: #222;
    border: 1px solid black;
    border-radius: 40%;
}

.register-label {
    font-family: 'Helen';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    color: black;
    font-size: 0.8rem;
}

/* Enter button */
.enter-btn {
    display: inline-block;
    background: #fff;
    color: #c61b1f;
    font-weight: 800;
    border: none;
    padding: 0.6rem 2.2rem;
    font-size: 2rem;
    letter-spacing: 2px;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.madri-label {
    font-size: xx-large;
    font-weight: 800;
    font-style: bold;
}

.age-form .date-input:focus,
.age-form .date-input:focus-visible {
    outline: none !important;
    box-shadow:
        inset 0 -3px 0 rgba(0, 0, 0, 0.06) !important,
        0 6px 0 rgba(0, 0, 0, 0.18) !important;
}

input:focus-visible {
    outline: none;
}

input {
    border: 1px solid transparent
}

input:focus {
    border: 1px solid #E21F27;
    box-shadow: 0px 5px 5px 0px rgb(226, 31, 39, 0.28) inset;
}

a {
    color: black;
}

.madri-text {
    display: inline;
    background-color: #E21F27;
    box-shadow: 10px 0 0 #E21F27, -10px 0 0 #E21F27;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    line-height: 1.1;
    font-weight: 800;
    font-style: bold;
    font-size: 8rem;
}

.madri-text img {
    display: block;
    margin-top: 0;
    width: 100%;
    height: auto;
    margin-left: -10px;
    width: 30%;
    margin-bottom: 10%;
}

.madri-promo-container {
    text-align: right
}

.madri-promo-container2 {
    text-align: left
}

.consumption {
    padding-top: 25%;
    font-size: 2rem;
    font-weight: 800;
}


.consumption_mobile {
    display: none;
}

@media (min-width: 1280px) and (max-width: 1919px) {
    .madri-text {
        display: inline;
        background-color: #E21F27;
        box-shadow: 10px 0 0 #E21F27, -10px 0 0 #E21F27;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
        line-height: 1.1;
        font-weight: 800;
        font-style: bold;
        font-size: 6rem;
    }

    .consumption {
        padding-top: 40%;
        font-size: 2rem;
        font-weight: 800;
    }
}

@media (min-width: 1920px) {
    .madri-text {
        display: inline;
        background-color: #E21F27;
        box-shadow: 10px 0 0 #E21F27, -10px 0 0 #E21F27;
        -webkit-box-decoration-break: clone;
        box-decoration-break: clone;
        line-height: 1.1;
        font-weight: 800;
        font-style: bold;
        font-size: 8rem;
    }
}

/* small screens: stack vertically */
@media (max-width: 767px) {
    .date-row {
        display: flex;
        gap: 0.8rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        box-sizing: border-box;
    }

    .date-input {
        background: #fff;
        border: none;
        padding: 0.3rem 0.3rem;
        width: 60px;
        text-align: center;
        font-size: 2rem;
        font-weight: 700;
        border-radius: 2px;
        box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
        -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
        -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
    }

    .enter-btn {
        width: 100% !important;
    }

    .age-check-container {
        margin-top: 10px;
    }

    .landing-container {
        margin-top: 10px;
        text-align: center;
    }

    .madri-text {
        font-size: 6rem;
    }

    .madri-text img {
        margin-left: 35%;
    }

    .madri-promo-container {
        margin-top: 10%;
        text-align: center
    }

    .madri-promo-container2 {
        text-align: center
    }

    .age-form-container {
        text-align: center;
    }

    .consumption_mobile {
        display: block;
        font-size: 2rem;
        font-weight: 800;
        margin-top: -25%;
    }

    .consumption {
        display: none;
    }
}

.navbar {
    background-color: #E21F27 !important;
}

.nav-item .nav-link {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 2rem;
    color: white;
}

.white_content {
    /* Подредба: 1. Градиент (най-отгоре), 2. Шарка (по средата), 3. Плътен цвят (най-отдолу) */
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.40) 100%),
        url('/assets/img/madri_pattern_bg_white.png');

    background-color: #ffffff;
    /* Основен цвят, който запълва всичко под шарката */

    /* Допълнителни настройки за шарката */
    background-repeat: repeat;
    background-position: center;
    position: relative;
}

.red_content {
    /* Подредба: 1. Градиент (най-отгоре), 2. Шарка (по средата), 3. Плътен цвят (най-отдолу) */
    background-image:
        url('/assets/img/madri_pattern_bg.png');
    /* Основен цвят, който запълва всичко под шарката */

    /* Допълнителни настройки за шарката */
    background-repeat: repeat;
    background-position: center;
    position: relative;
}

.heading {
    text-transform: uppercase;
    font-size: 8rem;
    font-weight: 800;
    color: black;
}

.subheading {
    text-transform: uppercase;
    font-size: 6rem;
    font-weight: 800;
    color: white;
    background-color: #E21F27;
    padding-left: 1%;
    padding-right: 1%;
}

.text {
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: 800;
    color: black;
}

.prize-text {
    line-height: 1;
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.prize-text-large {
    line-height: 0.2;
    font-size: 4rem;
    font-weight: 800;
    color: white;
}

.prize-text-medium {
    line-height: 1;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fcb538;
}

.prize-text-small {
    font-family: 'Helen';
    font-weight: 400;
    font-stretch: condensed;
    color: white;
}

.winners-text {
    line-height: 1;
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.winners-text-large {
    line-height: 0.2;
    font-size: 4rem;
    font-weight: 800;
    color: white;
}

.winners-text-medium {
    line-height: 1;
    font-size: 1rem;
    font-weight: 800;
    color: #fcb538;
}

.winners-text-small {
    font-family: 'Helen';
    font-weight: 400;
    font-stretch: condensed;
    color: white;
}

.winners-phones {
    font-family: 'Steelish';
    font-weight: 800;
    font-size: 2rem;
    color: white;
}

.rules {
    font-family: 'Helen';
    font-weight: 400;
    font-stretch: condensed;
    color: black;
}

.mycodes-text {
    line-height: 1;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #E21F27;
}

.mycodes-text-large {
    line-height: 0.2;
    font-size: 4rem;
    font-weight: 800;
    color: white;
}

.mycodes-text-medium {
    line-height: 1;
    font-size: 2rem;
    font-weight: 800;
    color: #fcb538;
}

.mycodes-text-footer b {
    font-family: 'Steelish';
    line-height: 1;
    font-size: 2rem;
    font-weight: 800;
    color: black;
}

.mycodes-text-footer {
    font-family: 'Helen';
    font-weight: 400;
    font-size: 1.5rem;
    font-stretch: normal;
    color: black;
}

.mycodes-text-small {
    font-family: 'Helen';
    font-weight: 400;
    font-stretch: condensed;
    color: white;
}

.mycodes-codes {
    font-family: 'Steelish';
    font-weight: 800;
    font-size: 2rem;
    color: black;
}

.navbar {
    border-bottom: 5px solid #c61b1f;
    padding: 0 !important;
}



.nav-link {
    margin-top: 0.8rem;
}

.nav-item:hover {
    background-color: #c61b1f;
}

/* Радио бутони за роли с картинки */
.role-selector input[type="radio"] {
    display: none;
}

.role-card {
    height: 150px;
    cursor: pointer;
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 5px;
    transition: all 0.3s;
    text-align: left;
    background-color: #ffffffc4;
    backdrop-filter: blur(10px);
}

.role-card:hover {
    background-color: #f8f9fa;
}

.role-selector input[type="radio"]:checked+.role-card {
    border-color: #dc3545;
    /* Red branding */
    background-color: #E21F27;
}

.role-selector input[type="radio"]:checked+.role-card .mycodes-text {
    color: white !important;
}

.role-img {
    height: 80px;
    margin-bottom: 15px;
    transition: 0.3s;
}

/* Основен контейнер за подравняване */
.custom-checkbox-wrap {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
    user-select: none;
}

/* Скриваме системния квадрат */
.custom-checkbox-wrap input {
    display: none;
}

/* Новият "вкопан" квадрат */
.inset-box {
    min-width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 4px;
    /* или 2px според твоя стил */
    position: relative;
    transition: all 0.2s;
    border: 1px solid #E21F27;

    /* Твоят специфичен стил със сянка */
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
    -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
    -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.28) inset;
}

/* Стил на отметката (V-образен символ) */
.inset-box:after {
    content: "";
    position: absolute;
    display: none;
    left: 11px;
    top: 5px;
    width: 8px;
    height: 15px;
    border: solid #333;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}

.custom-checkbox-wrap input:checked~.inset-box {
    box-shadow: 0px 5px 5px 0px rgb(226, 31, 39, 0.28) inset;
}

/* Показване на отметката при избор */
.custom-checkbox-wrap input:checked~.inset-box:after {
    display: block;
}

/* Лека промяна на текста при чекване (опционално) */
.custom-checkbox-wrap input:checked~.register-label {
    font-weight: 700;
}

/* Стил за текста */
.register-label {
    font-size: 14px;
    color: #444;
    line-height: 1.3;
}

/* Контейнерът на грешката не заема място в потока */
.error-text {
    color: #ff0000;
    font-size: 0.7rem;
    font-weight: bold;
    position: absolute;
    /* Ключово: не мести съседните елементи */
    white-space: nowrap;
    /* Пречи на текста да се пренесе на нов ред и да разшири контейнера */
    display: block;
}

/* Позициониране за инпутите (код и телефон) */
#error-code,
#error-phone {
    margin-top: -5px;
    /* Нагласи според нуждите, за да е точно под инпута */
}

/* Контейнерът на чекбокса трябва да е relative, за да позиционираме грешката спрямо него */
.col-md-6.mb-3 {
    position: relative;
    padding-bottom: 15px;
    /* Резервираме малко място долу, което е постоянно */
}

#err-terms,
#err-privacy,
#err-age {
    bottom: -5px;
    /* Заковаваме грешката в дъното на колонката */
    left: 45px;
    /* Подравняваме я под текста, а не под кутийката */
}

.container-shadow {
    box-shadow:
        inset 0 8px 10px -5px rgba(0, 0, 0, 0.25),
        /* Сянка горе */
        inset 0 -8px 10px -5px rgba(0, 0, 0, 0.25);
    /* Сянка долу */
    margin-bottom: 20px;
}

.top-container-shadow {
    box-shadow:
        inset 0 -8px 10px -5px rgba(0, 0, 0, 0.25);
    /* Сянка долу */
    margin-bottom: 20px;
}

.bottom-container-shadow {
    box-shadow:
        inset 0 8px 10px -5px rgba(0, 0, 0, 0.25),
        /* Сянка горе */
}

@media screen and (max-width: 767px) {
    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: block;
    }

    .heading {
        font-size: 4rem;
    }

    .role-card {
        height: 200px;
    }

    .winners-codes {
        font-size: 2rem;
    }

    #rules, #prizes, #winners {
        scroll-margin-top: 90px;
        /* Сложи тук височината на твоето меню в пиксели */
    }
}

@media screen and (min-width: 768px) {
    .desktop-view {
        display: block;
    }

    .mobile-view {
        display: none;
    }

    .navbar-nav {
        height: 90px;
        padding: 0 !important;
    }
}