/**
 * Brand Gate Frontend Styles
 * Styling for inline questionnaire forms and CTAs
 */

/* === Login Gate (State A) === */
.fn-brand-gate-login,
.fn-brand-gate-questionnaire,
.fn-brand-gate-dual-requirement {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}

.fn-brand-gate-notice h3 {
    margin-top: 0;
    color: #1f2937;
    font-size: 1.3em;
    font-weight: 600;
}

.fn-brand-gate-notice p {
    margin: 10px 0;
    line-height: 1.6;
    color: #4b5563;
}

.fn-brand-gate-notice p strong {
    color: #1f2937;
}

.fn-privacy-notice {
    font-size: 0.9em;
    color: #6b7280;
    font-style: italic;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

/* CTA Buttons */
.fn-btn-brand-gate-login,
.fn-btn-brand-gate-view {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    font-weight: 600;
}

/* Login to View Pricing Text */
.fn-login-to-view-pricing {
    display: inline-block;
    font-weight: 600;
    font-size: 1.1em;
}

/* === Inline Form (State B) === */
.fn-brand-gate-questionnaire .gform_wrapper {
    margin: 20px 0 0 0;
    background: transparent;
}

.fn-brand-gate-questionnaire .gform_heading {
    display: none; /* Hide GF heading - we have our own */
}

.fn-brand-gate-questionnaire .gform_footer {
    text-align: center;
    margin-top: 20px;
}

.fn-brand-gate-questionnaire .gform_button {
    font-size: 16px;
    padding: 12px 32px;
}

/* Success Message */
.fn-approval-success {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
    font-weight: 500;
    font-size: 1.05em;
}

.fn-reload-countdown {
    display: inline-block;
    margin-left: 4px;
    font-weight: 600;
}

/* Rate Limited Message */
.fn-brand-gate-rate-limited {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
}

.fn-brand-gate-rate-limited .woocommerce-error {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: #856404;
}

/* Error State */
.fn-brand-gate-error .woocommerce-error {
    background: #fee;
    border: 2px solid #f87171;
    color: #991b1b;
}

/* === Loop/Catalog === */
.fn-brand-gate-loop {
    margin: 14px 0;
}

.fn-brand-gate-loop .fn-btn-brand-gate-view {
    width: 100%;
    text-align: center;
}

/* === Responsive === */
@media (max-width: 768px) {
    .fn-brand-gate-login,
    .fn-brand-gate-questionnaire {
        padding: 18px;
        margin: 18px 0;
    }

    .fn-brand-gate-notice h3 {
        font-size: 1.15em;
    }

    .fn-brand-gate-notice p {
        font-size: 0.95em;
    }
}

/* === Gravity Forms Overrides === */
.fn-brand-gate-questionnaire .gfield_required {
    color: #dc2626;
}

.fn-brand-gate-questionnaire .gfield_description {
    font-size: 0.9em;
    color: #6b7280;
}

.fn-brand-gate-questionnaire .validation_error {
    background: #fee;
    border-left: 4px solid #dc2626;
    padding: 12px;
    margin-bottom: 20px;
}

.fn-atc-flash {
    outline: 2px solid currentColor;
}
