/** Brevo Connector Styles **/

/* Base Variables - Inheriting from Theme where possible */
:root {
    --bc-primary-color: #000;
    --bc-text-color: #333;
    --bc-bg-color: #f9f9f9;
    --bc-border-color: #ddd;
    --bc-spacing: 15px;
}

/* Base Wrapper */
.brevo-connector-form-wrapper {
    max-width: 100%;
    margin: 20px 0;
    font-family: inherit;
    box-sizing: border-box;
}

.brevo-form-title {
    margin-bottom: var(--bc-spacing);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bc-text-color);
}

.brevo-form-group {
    margin-bottom: 12px;
}

/* Inputs */
.brevo-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--bc-border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
    background: #fff;
    color: var(--bc-text-color);
}

.brevo-input:focus {
    border-color: var(--bc-primary-color);
    outline: none;
}

/* Checkbox */
.brevo-checkbox-label {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    color: var(--bc-text-color);
}

.brevo-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

/* Submit Button */
.brevo-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--bc-primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.2s, background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.brevo-submit-btn:hover {
    opacity: 0.9;
}

.brevo-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Checkbox alignment correction for v2 captcha */
.g-recaptcha {
    margin-bottom: 12px;
}

/* Messages */
.brevo-message {
    margin-top: 10px;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 4px;
}

.brevo-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.brevo-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* --- Style: Boxed --- */
.brevo-form--boxed {
    background-color: var(--bc-bg-color);
    padding: 20px;
    border: 1px solid var(--bc-border-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- Style: Inline --- */
.brevo-form--inline .brevo-form {
    display: flex;
    gap: 10px;
    align-items: center;
    /* Center items vertically */
    flex-wrap: wrap;
    /* Wrap on small screens */
}

.brevo-form--inline .brevo-form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
    /* Prevent shrinking too much */
}

/* Allow first/last name to take space but not break layout */
.brevo-form--inline .brevo-form-group--name {
    flex: 0 0 auto;
    width: 30%;
    /* Approximate width for names */
}

.brevo-form--inline .brevo-submit-btn {
    width: auto;
    /* Button doesn't span full width */
    min-width: 120px;
}

/* Responsive fix for inline on mobile */
@media (max-width: 600px) {
    .brevo-form--inline .brevo-form {
        flex-direction: column;
        align-items: stretch;
    }

    .brevo-form--inline .brevo-form-group {
        width: 100%;
        margin-bottom: 10px;
    }

    .brevo-form--inline .brevo-submit-btn {
        width: 100%;
    }
}