/* =====================================================
   CONTACT FORM 7 — CUSTOM STYLES
   Contexts: .newsletter_form .c_form
             .bologna-form-section .c_form
   ===================================================== */

/* --- Form wrapper --- */
.newsletter_form .c_form,
.bologna-form-section .c_form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* --- Two-column row --- */
.newsletter_form .c_form-two,
.bologna-form-section .c_form-two {
    display: flex;
    gap: 14px;
}

.newsletter_form .c_form-two .wpcf7-form-control-wrap,
.bologna-form-section .c_form-two .wpcf7-form-control-wrap {
    flex: 1 1 0;
    min-width: 0;
}

/* --- All control wraps (full-width fields outside .c_form-two) --- */
.newsletter_form .c_form > .wpcf7-form-control-wrap,
.bologna-form-section .c_form > .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* --- Inputs & Textarea --- */
.newsletter_form .wpcf7-form-control.wpcf7-text,
.newsletter_form .wpcf7-form-control.wpcf7-email,
.newsletter_form .wpcf7-form-control.wpcf7-tel,
.newsletter_form .wpcf7-form-control.wpcf7-textarea,
.bologna-form-section .wpcf7-form-control.wpcf7-text,
.bologna-form-section .wpcf7-form-control.wpcf7-email,
.bologna-form-section .wpcf7-form-control.wpcf7-tel,
.bologna-form-section .wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--basic-font);
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    border: 1.5px solid #d0d4e8;
    border-radius: 8px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.5;
}

.newsletter_form .wpcf7-form-control.wpcf7-text:focus,
.newsletter_form .wpcf7-form-control.wpcf7-email:focus,
.newsletter_form .wpcf7-form-control.wpcf7-tel:focus,
.newsletter_form .wpcf7-form-control.wpcf7-textarea:focus,
.bologna-form-section .wpcf7-form-control.wpcf7-text:focus,
.bologna-form-section .wpcf7-form-control.wpcf7-email:focus,
.bologna-form-section .wpcf7-form-control.wpcf7-tel:focus,
.bologna-form-section .wpcf7-form-control.wpcf7-textarea:focus {
    border-color: var(--basic-color);
    box-shadow: 0 0 0 3px rgba(23, 28, 143, 0.08);
}

.newsletter_form .wpcf7-form-control.wpcf7-text::placeholder,
.newsletter_form .wpcf7-form-control.wpcf7-email::placeholder,
.newsletter_form .wpcf7-form-control.wpcf7-tel::placeholder,
.newsletter_form .wpcf7-form-control.wpcf7-textarea::placeholder,
.bologna-form-section .wpcf7-form-control.wpcf7-text::placeholder,
.bologna-form-section .wpcf7-form-control.wpcf7-email::placeholder,
.bologna-form-section .wpcf7-form-control.wpcf7-tel::placeholder,
.bologna-form-section .wpcf7-form-control.wpcf7-textarea::placeholder {
    color: #aab0c8;
    font-size: 15px;
    font-family: var(--basic-font);
}

.newsletter_form .wpcf7-form-control.wpcf7-textarea,
.bologna-form-section .wpcf7-form-control.wpcf7-textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 170px;
}

/* --- Radio buttons (Bologna form) --- */
.bologna-form-section .wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bologna-form-section .wpcf7-list-item.wpcf7-radio-item {
    margin: 0;
}

.bologna-form-section .wpcf7-list-item.wpcf7-radio-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    font-family: var(--basic-font);
    background: #fff;
    border: 1.5px solid #d0d4e8;
    border-radius: 6px;
    padding: 8px 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bologna-form-section .wpcf7-list-item.wpcf7-radio-item input[type="radio"] {
    accent-color: var(--basic-color);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.bologna-form-section .wpcf7-list-item.wpcf7-radio-item label:has(input:checked) {
    border-color: var(--basic-color);
    background: #171c8f08;
}

/* --- Checkbox / Acceptance --- */
.newsletter_form .wpcf7-list-item,
.bologna-form-section .wpcf7-list-item {
    margin: 0;
}

.newsletter_form .wpcf7-list-item label,
.bologna-form-section .wpcf7-acceptance .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.newsletter_form .wpcf7-list-item input[type="checkbox"],
.bologna-form-section .wpcf7-list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0 0;
    accent-color: var(--basic-color);
    cursor: pointer;
    border-radius: 4px;
}

.newsletter_form .wpcf7-list-item-label,
.bologna-form-section .wpcf7-list-item-label {
    font-size: 13px;
    color: #555;
    line-height: 1.55;
    font-family: var(--basic-font);
}

.newsletter_form .wpcf7-list-item-label a,
.bologna-form-section .wpcf7-list-item-label a {
    color: var(--basic-color);
    text-decoration: underline;
    font-size: 13px;
}

/* --- Submit button --- */
.newsletter_form .wpcf7-submit,
.bologna-form-section .wpcf7-submit {
    width: 100%;
    background: var(--basic-color);
    color: #fff;
    font-family: var(--basic-font);
    font-size: 16px;
    font-weight: 700;
    padding: 14px 0;
    border: 2px solid var(--basic-color);
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    letter-spacing: 0.3px;
    display: block;
}

.newsletter_form .wpcf7-submit:hover:not(:disabled),
.bologna-form-section .wpcf7-submit:hover:not(:disabled) {
    opacity: 0.85;
}

.newsletter_form .wpcf7-submit:disabled,
.bologna-form-section .wpcf7-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

/* --- Spinner --- */
.newsletter_form .wpcf7-spinner,
.bologna-form-section .wpcf7-spinner {
    display: none !important;
}

/* --- Validation errors --- */
.newsletter_form .wpcf7-not-valid-tip,
.bologna-form-section .wpcf7-not-valid-tip {
    font-size: 12px;
    color: #c53030;
    margin-top: 5px;
    display: block;
    font-family: var(--basic-font);
}

.newsletter_form .wpcf7-form-control.wpcf7-not-valid,
.bologna-form-section .wpcf7-form-control.wpcf7-not-valid {
    border-color: #e53e3e;
}

/* --- Response output --- */
.newsletter_form .wpcf7-response-output,
.bologna-form-section .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--basic-font);
    border: none !important;
}

.newsletter_form .wpcf7 form.sent .wpcf7-response-output,
.bologna-form-section .wpcf7 form.sent .wpcf7-response-output {
    background: #eef8f0;
    color: #1a6b35;
}

.newsletter_form .wpcf7 form.failed .wpcf7-response-output,
.newsletter_form .wpcf7 form.invalid .wpcf7-response-output,
.newsletter_form .wpcf7 form.spam .wpcf7-response-output,
.bologna-form-section .wpcf7 form.failed .wpcf7-response-output,
.bologna-form-section .wpcf7 form.invalid .wpcf7-response-output,
.bologna-form-section .wpcf7 form.spam .wpcf7-response-output {
    background: #fff0f0;
    color: #9b1c1c;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .newsletter_form .c_form-two,
    .bologna-form-section .c_form-two {
        flex-direction: column;
    }

    .bologna-form-section .wpcf7-radio {
        flex-direction: column;
        gap: 8px;
    }
}
