/* Overlay background */
.overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Popup container */
.popup-box {
    background: #fff;
    width: 600px;
    max-width: 90%;
    border-radius: 1px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 20px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    animation: slideUp 0.4s ease-in-out;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

/* Popup content layout */
.popup-content {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

/* Left side (form) */
.form-section {
    flex: 1;
    padding: 10px;
}

.form-section h2 {
    font-size: 1.08rem;
    margin-bottom: 5px;
    color: #222;
    font-family: 500;
}

.form-section p {
    color: #555;
    margin-bottom: 15px;
}

/* Form inputs */
.form-group {
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 15px;
}

/* CTA Button */
#submitBtn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

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

/* Right side (image) */
.image-section img {
    width: 200px;
    max-width: 100%;
}

/* Success and error messages */
.ebmessage {
    margin-top: 8px;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.ebmessage.success {
    background-color: #d4edda;
    color: #155724;
}

.ebmessage.error {
    background-color: #f8d7da;
    color: #721c24;
}



/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .popup-content {
        flex-direction: column;
        text-align: center;
    }

    .image-section img {
        margin-top: 15px;
    }
}