/* General styles */
body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f4f5f7;
    background-image: url('photo.JPG');
    background-size: cover;
    background-size: cover; /* Розтягуємо фото на всю сторінку */
    background-repeat: no-repeat; /* Забороняємо повторення фону */
    background-attachment: fixed; /* Фіксуємо фон, щоб він не змінювався при масштабуванні */
    background-position: center;
}

/* Header */
header {
    background-color: #000000;
    color: yellow;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Вирівнювання елементів на початок */
    align-items: center;
    padding: 10px 20px;
    opacity: 0;
    animation: fadeInHeader 1.5s ease-out forwards;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Це розподіляє простір між елементами */
}



header .logo {
    width: 90px; /* Розмір логотипу */
    height: 90px;
    object-fit: contain;
    margin-right: 10px; /* Відступ між логотипом і заголовком */
    animation: slideDown 1.5s ease-out forwards;
}
header .header-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Відступ між логотипом і заголовком */
}
/* Вирівнювання правої частини */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    
}

.header-right .contact-info {
    margin-right: 10px; /* Відступ від кнопки About Us */
}

.email-link, .phone-link {
    font-size: 16px; /* Розмір тексту */
    color: #007bff; /* Колір посилання */
    text-decoration: none; /* Прибрати підкреслення */
    transition: transform 0.5s ease-in-out, color 0.5s ease-in-out; /* М'яка анімація */
}

.email-link:hover, .phone-link:hover {
    transform: scale(1.15); /* Збільшення елемента */
    color: #0056b3; /* Зміна кольору при наведенні */
}



header .about-us-btn {
    background-color: yellow; /* Жовтий колір */
    color: #000; /* Чорний текст */
    font-weight: bold;
    padding: 10px 20px;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

header .about-us-btn:hover {
    background-color: #FFC107; /* Темніший жовтий */
}

header .about-us-btn:active {
    transform: scale(0.95); /* Зменшення при кліку */
}

/* Container for form */
.container {
    max-width: 600px;
    width: 90%;
    background: #fff;
    padding: 40px;
    margin: 40px auto;
    margin-left: auto; /* Align the form to the right */
    margin-right: 10%; /* Optional: add a specific right margin */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSync 1.5s ease-out forwards;
}

/* Input fields and buttons styles */
h2 {
    font-weight: 600;
    color: #333;
}

label {
    font-weight: bold;
    font-size: 16px;
    color: #555;
    display: block;
    margin-top: 15px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* Button */
/* About Us Button */
.about-btn {
    background-color: #FFDD00;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

button.about-btn:hover {
    background-color: #0056b3; /* Темніший синій при наведенні */
}

button.about-btn:active {
    transform: scale(0.95); /* Легкий ефект натискання */
}

/* Header Styling Update */


/* Link for privacy policy */
a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Modal windows */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    
}

.modal-content {
    background: #fff;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-weight: bold;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #f00;
}

/* Animation */
@keyframes fadeInHeader {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInSync {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    body, html {
        background-image: none; /* Вимикає фон на екранах менших або рівних 768px */
    }
}
textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: 0.3s ease;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.required {
    color: red;
    font-weight: bold;
}

/* Responsive Design */


/* Call button */
button.call-btn {
    background-color: #FF0000; /* Червоний колір фону */
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1em;
}

button.call-btn:hover {
    background-color: #8b0000; /* Трохи темніший червоний при наведенні */
    transform: scale(1.05); /* Легке збільшення при наведенні */
}

button.call-btn:active {
    transform: scale(0.95); /* Легкий ефект натискання */
}


footer {
    background-color: #000000; /* Синій фон */
    color: white; /* Білий текст */
    position: fixed; /* Фіксована позиція */
    bottom: 0;
    left: 0;
    width: 100%; /* Ширина на всю сторінку */
    text-align: center;
    padding: 10px;
    font-size: 16px;
    opacity: 0;
    animation: fadeInSync 1.5s ease-out forwards;
    font-weight: bold; /* Робить текст жирним */
}

footer p {
    margin: 0;
}
/* Button Send */
/* Button Send */
button.send-btn {
    background-color: #000000; /* Синій фон */
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px; /* Згладжені краї */
    padding: 12px 20px; /* Відступи для кнопки */
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px; /* Доданий відступ, щоб кнопка була трохи нижче */
}

button.send-btn:hover {
    background-color: #FFDD00;; /* Темніший синій при наведенні */
    transform: scale(1.05); /* Легке збільшення при наведенні */
}

button.send-btn:active {
    transform: scale(0.95); /* Легкий ефект натискання */
}

/* Контейнер для контактної інформації */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
    font-size: 14px;
    color: #fff;
    text-align: right;
}

.contact-info a {
    color: #FFDD00; /* Жовтий колір для посилань */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #FFC107; /* Темніший жовтий при наведенні */
}
@media (max-width: 768px) { 
    /* Центруємо форму на мобільних пристроях */
    
    html, body {
        overflow-x: hidden; /* Забороняє горизонтальну прокрутку */
        width: 100%;
        height: 100%;
        margin: 0;
    }
    header {
        background-color: #000000; /* Білий фон */
    }
    h1 {
        color: #fbff00; /* Білий колір тексту */
    }
    .container {
        width: 70%; /* Ширина форми 70% на мобільних пристроях */
        margin-top: 20px; /* Відступ зверху */
        margin-bottom: 20px; /* Відступ від футера */
        box-shadow: none; /* Вимикаємо тінь, якщо вона заважає */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: auto; /* Центруємо контейнер */
        margin-right: auto; /* Центруємо контейнер */
    }

    body, html {
        background-image: none; /* Вимикає фон на екранах менших або рівних 768px */
        background-color: #feffa9; /* Ніжний синій колір */
    }
   
    header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center; /* Центруємо елементи хедера */
        width: 100%;
        opacity: 1;
        text-align: center; /* Центруємо текст в хедері */
        padding-left: 0; /* Відміна відступів */
        padding-right: 0; /* Відміна відступів */
    }

    header .header-left {
        display: flex;
        flex-direction: column;
        align-items: center; /* Центруємо логотип і заголовок */
        gap: 5px; /* Зменшено відстань між елементами */
        margin-bottom: 8px; /* Зменшено відступ між логотипом та контактною інформацією */
    }

    header .header-left .logo {
        width: 50px; /* Розмір логотипу */
        height: 50px;
    }

    header .header-left h1 {
        font-size: 24px; /* Зменшено розмір шрифта */
        margin: 0;
    }
    
    header .header-right {
        display: flex;
        flex-direction: column;
        align-items: center; /* Центруємо контактну інформацію та кнопку */
        gap: 10px;
        margin-top: 10px; /* Відступ між контактною інформацією та кнопкою */
        width: 100%;
        justify-content: center; /* Центруємо елементи по вертикалі */
        text-align: center; /* Центруємо текст */
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center; /* Центруємо контактні елементи */
        font-size: 14px;
        color: #000000;
        text-align: center; /* Центруємо текст */
    }

    .contact-info a {
        color: #ffffff;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease;
    }

    .contact-info a:hover {
        color: #FFC107;
    }

    .home-btn {
        background-color: #FFDD00;
        color: #000;
        font-weight: bold;
        text-decoration: none;
        border-radius: 6px;
        transition: background-color 0.3s ease;
        width: 25%; /* Розтягнути кнопку на всю ширину */
        text-align: center; /* Центрувати текст кнопки */
    }

    .home-btn:hover {
        background-color: #0056b3;
    }

    .home-btn:active {
        transform: scale(0.95);
    }

    /* Зменшення розміру шрифтів заголовків */
    h2 {
        font-size: 20px;
    }

    .email-link, .phone-link {
        color: white;
        display: flex;
        justify-content: center; /* Центрує вміст по горизонталі */
        align-items: center; /* Центрує вміст по вертикалі */
        width: 100%; /* Забезпечує, щоб елементи займали всю ширину */
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    button {
        font-size: 14px; /* Зменшення шрифтів */
        padding: 10px; /* Менше відступи */
    }

    button.send-btn, button.call-btn {
        font-size: 14px; /* Зменшення розміру шрифта на кнопках */
        padding: 10px; /* Зменшення відступів на кнопках */
        width: 100%; /* Розтягування кнопок на всю ширину */
    }

    footer {
        position: fixed; /* Змінено з fixed на relative для мобільних пристроїв */
        margin-top: 20px; /* Додаємо відступ зверху */
        background-color: rgb(0, 0, 0); /* Білий фон для футера */
        color: rgb(255, 255, 255); /* Чорний текст */
        font-weight: bold; /* Робить текст жирним */
    }
}
