/* Flamingo Forms — Layout and form-specific styles.
   Global input/textarea/select styles live in the theme CSS. */

.ff-form {
    position: relative;
}

.ff-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ff-field {
    display: flex;
    flex-direction: column;
}

.ff-field-full {
    width: 100%;
}

.ff-field-half {
    width: calc(50% - 10px);
}

@media (max-width: 576px) {
    .ff-field-half {
        width: 100%;
    }
}

.ff-label {
    display: block;
    margin-bottom: 6px;
}

.ff-required {
    color: #dc3545;
}

.ff-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary, #555);
    cursor: pointer;
}

.ff-checkbox input {
    margin-top: 3px;
}

/* Error message text */
.ff-error {
    display: block;
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 4px;
    min-height: 0;
}

/* Submit */
.ff-submit-wrap {
    margin-top: 28px;
}

.ff-submit {
    min-width: 180px;
}

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

/* Messages — uses theme .form-message classes, but keep local fallback */
.ff-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ff-message-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.ff-message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* File upload field */
.ff-file {
    padding: 10px 12px;
    background: var(--surface-secondary, #f7f7f8);
    cursor: pointer;
}
.ff-file::file-selector-button {
    margin-right: 12px;
    padding: 6px 14px;
    border: 0;
    border-radius: 6px;
    background: var(--agency-dark, #0a0a0a);
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
}
.ff-file-hint {
    display: block;
    font-size: .8rem;
    color: var(--text-muted, #6e6e6e);
    margin-top: 6px;
}

/* Cloudflare Turnstile spacing */
.ff-turnstile {
    margin-bottom: 20px;
}
