/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup Container */
.popup-container {
    background-color: #ffffff;
    background-image: url('/assets/image/popup.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    padding: 8px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.popup-close:hover {
    background: #f0f0f0;
    transform: rotate(90deg);
}

/* Popup Title */
.popup-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-align: left;
    line-height: 1.3;
    max-width: 450px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Popup Description */
.popup-description {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 30px 0;
    text-align: left;
    line-height: 1.5;
    max-width: 450px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form Styles */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 450px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 8px;
}

.popup-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-label {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-left: 5px;
}

.popup-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.popup-input:focus {
    outline: none;
    border-color: #2f80ed;
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

.popup-input::placeholder {
    color: #aaa;
}

/* Submit Button */
.popup-submit {
    background-color: #2f80ed;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.popup-submit:hover {
    background-color: #3b94ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.3);
}

.popup-submit:active {
    transform: translateY(0);
}

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

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

/* Mobile Responsive */
@media (max-width: 640px) {
    .popup-container {
        padding: 30px 20px;
        width: 85%;
        max-width: none;
        background-size: cover;
        background-position: center;
    }

    .popup-title {
        font-size: 20px;
        margin-bottom: 12px;
        max-width: 100%;
    }

    .popup-description {
        font-size: 14px;
        margin-bottom: 25px;
        max-width: 100%;
    }

    .popup-form {
        max-width: 100%;
        padding: 20px;
    }

    .popup-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .popup-submit {
        padding: 14px 20px;
        font-size: 15px;
    }

    .popup-close {
        font-size: 28px;
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .popup-container {
        width: 90%;
        padding: 25px 15px;
    }

    .popup-title {
        font-size: 18px;
    }

    .popup-description {
        font-size: 13px;
    }
}
