@import url("./css/reset.css");


body {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    overflow-x: hidden;
}

.header img {
    width: 100%;
}

.main {
    margin-top: -38%;
    position: relative;
}


.bere {
    width: 100%;
    z-index: 4;
    position: relative;
}

.negru {
    width: 100%;
    position: absolute;
    top: 31%;
    left: 0;
    z-index: 2;
}

.cum-participi {
    width: 100%;
    position: absolute;
    top: 84.5%;
    left: 0;
    z-index: 3;
}

.bottom {
    position: absolute;
    top: 152.5%;
    left: 0;
    z-index: 2;
    background-image: url("./assets/images/asset-6.png");
    background-size: cover;
    background-repeat: no-repeat;
}

.inscrie-btn {
    /* used for debugging the area */
    /* border: 1px solid red; */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 41%;
    cursor: pointer;
    z-index: 56;
}

.formular-section {
    position: relative;
    bottom: 0;
    z-index: 4;
    font-weight: bold;
    color: #d82727;
}

.formular {
    background-image: url("./assets/images/formular-bg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 10%;
    padding-top: 20%;
    padding-bottom: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 5%;
    gap: 1rem;
}

.formular h3 {
    font-size: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.input {
    border: 3px solid #d82727;
    border-radius: 10px;
    background-color: white;
}

.checkboxes {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 0.75rem;
}

/* Ascunde checkbox-ul standard */
.formular .checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 3px solid #d82727;
    border-radius: 2px;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
}

/* Fundal roșu când este bifat */
.formular .checkbox input[type="checkbox"]:checked {
    background-color: white;
}

/* Desenează bifa albă când e bifat */
.formular .checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid #d82727;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}



.submit-btn {
    background-color: transparent;
    border: 0;
    cursor: pointer;
    width: 65%;
}

.under-form-btns {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

.under-formn-btn {
    cursor: pointer;
    width: 100%;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 500;
}

.consuma-responsabil {
    width: 75%;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.9));
}

.disclaimer {
    color: white;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
    padding:0 10px;
}

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.534);
    pointer-events: none;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.popup {
    pointer-events: auto;
    cursor: pointer;
}

@media screen and (min-width: 475px) {
    .formular h3 {
        font-size: 1.75rem;
    }

    .input-group {
        font-size: 1rem;
    }

    .checkboxes {
        font-size: 0.8rem;
    }
}

@media screen and (min-width: 768px) {
    .formular-section {
        padding: 0 10px;
        overflow-x: hidden;
    }

    .formular h3 {
        font-weight: bolder;
        font-size: 2.75rem;
        text-align: left;
        width: 100%;
        margin-left: 7.5%;
    }


    .formular {
        background-size: contain;
        background-position: center;
        padding-bottom: 15%;
    }

    .input-group {
        flex-direction: row;
        justify-content: flex-end;
        font-size: 0.9rem;
    }

    .inputs {
        margin-right: 15%;
        margin-top: 10px;
    }

    .input {
        width: 50%;
    }

    .checkboxes {
        margin-left: 45%;
        font-size: 0.6rem;
        gap: 2.5px;
    }

    .submit-btn {
        width: 30%;
        margin-right: 14%;
    }

    .under-form-btns {
        margin-top: -12.5%;
        width: 70%;
    }

    .consuma-responsabil {
        width: 35%;
        position: absolute;
        bottom: 10%;
        right: 0;
    }

    .disclaimer {
        font-size: 0.75rem;
    }
}

@media screen and (min-width: 1024px) {
    .inscrie-btn {
        height: 90vh;
    }

    .bottom {
        top: 135.5%;
        /* background-size: 100% 100%; */
    }

    .formular-section {
        padding: 0 50px;
        overflow: hidden;
        margin-top: 0%;
    }

    .formular {
        padding-top: 25%;
        padding-bottom: 22.5%;
        background-position: center right;
        background-size: 77.5%;

    }

    .formular h3 {
        margin-left: 49.5%;
    }

    .inputs {
        margin-right: 7.5%;
    }

    .input {
        width: 40%;
    }

    .checkboxes {
        margin-left: 56%;
    }

    .submit-btn {
        width: 25%;
        margin-right: -12.5%;
    }

    .under-form-btns {
        margin-top: -21.5%;
        width: 55%;
        margin-left: 22%;
        gap: 10%;
    }

    .popup {
        width: 65%;
        border-radius: 10px;
    }

    .consuma-responsabil {
        width: 20%;
        bottom: 7%;
        right: 5%;
    }
}

@media screen and (min-width: 1200px) {
    .inscrie-btn {
        height: 100vh;
    }

    .formular-section {
        margin-top: 3%;
    }

    .formular {

        padding-top: 26%;
        /* padding-bottom: 16.5%; */
    }

    .formular h3 {
        font-size: 3rem;
    }

    .input-group {
        font-size: 1rem;
    }

    .checkboxes {
        font-size: 0.75rem;
        margin-left: 58%;
        padding: 0;
    }

    .input {
        width: 42%;
        padding: 5px;
    }

    .submit-btn {
        width: 28%;
        margin-right: -9.5%;
    }

    .under-form-btns {
        margin-top: -18.5%;
    }

    .disclaimer {
        margin: 10px 25px;
    }
}

@media screen and (min-width: 1300px) {
    .formular {
        background-size: 76% 57%;
        padding-top: 24%;
    }

    .formular h3 {
        font-size: 3.5rem;
        margin-left: 53.5%;
    }

    .input-group {
        font-size: 1.1rem;
    }

    .inputs {
        margin-right: 1.5%;
    }

    .input {
        width: 44.5%;
    }

    .checkboxes {
        font-size: 0.85rem;
        margin-left: 55.5%;
    }

    .submit-btn {
        width: 24%;
        margin-right: -13.5%;
    }

    .under-form-btns {
        margin-top: -20.5%;
    }
}

@media screen and (min-width: 1500px) {
    .input-group {
        font-size: 1.25rem;
    }

    .checkboxes {
        font-size: 1rem;
        margin-left: 55.5%;
        margin-right: 2.5%;
    }
}

@media screen and (min-width: 1900px) {
    .formular h3 {
        font-size: 4.5rem;
    }

    .formular {
        background-size: 76% 54%;
    }

    .input-group {
        font-size: 1.5rem;
    }

    .input {
        width: 52.5%;
    }

    .inputs {
        margin-right: -5.5%;
    }

    .checkboxes {
        font-size: 1.15rem;
        margin-left: 47.5%;
    }

    .submit-btn {

        margin-right: -7.5%;
    }

    .consuma-responsabil {
        width: 15%;
        bottom: 5%;
        right: 3%;
    }
}

@media screen and (min-width: 2560px) {
    .under-form-btns {
        margin-top: -20.5%;
    }

    .formular {
        background-size: 76% 46%;
    }
}

@media screen and (max-width: 768px) {
    input[type="text"] {
        min-width:350px; max-width: 80%!important;
        padding:5px 10px;}

    .checkboxes {
        gap: 3px;
    }
}

.swal-confirm-button {
    background-color: #d82727 !important;
    color: #fff !important;
    border: none !important;
}