/* ── Faith Flow Connect — Form Styles ────────────────────── */
/* Transparent design — blends with any dark background.       */
/* Uses !important on key properties to override theme styles. */

.ffc-form-wrapper {
    max-width: 600px !important;
    margin: 2rem auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: inherit;
    box-sizing: border-box;
}

.ffc-form-wrapper .ffc-form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ffc-form-wrapper *,
.ffc-form-wrapper *::before,
.ffc-form-wrapper *::after {
    box-sizing: border-box;
}

/* ── Name row (side-by-side) ──────────────────────────────── */

.ffc-form-wrapper .ffc-name-row {
    display: flex;
    gap: 1rem;
}

.ffc-form-wrapper .ffc-name-row .ffc-field {
    flex: 1 1 0%;
}

@media (max-width: 640px) {
    .ffc-form-wrapper .ffc-name-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ── Fields ──────────────────────────────────────────────── */

.ffc-form-wrapper .ffc-field {
    margin-bottom: 1.5rem;
}

.ffc-form-wrapper .ffc-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400 !important;
    font-size: 0.95rem !important;
    color: inherit !important;
    opacity: 0.9;
    background: transparent !important;
}

.ffc-form-wrapper .ffc-field input,
.ffc-form-wrapper .ffc-field textarea {
    display: block;
    width: 100% !important;
    padding: 0.8rem 1rem !important;
    font-family: inherit;
    font-size: 1rem !important;
    color: inherit !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    resize: vertical;
}

.ffc-form-wrapper .ffc-field input::placeholder,
.ffc-form-wrapper .ffc-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.ffc-form-wrapper .ffc-field input:focus,
.ffc-form-wrapper .ffc-field textarea:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
}

.ffc-form-wrapper .ffc-field input.ffc-invalid,
.ffc-form-wrapper .ffc-field textarea.ffc-invalid {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15) !important;
}

/* ── Submit button ───────────────────────────────────────── */

.ffc-form-wrapper .ffc-actions {
    margin-top: 2rem;
}

.ffc-form-wrapper .ffc-recaptcha {
    margin-bottom: 1.25rem;
}

.ffc-form-wrapper .ffc-submit-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto !important;
    padding: 0.7rem 2rem !important;
    font-family: inherit;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.4;
    color: #111 !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.ffc-form-wrapper .ffc-submit-btn:hover {
    background: #e5e5e5 !important;
}

.ffc-form-wrapper .ffc-submit-btn:active {
    transform: scale(0.97);
}

.ffc-form-wrapper .ffc-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ── Spinner ─────────────────────────────────────────────── */

.ffc-form-wrapper .ffc-spinner {
    display: none;
    width: 1em;
    height: 1em;
    border: 2.5px solid rgba(0, 0, 0, 0.2);
    border-top-color: #111;
    border-radius: 50%;
    animation: ffc-spin 0.6s linear infinite;
}

.ffc-form-wrapper .ffc-submit-btn.ffc-loading .ffc-spinner {
    display: inline-block;
}

@keyframes ffc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Message area ────────────────────────────────────────── */

.ffc-form-wrapper .ffc-message {
    margin-top: 1.25rem;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ffc-form-wrapper .ffc-message:empty {
    display: none;
}

.ffc-form-wrapper .ffc-message.ffc-success {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.ffc-form-wrapper .ffc-message.ffc-error {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 640px) {
    .ffc-form-wrapper {
        margin: 1.5rem 1rem;
    }
}
