/* Стилізація модального вікна */
/* Стилізація модального вікна */
.modal {
    display: none; /* Спочатку приховане */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Відкриваємо модальне вікно */
.modal.show {
    opacity: 1;
    visibility: visible;
}

/* Контент модального вікна */
.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 400px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

/* Анімація для модального контенту */
.modal.show .modal-content {
    transform: translateY(0);
}

/* Кнопка закриття */
.close, .close-phones-modal{
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 65px;
    cursor: pointer;
}

.close-phones-modal{
    top: -10px;
}


.popup-form {
    background: #E8E8E8;
    background-image: url("../img/form-bg.png");
    padding: 35px 20px;
    border-radius: 5px;
    text-align: left;
    max-width: 350px;
    margin: auto;
}

.popup-form h3 {
    color:  var(--red);
    margin: 0 0 5px 0;
    font-size: 1.4rem;
}

.popup-form p.description{
    margin-bottom: 20px;
}

.popup-form p{
    color: #333333;
    margin: 0 0 10px 0;
    font-size: 0.9rem !important;
}

.popup-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.popup-form span{
    width: 100%;
}

.popup-form input:focus {
    border-color: #b10000;
}

.popup-form input[type="submit"] {
    background: #b10000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.popup-form input[type="submit"]:hover {
    background: #900000;
}

.slider #success-message, .appointment-form {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.slider #success-message.show, .appointment-form.show {
    opacity: 1;
    visibility: visible;
}

.popup-form .wpcf7-not-valid-tip,
.popup-form .wpcf7-response-output,
.popup-form .wpcf7-spinner{
    display: none;
}

.modal-content .wpcf7-response-output {
    display: none;
}

.popup-phones h3 {
    color: #b10000;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.popup-phones p {
    margin: 10px 0;
    text-align: center;
}

.popup-phones a {
    color: #b10000;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
}

.popup-phones a:hover {
    text-decoration: underline;
}

#modal-phones .modal-content{
    padding: 30px 25px;
}


/*--------------------------------------------*/


.slider .appointment-form {
    background: #E8E8E8;
    background-image: url("../img/form-bg.png");
    padding: 35px 20px;
    border-radius: 5px;
    text-align: left;
    max-width: 350px;
    margin: auto;
}

.slider .appointment-form h3 {
    color:  var(--red);
    margin: 0 0 5px 0;
    font-size: 1.4rem;
}

.slider .appointment-form p.description{
    margin-bottom: 20px;
}

.slider .appointment-form p{
    color: #333333;
    margin: 0 0 10px 0;
    font-size: 0.9rem !important;
}

.slider .appointment-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.slider .appointment-form span{
    width: 100%;
}

.slider .appointment-form input:focus {
    border-color: #b10000;
}

.slider .appointment-form input[type="submit"] {
    background: #b10000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.slider .appointment-form input[type="submit"]:hover {
    background: #900000;
}

.slider #success-message, .appointment-form {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.slider #success-message.show, .appointment-form.show {
    opacity: 1;
    visibility: visible;
}

.slider .wpcf7-not-valid-tip,
.slider .wpcf7-response-output,
.slider .wpcf7-spinner{
    display: none;
}



/*------------------------------*/

.footer-form {
    max-width: 400px;
}
#phone {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    border: none !important;
    box-sizing: border-box;
}

footer input:focus-visible {
    outline: none;
    box-sizing: border-box;
}

footer .wpcf7-submit {
    background-color: #c00;
    color: #fff;
    padding: 10px 40px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 0 5px 5px 0;
}

footer .wpcf7-form p {
    position: relative;
}



/*---------------------------------------------*/


.about-section-3 .appointment-form {
    background: #E8E8E8;
    background-image: url("../img/form-bg-2.png");
    padding: 35px 20px;
    border-radius: 5px;
    text-align: left;
    margin: auto;
    max-width: 500px;
    background-position: right;
    background-size: cover;
}

.about-section-3 .appointment-form h3 {
    color:  var(--red);
    margin: 0 0 5px 0;
    font-size: 1.4rem;
}

.about-section-3 .appointment-form p.description{
    margin-bottom: 20px;
}

.about-section-3 .appointment-form p{
    color: #333333;
    margin: 0 0 10px 0;
    font-size: 0.9rem !important;
}

.about-section-3 .appointment-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.about-section-3 .appointment-form span{
    width: 100%;
}

.about-section-3 .appointment-form input:focus {
    border-color: #b10000;
}

.about-section-3 .appointment-form input[type="submit"] {
    background: #b10000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.about-section-3 .appointment-form input[type="submit"]:hover {
    background: #900000;
}

.about-section-3 #success-message, .appointment-form {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.about-section-3 #success-message.show, .appointment-form.show {
    opacity: 1;
    visibility: visible;
}

.about-section-3 .wpcf7-not-valid-tip,
.about-section-3 .wpcf7-response-output,
.about-section-3 .wpcf7-spinner{
    display: none !important;
}

.about-section-3 .input-group span{
    width: 50%;
    display: inline-block;
}

.about-section-3 .input-group p {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 5px;
}

/*----------------------------------------------*/

.about-section-4 .appointment-form {
    background: #E8E8E8;
    background-image: url("../img/form-bg-2.png");
    padding: 35px 20px;
    border-radius: 5px;
    text-align: left;
    margin: auto;
    /*max-width: 500px;*/
    background-position: right;
    background-size: cover;
}

.about-section-4 .appointment-form h3 {
    color:  var(--red);
    margin: 0 0 5px 0;
    font-size: 1.4rem;
}

.about-section-4 .appointment-form p.description{
    margin-bottom: 20px;
}

.about-section-4 .appointment-form p{
    color: #333333;
    margin: 0 0 10px 0;
    font-size: 0.9rem !important;
}

.about-section-4 .appointment-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.about-section-4 .appointment-form span{
    width: 100%;
}

.about-section-4 .appointment-form input:focus {
    border-color: #b10000;
}

.about-section-4 .appointment-form input[type="submit"] {
    background: #b10000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.about-section-4 .appointment-form input[type="submit"]:hover {
    background: #900000;
}

.about-section-4 #success-message, .appointment-form {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.about-section-4 #success-message.show, .appointment-form.show {
    opacity: 1;
    visibility: visible;
}

.about-section-4 .wpcf7-not-valid-tip,
.about-section-4 .wpcf7-response-output,
.about-section-4 .wpcf7-spinner{
    display: none !important;
}

.about-section-4 .input-group span{
    width: 50%;
    display: inline-block;
}

.about-section-4 .input-group p {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 5px;
}
/*----------------------------------------------*/

.consult .appointment-form {
    background: #E8E8E8;
    background-image: url("../img/form-bg-2.png");
    padding: 35px 20px;
    border-radius: 5px;
    text-align: left;
    margin: auto;
    /*max-width: 500px;*/
    background-position: right;
    background-size: cover;
}

.consult .appointment-form h3 {
    color:  var(--red);
    margin: 0 0 5px 0;
    font-size: 1.4rem;
}

.consult .appointment-form p.description{
    margin-bottom: 20px;
}

.consult .appointment-form p{
    color: #333333;
    margin: 0 0 10px 0;
    font-size: 0.9rem !important;
}

.consult .appointment-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.consult .appointment-form span{
    width: 100%;
}

.consult .appointment-form input:focus {
    border-color: #b10000;
}

.consult .appointment-form input[type="submit"] {
    background: #b10000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.consult .appointment-form input[type="submit"]:hover {
    background: #900000;
}

.consult #success-message, .appointment-form {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.consult #success-message.show, .appointment-form.show {
    opacity: 1;
    visibility: visible;
}

.consult .wpcf7-not-valid-tip,
.consult .wpcf7-response-output,
.consult .wpcf7-spinner{
    display: none !important;
}

.consult .input-group span{
    width: 50%;
    display: inline-block;
}

.consult .input-group p {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 5px;
}

/*---------------------------------------------*/



.contacts-section-1 .appointment-form {
    background: #E8E8E8;
    background-image: url("../img/form-bg.png");
    padding: 35px 20px;
    border-radius: 5px;
    text-align: left;
    margin: auto;
    max-width: 510px;
}

.contacts-section-1 .appointment-form h3 {
    color:  var(--red);
    margin: 0 0 20px 0;
    font-size: 1.4rem;
}

.contacts-section-1 .appointment-form p.description{
    margin-bottom: 20px;
}

.contacts-section-1 .appointment-form p{
    color: #333333;
    margin: 0 0 10px 0;
    font-size: 0.9rem !important;
}

.contacts-section-1 .appointment-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.contacts-section-1 .appointment-form span{
    width: 100%;
}

.contacts-section-1 .appointment-form input:focus {
    border-color: #b10000;
}

.contacts-section-1 .appointment-form input[type="submit"] {
    background: #b10000;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 15px;
}

.contacts-section-1 .appointment-form input[type="submit"]:hover {
    background: #900000;
}

.contacts-section-1 #success-message, .appointment-form {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.contacts-section-1 #success-message.show, .appointment-form.show {
    opacity: 1;
    visibility: visible;
}

.contacts-section-1 .wpcf7-not-valid-tip,
.contacts-section-1 .wpcf7-response-output,
.contacts-section-1 .wpcf7-spinner{
    display: none;
}

.contacts-section-1 #success-message p {
    text-align: center;
}



@media (max-width: 500px) {
    .slider .appointment-form {
        padding: 20px 15px;
    }

    #phone {
        font-size: 14px;
    }

    .about-section-3 .input-group p {
        flex-direction: column;
    }

    .about-section-3 .input-group p br {
        display: none;
    }

    .about-section-3 .input-group span {
        width: 100%;
    }

    .about-section-3 .info #success-message p {
        text-align: center;
    }
}

