/* Pushkar CF7 OTP — styles matching otp.css */

/* Send OTP / Verify / Change buttons — absolute inside form-group */
.pushkar-send-otp-btn {
    position: absolute;
    font-size: 10px;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #924813;
    color: #fff;
    border: none;
    padding: 5px 8px !important;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.pushkar-send-otp-btn:hover:not(.disabled) {
    background-color: #7a3a0f;
}

.pushkar-send-otp-btn.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.pushkar-verify-otp-btn {
    top: 50%;
    transform: translateY(8%);
    right: 30px;
}

/* Form groups need relative positioning for absolute button */
.wpcf7-form-control-wrap,
.formfiled,
.form-group {
    position: relative;
}

/* OTP input group */
.pushkar-otp-input-group {
    position: relative;
    margin-top: 15px;
}

.pushkar-otp-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.pushkar-enter-otp {
    width: 100%;
    padding: 12px;
    font-size: 24px;
    letter-spacing: 8px;
    text-align: center;
    border: 2px solid #924813;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pushkar-enter-otp:focus {
    outline: none;
    border-color: #7a3a0f;
    box-shadow: 0 0 8px rgba(146, 72, 19, 0.2);
}

.pushkar-enter-otp::placeholder {
    letter-spacing: 0;
    font-size: 14px;
    font-weight: normal;
}

/* Submit button disabled state */
button[type="submit"].submit-disabled,
input[type="submit"].submit-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Toast alert container — bottom right (matches otp.js Alert) */
#pushkar-alert-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    max-width: 320px;
}

.pushkar-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    animation: pushkar-slideIn 0.3s ease-out;
}

.pushkar-alert-success { background-color: #4caf50; }
.pushkar-alert-danger  { background-color: #f44336; }

.pushkar-close-alert {
    margin-left: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

@keyframes pushkar-slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}
