/* User Info Popup Styles */
.msg91-user-info-popup {
    /* General Styles */
    .wrap {
        margin: 50px auto;
        padding: 40px;
        background: #ffffff;
        border: 1px solid #ddd;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        max-width: 500px;
        text-align: center;
    }

    /* Headings */
    .wrap h1 {
        font-size: 26px;
        font-weight: 600;
        margin-bottom: 25px;
        color: #222;
    }

    /* Form Styles */
    #user-info-form {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .form-group {
        text-align: left;
        margin-bottom: 18px;
    }

    /* Labels */
    #user-info-form label {
        font-weight: 600;
        color: #444;
        font-size: 14px;
        margin-bottom: 6px;
        display: block;
    }

    /* Input Fields */
    #user-info-form input {
        padding: 8px 18px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 15px;
        width: 100%;
        transition: border 0.3s ease, box-shadow 0.3s ease;
    }

    #user-info-form input:focus {
        border-color: #0073aa;
        box-shadow: 0 0 6px rgba(0, 115, 170, 0.3);
        outline: none;
    }

    /* Error Styles */
    .error-input {
        border-color: #dc3232 !important;
        box-shadow: 0 0 6px rgba(220, 50, 50, 0.3) !important;
    }

    .error-message {
        display: none;
        color: #dc3232;
        font-size: 12px;
        margin-top: 4px;
        font-weight: 500;
    }

    .error-message:not(:empty) {
        display: block;
    }

    /* Input Group for OTP */
    .input-group {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* OTP Input */
    .otp-input {
        width: 60%;
        display: none;
        margin-top: 10px;
        gap: 8px;
        flex-direction: column;
    }

    /* OTP Row - Input and Buttons in one line */
    .otp-row {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        width: 100%;
    }

    .otp-input input {
        flex-grow: 0;
        min-width: 40%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        box-sizing: border-box;
    }

    /* OTP Buttons Container */
    .otp-buttons {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-shrink: 0;
    }

    /* OTP Status - Messages and countdown */
    .otp-status {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-top: 8px;
        margin-left: 0;
        align-items: flex-start;
    }

    /* OTP Message */
    .otp-message {
        display: block;
        font-size: 13px;
        font-weight: 500;
        margin: 0 0 0 10px;
        text-align: left;
    }

    /* Resend OTP Button */
    .retry-otp {
        background-color: #ff6b35 !important;
        margin-left: 8px;
    }

    .retry-otp:hover {
        background-color: #e55a2b !important;
    }

    .retry-otp:disabled {
        background-color: #ccc !important;
        cursor: not-allowed;
    }

    /* Countdown Timer */
    .retry-countdown {
        font-size: 12px;
        color: #666;
        text-align: left;
        margin: 0 0 0 10px;
    }

    .countdown-timer {
        font-weight: bold;
        color: #0073aa;
    }

    /* Button Styles */
    #user-info-form button,
    .small-button {
        padding: 15px 25px;
        background-color: #0073aa;
        color: #fff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 300;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .small-button {
        padding: 15px 25px;
        font-size: 13px;
        background-color: #0084d6;
        white-space: nowrap;
    }

    #user-info-form button:hover,
    .small-button:hover {
        background-color: #005f8d;
    }

    /* Form Actions Buttons */
    .form-actions {
        display: flex;
        gap: 10px;
        margin-top: 20px;
        justify-content: space-between;
        align-items: center;
        padding-left: 0;
        flex-wrap: wrap;
    }

    .form-actions button {
        padding: 8px 20px;
        font-size: 14px;
        min-width: 120px;
        text-align: center;
        border-radius: 4px;
        white-space: nowrap;
    }

    .form-actions .submit-btn {
        background-color: #f5f5f5;
        color: #333;
        border: 1px solid #ddd;
    }

    .form-actions .reset-btn {
        background-color: #0073aa;
        color: #fff;
    }

    .form-actions button:hover {
        opacity: 0.9;
    }

    /* Tooltip Styles */
    .tooltip {
        position: relative;
        display: inline-block;
        width: 100%;
    }

    .tooltip input {
        width: 100%;
        padding: 8px 18px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 15px;
    }

    .tooltip .tooltiptext {
        visibility: hidden;
        width: 200px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        margin-left: -100px;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .tooltip .tooltiptext::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #555 transparent transparent transparent;
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .msg91-user-info-popup {
        .wrap {
            margin: 20px;
            padding: 30px;
        }

        .input-group,
        .otp-input {
            flex-direction: column;
            gap: 8px;
        }

        .otp-row {
            flex-direction: column;
            gap: 8px;
        }

        .otp-input input {
            width: 100%;
            height: auto;
            min-width: auto;
            min-height: auto;
        }

        .otp-buttons {
            width: 100%;
            justify-content: space-between;
        }

        #user-info-form button,
        .small-button {
            width: 100%;
        }

        .form-actions {
            flex-direction: column;
            gap: 10px;
        }

        .form-actions button {
            width: 100%;
            margin: 5px 0;
        }

        .retry-otp {
            margin-left: 0 !important;
        }

        .otp-status {
            margin-top: 12px;
        }
    }
}

@media (max-width: 400px) {
    .msg91-user-info-popup {
        .form-actions button {
            padding: 8px 15px;
            font-size: 13px;
            min-width: 100px;
        }
    }
}

/* Popup styling */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    text-align: center;
}

.popup p {
    margin-bottom: 15px;
    font-size: 16px;
}

.popup .button {
    margin: 0 5px;
}
