/* Popup Overlay */
.popup-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup Content Container */
.popup-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.close-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.xspanhc {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background-color: #ff0000;
    width: 40px;
    height: 40px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    transition: 0.3s ease-in-out;
}

.xspanhc:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

/* Popup Content Layout */
.popup-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Left Column: Image */
.popup-image-container {
    flex: 4;
}

.popup-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Right Column: Form */
.popup-container {
    flex: 3;
}

.popup-container h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 15px;
}

.popup-container .form-group label {
    font-size: 20px;
    font-weight: 600;
}

.popup-form-container {
    flex: 1;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1.5em;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Buttons */
.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.popup-buttons button {
    padding: 12px;
    background: #1569FD;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.popup-buttons button:hover {
    background: #0f50c6;
}

/* Horizontal Divider */
hr.hr {
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    margin: 15px 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .popup-inner {
        flex-direction: column;
        text-align: start;
    }

    .popup-image-container {
        display: none;
    }

    .popup-container {
        flex: 1;
    }

    .popup-buttons {
        flex-direction: column;
    }
}