#consultation {
    background: linear-gradient(135deg, #f9f9f9, #ff6600);
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 70vh;
    position: relative;
}

#consultation h2 {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-bottom: 3px solid #ff6600;
    padding-bottom: 10px;
    display: inline-block;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-container {
    background: linear-gradient(135deg, #f9f9f9, #ff6600);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-container form {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.form-container form:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.form-container input,
.form-container textarea {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-container input:focus,
.form-container textarea:focus {
    border-color: #ff6600;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.4);
    outline: none;
}

.form-container button {
    padding: 12px 25px;
    background-color: #ff6600;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.form-container button:hover {
    background-color: #ff3300;
    transform: scale(1.05);
}
#phone {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.popup-content {
    background: linear-gradient(135deg, #f9f9f9, #ff6600);
    border-radius: 15px;
    padding: 25px 40px;
    text-align: center;
    max-width: 400px;
    width: 80%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-content h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.popup-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

.close-btn {
    background-color: #ff6600;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.close-btn:hover {
    background-color: #e65c00;
    transform: scale(1.05);
}
.error-message {
    color: red;
    font-size: 13px;
    margin-top: 4px;
}

input.invalid {
    border-color: red;
}

@media (max-width: 768px) {
    #consultation {
        padding-top: 10px;
        padding-bottom: 10px;
        min-height: 55vh;
    }

    #consultation h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .form-container {
        max-width: 85%;
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        min-height: 300px;
    }

    .form-container input,
    .form-container textarea {
        padding: 10px;
    }

    .form-container button {
        padding: 10px;
        font-size: 14px;
    }
}
