/* Mobile & OTP input fields */
.cf7-firebase-mobile,
.cf7-firebase-otp {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* OTP buttons */
#cf7-send-otp,
#cf7-verify-otp {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

#cf7-send-otp:hover,
#cf7-verify-otp:hover {
    background-color: #005a87;
    transform: translateY(-1px);
}

#cf7-send-otp:disabled,
#cf7-verify-otp:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* OTP sent/verified state */
#cf7-send-otp.sent,
#cf7-verify-otp.verified {
    background-color: #46b450;
}

/* Status messages */
.cf7-otp-status {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    min-height: 18px;
}

.cf7-otp-status .error {
    color: #dc3232;
}

.cf7-otp-status .success {
    color: #46b450;
}

.cf7-otp-status .info {
    color: #0073aa;
}

/* Recaptcha container spacing */
#recaptcha-container {
    margin-top: 10px;
}

/* Wrap all CF7 controls with spacing */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #cf7-send-otp,
    #cf7-verify-otp {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .cf7-firebase-mobile,
    .cf7-firebase-otp {
        max-width: 100%;
    }
}
