.pg-custom-captcha-container {
    margin: 15px auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.pg-custom-captcha-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.pg-captcha-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.pg-captcha-image {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 5px;
    background: white;
    height: auto;
}

.pg-refresh-captcha {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-refresh-captcha:hover {
    background: #005a87;
}

.pg-refresh-captcha:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pg-captcha-input {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    display: block;
}

.pg-captcha-input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.pg-captcha-input.error {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 1px #d63638 !important;
}

.pg-captcha-error {
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
    padding: 5px;
    background: #ffeaea;
    border: 1px solid #ffabaf;
    border-radius: 3px;
    text-align: center;
}

/* Masquer tous les éléments reCAPTCHA */
.g-recaptcha,
#g-recaptcha-response,
.pm-recaptcha,
.pm_recaptcha,
iframe[src*="recaptcha"],
div[data-sitekey],
.recaptcha-container,
.pm-captcha-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .pg-captcha-image-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pg-refresh-captcha {
        align-self: flex-start;
    }
}