/*
 * wechat-download-modal.css
 *
 * Styles for the WeChat verification download modal.
 */

/* Modal Overlay */
.eplan-wechat-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .eplan-wechat-modal-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

/* Modal Content */
.eplan-wechat-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    position: relative; /* For close button positioning */
}

.eplan-wechat-modal-overlay.is-active .eplan-wechat-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.eplan-wechat-modal-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.eplan-wechat-modal-content .instructions {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.eplan-wechat-modal-content .qr-code-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .eplan-wechat-modal-content .qr-code-container img {
        max-width: 150px;
        height: auto;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

.eplan-wechat-modal-content .input-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eplan-wechat-modal-content label {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
    font-weight: 600;
}

.eplan-wechat-modal-content input[type="text"] {
    width: 100%;
    max-width: 250px;
    padding: 12px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .eplan-wechat-modal-content input[type="text"]:focus {
        border-color: #3b82f6; /* Tailwind blue-500 */
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        outline: none;
    }

.eplan-wechat-modal-content .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

    .eplan-wechat-modal-content .modal-buttons button {
        padding: 12px 25px;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
        font-weight: 600;
    }

    .eplan-wechat-modal-content .modal-buttons .submit-btn {
        background-color: #3b82f6; /* Tailwind blue-500 */
        color: white;
        box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    }

        .eplan-wechat-modal-content .modal-buttons .submit-btn:hover {
            background-color: #2563eb; /* Tailwind blue-600 */
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
        }

    .eplan-wechat-modal-content .modal-buttons .close-btn {
        background-color: #e2e8f0; /* Tailwind gray-200 */
        color: #4a5568; /* Tailwind gray-700 */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

        .eplan-wechat-modal-content .modal-buttons .close-btn:hover {
            background-color: #cbd5e0; /* Tailwind gray-300 */
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        }

.eplan-wechat-modal-content .message-box {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none; /* Hidden by default */
    font-weight: 500;
}

    .eplan-wechat-modal-content .message-box.error {
        background-color: #fee2e2; /* Red-100 */
        color: #ef4444; /* Red-500 */
        border: 1px solid #fca5a5; /* Red-300 */
    }

    .eplan-wechat-modal-content .message-box.success {
        background-color: #d1fae5; /* Green-100 */
        color: #10b981; /* Green-500 */
        border: 1px solid #a7f3d0; /* Green-300 */
    }

/* Close button for the modal (top right corner) */
.eplan-wechat-modal-content .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

    .eplan-wechat-modal-content .modal-close:hover {
        color: #333;
    }
