.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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    transform: scale(0.9);
}

.popup-content.show {
    transform: scale(1);
}

.popup h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
    display: inline-block;
    border-bottom: 3px solid #ff6600;
    padding-bottom: 5px;
}

.popup input[type="text"],
.popup input[type="tel"],
.popup input[type="submit"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    transition: border-color 0.3s ease;
}

.popup input[type="text"]:focus,
.popup input[type="tel"]:focus {
    border-color: #ff6600;
    outline: none;
}

.popup input[type="submit"] {
    background-color: #ff6600;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.popup input[type="submit"]:hover {
    background-color: #ff6600;
}

.popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup .close-btn:hover {
    color: #ff6600;
}

.popup.show {
    display: flex;
    opacity: 1;
}

.popup.hide {
    opacity: 0;
    pointer-events: none;
}

.popup input[type="text"]:focus, .popup input[type="tel"]:focus {
    border-color: #ff6600;
}

.popup .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup .close-btn:hover {
    color: #ff6600;
}

.popup .close-confirmation-btn {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.popup .close-confirmation-btn:hover {
    background-color: #e65c00;
}
.error-message {
    color: red;
    font-size: 13px;
    margin-top: 4px;
}

input.invalid {
    border-color: red;
}
