#contact-form{
    box-shadow: 0 0 20px 0 rgba(0,0,0,.08);
    width: 100%;
    border-radius: 8px;
    font-size: 0;
    padding: 2rem 0;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
}

.contact-form__container{
    padding: 0 2rem;
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 2rem;
    padding: 0 8px;
    margin-bottom: 0;
    font-size: 0;
    padding: 0 16px;
}
.contact-form__container > div{
    display: flex;
    flex-wrap: wrap;
}

.contact-form__field{
    float: left;
    clear: none;
    width: 50%;
    padding: 0 16px;
    margin-bottom: 28px;
    color: #4a4a4a;
    font-size: .875rem;
    position: relative;
}

.contact-form__field.recaptcha-field{
    width: 100% !important; 
}

.contact-form__field label{
    display: block;
    margin: 0;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.8;
    color: #0a0a0a;
    color: #4a4a4a;
    font-size: .8125rem;
    margin: 0 0 8px;
    position: relative;
    cursor: pointer;
    color: #4a4a4a;
    font-size: .8125rem;
    line-height: 1rem;
}

.contact-form__field input{
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 2.4375rem;
    margin: 0 0 1rem;
    padding: .5rem;
    border: 1px solid #cacaca;
    border-radius: 0;
    background-color: #fefefe;
    box-shadow: inset 0 1px 2px rgba(10,10,10,.1);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #0a0a0a;
    transition: box-shadow .5s,border-color .25s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: inline-block;
    width: 100%;
    font-size: 1rem;
    height: 50px;
    line-height: 50px;
    margin-bottom: 0;
    float: left;
    border: 1px solid #ccc !important;
    box-shadow: none;
    background: #fff;
    padding: 0 1rem;
    border-radius: 8px!important;
    font-weight: 700;
    margin: 0 0 4px;
}

.contact-form__field textarea{
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 2.4375rem;
    margin: 0 0 1rem;
    padding: .5rem;
    border: 1px solid #cacaca;
    border-radius: 0;
    background-color: #fefefe;
    box-shadow: inset 0 1px 2px rgba(10,10,10,.1);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #0a0a0a;
    transition: box-shadow .5s,border-color .25s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    max-width: 100%;
    display: inline-block;
    width: 100%;
    font-size: 1rem;
    height: 50px;
    line-height: 50px;
    margin-bottom: 0;
    float: left;
    border: 1px solid #ccc;
    box-shadow: none;
    background: #fff;
    padding: 0 1rem;
    border-radius: 8px!important;
    font-weight: 700;
    padding: 16px;
    line-height: 18px;
    height: 106px;
    margin: 0 0 4px;
}

.contact-form__field.contact-textarea{
width: 100%;
}

button.contact-form__submit{
    display: inline-block;
    vertical-align: middle;
    padding: .85em 1em;
    border: 1px solid transparent;
    border-radius: 0;
    transition: background-color .25s ease-out,color .25s ease-out;
    font-family: inherit;
    font-size: .9rem;
    -webkit-appearance: none;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    background-color: #2199e8;
    color: #fefefe;
    transition: all .2s ease-in;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 500;
    font-family: Red Hat Display,Arial,Helvetica,sans-serif;
    min-height: 3.125rem;
    line-height: normal;
    padding: .5rem 1.5rem;
    border-radius: 8px;
    background-color: #2199e8;
    color: #0a0a0a;
    background: #0b57ad;
    border: 1px solid #0b57ad;
    color: #fff;
    margin: 0 16px;
    clear: both;
    display: table;
}

button.contact-form__submit:hover{
    background: #0b57ad;
    border: 1px solid #0b57ad;
    color: #fff;
    box-shadow: 0 1px 7px 0 rgba(0, 0, 0, .3);
}

.contact-select select{
    display: none;
}

.contact-select .chose-container{
    position: relative;
    vertical-align: middle;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


.chose-single{
    cursor: pointer;
    display: block;
    height: 50px;
    line-height: 50px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: none;
    font-size: 15px;
    color: #4a4a4a;
    padding-left: 16px;
    color: inherit!important;
}

.chose-single span{
    display: block;
    overflow: hidden;
    margin-right: 26px;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 58px;
    font-weight: 700;
    font-size: 1rem;
    color: #0a0a0a;
}
.chose-single .group-name{
    margin-right: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 400;
    color: #999;
    margin-right: 0;
}

.chose-single div {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 18px;
    height: 100%;

    background: 0 0;
    position: absolute;
    width: 46px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0;
    top: 0;
    border-left: 1px solid #ccc;
}

.chose-drop{
    position: absolute;
    top: 100%;
    z-index: 1010;
    width: 100%;
    border: 1px solid #0B57AD;
    border-top: 0;
    background: #fff;
    box-shadow: 0 4px 5px rgba(0,0,0,.15);
    clip: rect(0,0,0,0);
    margin-top: -1px;
    border-radius: 0 0 4px 4px;
    background-clip: padding-box;
}
.chose-drop .chose-results{
    color: #444;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0 4px 4px 0;
    padding: 0 0 0 4px;
    max-height: 240px;
    -webkit-overflow-scrolling: touch;
    font-size: 16px;
    padding: 8px 16px!important;
    min-height: 1.5em;
    max-height: 300px;
    line-height: 1.5em;
    color: #4a4a4a;
    margin: 0 0 10px!important;
}

.chose-drop .chose-results li{
    display: none;
    margin: 0;
    padding: 5px 6px;
    list-style: none;
    line-height: 15px;
    word-wrap: break-word;
    -webkit-touch-callout: none;
    padding: 7.5px 0!important;
    border: 1px solid transparent!important;
    font-size: 16px!important;
    line-height: 20px!important;
    display: list-item;
    cursor: pointer;
    padding-left: 15px;
    padding-left: 15px!important;
}

.contact-form__container .chose-drop .chose-results li{
    padding-left: 0px!important;
}

.chose-container-active.chose-with-drop .chose-single {
    border: 1px solid #aaa;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    background-image: linear-gradient(#eee 20%, #fff 80%);
    box-shadow: 0 1px 0 #fff inset;
}

.chose-container.chose-with-drop .chose-single {
    box-shadow: 0 1px 2px rgba(10, 10, 10, .1);
}

.chose-container-active.chose-with-drop .chose-single {
    background-image: none;
    border-color: #0B57AD;
}

.chose-container-active.chose-with-drop .chose-drop{
    clip: auto;
}
.chose-container-active.chose-with-drop .chose-single div{
    border: none !important;
}
.chose-single .group-name:after{
    content: ":";
    padding-left: 2px;
    vertical-align: top;
}

.contact-select .chose-single .group-name:after{
    content: '' !important;
}

.chose-results li:hover {
    border-top: 1px solid #ccc !important;
    border-bottom: 1px solid #ccc !important;
    background: #fff;
    color: #4a4a4a;
}

.contact-form__container input::-webkit-input-placeholder,.contact-form__container textarea::-webkit-input-placeholder {
    color: #0a0a0a !important;
    font-weight: 400 !important;
}


.contact-form__container input:focus{
    transition: box-shadow .5s,border-color .25s ease-in-out;
    outline: 0;
    border: 1px solid #8a8a8a;
    background-color: #fefefe;
    box-shadow: 0 0 5px #cacaca;
    transition: box-shadow .5s,border-color .25s ease-in-out;
    border: 1px solid #0b57ad !important;
}

.contact-form__container textarea:focus{
    transition: box-shadow .5s,border-color .25s ease-in-out;
    outline: 0;
    border: 1px solid #8a8a8a;
    background-color: #fefefe;
    box-shadow: 0 0 5px #cacaca;
    transition: box-shadow .5s,border-color .25s ease-in-out;
    border: 1px solid #0b57ad !important;
}

.contact__text, .contact__text_hidden{
    font-size: .875rem!important;
    font-style: normal;
    line-height: 1.4;
    color: #666;
    margin: 8px 0 0;
}

.contact__text_hidden{
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-in-out;
}
.contact__text_hidden.visible {
    max-height: 600px; /* Maksymalna wysokość dla rozwiniętego tekstu */
    /* Ustaw odpowiednio dużą wartość, aby obsłużyć pełny tekst */
}


.contact__toggle{
    transition: all .2s ease-in;
    font-size: .75rem !important;
    line-height: .875rem;
    color: #0b57ad !important;
    border-bottom: 1px dotted #0b57ad;
    display: inline-block;
    margin-top: 12px;
    cursor: pointer;
}

.contact-form__field.contact-form__text{
    width: 100%;
}

.contact_input__group{
    display: table;
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    margin-bottom: 0;
    position: relative;
}

.contact_input__group .contact_group__label{
    margin: 0;
    white-space: nowrap;
    display: table-cell;
    vertical-align: middle;
    padding: 0 1rem;
    border: 1px solid #cacaca;
    background: #e6e6e6;
    color: #0a0a0a;
    text-align: center;
    white-space: nowrap;
    width: 1%;
    height: 100%;
    border-radius: 0;
    border-radius: 8px;
    padding: 0;
    min-width: 50px;
    height: 50px;
    line-height: 50px;
    color: #4a4a4a;
    margin-right: 8px;
    border-right: 1px solid #cacaca;
}

.contact-form__container small{
    font-size: 12px;
    line-height: 1rem;
    font-weight: 500;
    clear: both;
    display: block;
    color: red;
}

/* gpt */
#contact-form .message-box {
    text-align: left;
    padding: 40px;
    margin-top: -32px !important;
    margin: 0 -16px;
    margin-bottom: 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-align: center;
    background-color: #fff;
}

#contact-form .message-box.success {
    background-color: #dcfbb3;
    /* border: 2px solid #28a745;
    color: #28a745; */
    color: #208a00;
}

#contact-form .message-box.error {
    background-color: #fbb3b3;
    color: #a10010; /* Czerwony tekst */
}

#contact-form .message-content{
    text-align: left;
    
}

#contact-form .message-content h4 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: bold;
}

#contact-form .message-content p {
    margin: 0;
    font-size: 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#contact-form [type=button]:focus, #contact-form [type=button]:hover, #contact-form [type=submit]:focus, #contact-form [type=submit]:hover, #contact-form button:focus, #contact-form button:hover{
    background-color: #0B57AD !important;
    outline: none;
}

@media (max-width: 767px){
    .contact-form__field{
        width: 100%;
    }
}

.contact-form__field.contact-checkbox{
    width: 100% !important;
}

.contact-form__container .loan__statute > label{
    display: block;
    margin: 0;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.8;
    color: #0a0a0a;
    color: #4a4a4a;
    font-size: .8125rem;
    margin: 0 0 8px;
    position: relative;
    cursor: pointer;
    padding-left: 28px;
    font-weight: 500;
    line-height: 1.25rem;
} 

.loan__statute > label input{
    width: 0;
    height: 0;
    display: none;
}

.loan__statute > label > span:before{
    content: "";
    height: 20px;
    width: 20px;
    border-radius: 3px;
    border: 1px solid #ccc !important;
    background-color: white;
    position: absolute;
    left: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.loan__statute input[type=checkbox]:checked+span:before, .loan__statute input[type=radio]:checked+span:before {
    content: "\f00d";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    color: #0b57ad;
    line-height: 20px;
    text-align: center;
    font-size: 16px;
}

.loan__statute .error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.reloader{
    position: absolute;
    z-index: 88;
    height: 100%;
    width: 100%;
    background-color: hsla(0, 0%, 100%, 0.699);
    text-align: center;
    top: 0;
    left: 0;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.reloader .loader{
    width: 36px;
    height: 36px;
    border: 5px solid #0a4f9d;
    border-bottom-color: transparent;
}
