.popup{
    position: fixed;
    z-index: 999;
    left: 50%;
    top: 50%;
    transition: all 0.2s ease;
    transform: translate(-50%, -50%);
    background-color: #F4F5FC;
    box-shadow: 0rem 0rem 0.5rem black;
    width: 70%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    border-radius: 20px;
    overflow: clip;
    font-family:Montserrat,sans-serif;
    max-height: 90vh;
    overflow: auto;

    opacity: 0;
    pointer-events: none;
}

.popup.visible{
    opacity: 1;
    pointer-events: auto;
}

.popup_title{
    color: #0C3284;
    text-align: center;
    font-size: 40px;
    font-style: normal;
    font-weight: 900;
    line-height: 43px;
}

.popup_subtitle{
    color: #0C3284;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 7px 35px;
    border-radius: 10px;
    background: #DDDFEC;
}

.close_popup_btn{
    position: absolute;
    right: 15px;
    top: 15px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.popup_image{
    background-image: url('https://moya.igrit.pl/images/pani_formularz.png');
    background-size: cover;
    display: flex;
    flex-direction: column-reverse;
    padding: 40px 60px;
    font-size: 25px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 5px black;
}

.popup_form{
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
}

.kontakt_form{
    display: flex;
    flex-direction: column;
}

.kontakt_form_text_input{
    border: 1px solid #0C3284;
    border-radius: 65px;
    padding: 12px 20px;
    color: #0C3284;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.custom_checkbox_container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    color: #0C3284;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.custom_checkbox_container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

.custom_checkbox_container:hover input ~ .checkmark {
    background-color: #0C328455;
}

.custom_checkbox_container input:checked ~ .checkmark {
  background-color: #0C3284;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom_checkbox_container input:checked ~ .checkmark:after {
  display: block;
}

.checkmark{
    border: 1px solid #0C3284;
    border-radius: 3px;
    align-self: anchor-center;
}

.custom_checkbox_container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.popup_checkboxes_container{
    padding: 0px 10px;
}

.popup_form_submit_btn{
    background-color: #D9000D;
    padding: 15px 25px;
    width: 65%;
    margin: auto;
    color: white;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.popup_form_submit_btn:hover{
    background-color: #cc020f;
}

.popup_form_submit_btn.disabled{
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.error_message{
    background-color: #cc020f60;
    color: white;
    border-radius: 10px;
    padding: 10px;
    display: none;
}

@media screen and (max-width: 1200px) {
    .popup {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        width: 90%;
    }
    .popup_image{
        display: none;
    }
}