/* ====================================================
   BELLAMY CONTACT FORM 7[B] - Elementor Widget CSS
   Styles the native markup rendered by the Contact Form 7
   plugin's own shortcode output (.wpcf7-form and friends).
   ==================================================== */

.bellamywidget-cf7 {
    --bellamy-cf7-field-bg: #ffffff;
    --bellamy-cf7-field-bg-focus: #ffffff;
    --bellamy-cf7-field-color: #1a1a1a;
    --bellamy-cf7-placeholder-color: #8a8a8a;
    --bellamy-cf7-border-color: #d5d5d5;
    --bellamy-cf7-border-color-focus: #0073aa;
    --bellamy-cf7-border-width: 1px;
    --bellamy-cf7-border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.bellamywidget-cf7 *,
.bellamywidget-cf7 *:before,
.bellamywidget-cf7 *:after {
    box-sizing: border-box;
}

.bellamywidget-cf7 .wpcf7-form {
    margin: 0;
    width: 100%;
}

.bellamywidget-cf7 .wpcf7-form p {
    margin: 0 0 20px 0;
    width: 100%;
}

.bellamywidget-cf7 .wpcf7-form br {
    display: none;
}

/* ==================== FIELDS ==================== */
.bellamywidget-cf7 .wpcf7-form-control {
    width: 100%;
    display: block;
    background-color: var(--bellamy-cf7-field-bg);
    color: var(--bellamy-cf7-field-color);
    padding: 12px 16px;
    font: inherit;
    outline: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.bellamywidget-cf7 select.wpcf7-form-control {
    appearance: auto;
}

.bellamywidget-cf7 textarea.wpcf7-form-control {
    min-height: 140px;
    resize: vertical;
}

.bellamywidget-cf7 .wpcf7-form-control::placeholder {
    color: var(--bellamy-cf7-placeholder-color);
    opacity: 1;
}

.bellamywidget-cf7 .wpcf7-form-control:focus {
    background-color: var(--bellamy-cf7-field-bg-focus);
}

/* ---- Border Style presets ---- */
.bellamywidget-cf7-border-full .wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
    border: var(--bellamy-cf7-border-width) solid var(--bellamy-cf7-border-color);
    border-radius: var(--bellamy-cf7-border-radius);
}

.bellamywidget-cf7-border-full .wpcf7-form-control:focus {
    border-color: var(--bellamy-cf7-border-color-focus);
}

.bellamywidget-cf7-border-bottom .wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
    border: none;
    border-bottom: var(--bellamy-cf7-border-width) solid var(--bellamy-cf7-border-color);
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}

.bellamywidget-cf7-border-bottom .wpcf7-form-control:focus {
    border-bottom-color: var(--bellamy-cf7-border-color-focus);
}

.bellamywidget-cf7-border-top .wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
    border: none;
    border-top: var(--bellamy-cf7-border-width) solid var(--bellamy-cf7-border-color);
    border-radius: 0;
}

.bellamywidget-cf7-border-top .wpcf7-form-control:focus {
    border-top-color: var(--bellamy-cf7-border-color-focus);
}

.bellamywidget-cf7-border-rounded .wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
    border: var(--bellamy-cf7-border-width) solid var(--bellamy-cf7-border-color);
    border-radius: 999px;
    padding-left: 22px;
    padding-right: 22px;
}

.bellamywidget-cf7-border-rounded textarea.wpcf7-form-control {
    border-radius: 24px;
}

.bellamywidget-cf7-border-rounded .wpcf7-form-control:focus {
    border-color: var(--bellamy-cf7-border-color-focus);
}

.bellamywidget-cf7-border-none .wpcf7-form-control:not([type="checkbox"]):not([type="radio"]):not([type="submit"]) {
    border: none;
    border-radius: var(--bellamy-cf7-border-radius);
}

/* ==================== LABELS ==================== */
.bellamywidget-cf7 .wpcf7-form label {
    width: 100%;
}

/* ==================== CHECKBOX & RADIO ==================== */
.bellamywidget-cf7 .wpcf7-form-control-wrap {
    display: block;
}

.bellamywidget-cf7 .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 8px 0;
}

.bellamywidget-cf7 .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

.bellamywidget-cf7 input[type="checkbox"],
.bellamywidget-cf7 input[type="radio"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
}

/* ==================== SUBMIT BUTTON ==================== */
.bellamywidget-cf7 .wpcf7-submit {
    display: inline-block;
    cursor: pointer;
    border: 2px solid transparent;
    background-color: #0073aa;
    color: #ffffff;
    font: inherit;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.bellamywidget-cf7 .wpcf7-spinner {
	display: none;
}

/* ==================== RESPONSE MESSAGES ==================== */
.bellamywidget-cf7 .wpcf7-response-output {
    margin: 16px 0 0 0;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 0.95em;
}

.bellamywidget-cf7 .wpcf7-not-valid-tip {
    display: block;
    margin-top: 4px;
    font-size: 0.85em;
}

.bellamywidget-cf7 .wpcf7-form-control.wpcf7-not-valid {
    border-color: #b02a37;
}

/* Contact Form 7 toggles these state classes on the <form> element
   itself while it is submitting / after a response is returned. */
.bellamywidget-cf7 .wpcf7-form.sent .wpcf7-response-output {
    display: block;
}

/* ==================== EDITOR NOTICE ==================== */
.bellamywidget-cf7-notice {
    padding: 16px 20px;
    background-color: #fef8e7;
    border: 1px dashed #e0b400;
    border-radius: 4px;
    color: #6b5900;
    font-size: 14px;
    line-height: 1.5;
}
