body {
    font-family: sans-serif;
    background-color: #f2f2f2;
    margin: 0;
    padding: 30px 15px;
    box-sizing: border-box;
}

.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    margin-bottom: 10px;
}

textarea {
    min-height: 200px;
    resize: vertical;
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.message {
    margin-bottom: 20px;
    color: green;
    font-weight: bold;
    text-align: center;
}

/* Кнопки "На головну" и "Надіслати" */
.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;  /* Небольшой отступ между кнопками */
    margin-top: 20px;
}

.back-btn {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold; /* Жирный текст */
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* Убираем перенос текста */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1); /* Легкое увеличение кнопки при наведении */
}

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    white-space: nowrap; /* Убираем перенос текста */
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Адаптация под мобильные устройства */
@media screen and (max-width: 480px) {
    .form-container {
        padding: 20px;
    }

    textarea {
        min-height: 150px;
        font-size: 15px;
    }

    input[type="text"],
    input[type="tel"],
    input[type="email"] {
        font-size: 15px;
        padding: 12px;
    }

    button {
        padding: 10px;
        font-size: 15px;
    }

    .form-container h2 {
        font-size: 20px;
    }

    .back-btn {
        font-size: 13px;
        padding: 6px 12px;
    }

    .submit-btn {
        font-size: 14px;
    }
}

.phone-input-wrapper {
    display: flex;
    width: 100%;
}

.phone-prefix {
    background: #eee;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    box-sizing: border-box;
}

#phone-number {
    flex: 1;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 10px 12px;
    font-size: 14px;
    height: 42px;
    box-sizing: border-box;
}

.hint {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.form-info-box {
    background-color: #f8f8f8;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
}

.form-info-box h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333;
}

.form-info-box p {
    font-size: 14px;
    color: #555;
}