/* Firman Solutions New Jersey — Shared Lead Form Styles
   Applies to all /locations/new-jersey/ pages (city pages + index). */

/* ── Section ───────────────────────────────────────────────── */
.lead-form-section {
    padding: 5rem 1rem;
    background: var(--surface, #f8fafc);
    position: relative;
    overflow: hidden;
}

.lead-form-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(16, 39, 83, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 118, 11, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* ── City Page Layout ──────────────────────────────────────── */
.lead-form-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Index Page Layout (same card look) ────────────────────── */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Header ────────────────────────────────────────────────── */
.lead-form-header,
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.lead-form-badge {
    display: inline-block;
    background: rgba(255, 118, 11, 0.1);
    color: var(--secondary, #ff760b);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.lead-form-header h3,
.form-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary, #102753);
    margin: 0 0 0.75rem;
    text-align: center;
}

.lead-form-header p,
.form-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* ── Card ──────────────────────────────────────────────────── */
.lead-form-body,
.form-container {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
}

.lead-form-body::before,
.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary, #102753), var(--secondary, #ff760b));
    border-radius: 20px 20px 0 0;
}

/* ── Trust Badges ──────────────────────────────────────────── */
.lead-form-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.lead-form-trust span {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lead-form-trust span i {
    color: #22c55e;
    font-size: 0.9rem;
}

/* ── Form Grid ─────────────────────────────────────────────── */
.lead-form-grid,
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* ── Form Groups ───────────────────────────────────────────── */
.form-group {
    margin-bottom: 0;
}

.lead-form-body .form-group.full,
.form-container .form-group.full,
.form-group.full {
    grid-column: 1 / -1;
}

/* ── Labels ────────────────────────────────────────────────── */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 0.3rem;
}

/* ── Inputs / Selects / Textareas ──────────────────────────── */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fff;
    color: #1e293b;
    box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary, #ff760b);
    box-shadow: 0 0 0 3px rgba(255, 118, 11, 0.12);
}

/* ── Select ────────────────────────────────────────────────── */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-select option {
    background: #fff;
    color: #1e293b;
}

/* ── Textarea ──────────────────────────────────────────────── */
.form-textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* ── Checkbox ──────────────────────────────────────────────── */
.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--secondary, #ff760b);
    flex-shrink: 0;
    cursor: pointer;
}

.form-checkbox-label {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    cursor: pointer;
}

/* ── Submit Button ─────────────────────────────────────────── */
.lead-form-submit,
.form-submit {
    width: 100%;
    padding: 0.9rem;
    background: var(--secondary, #ff760b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lead-form-submit:hover,
.form-submit:hover {
    background: #e56a0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 118, 11, 0.3);
}

.lead-form-submit:active,
.form-submit:active {
    transform: translateY(0);
}

.lead-form-submit:disabled,
.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ── Success Message ───────────────────────────────────────── */
.lead-form-success {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.lead-form-success.show {
    display: block;
    animation: njFadeInUp 0.5s ease;
}

.lead-form-success i {
    font-size: 3.5rem;
    color: #22c55e;
    margin-bottom: 0.75rem;
    display: block;
}

.lead-form-success h4 {
    font-size: 1.4rem;
    color: var(--primary, #102753);
    margin: 0 0 0.5rem;
}

.lead-form-success p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.lead-form-success a {
    color: var(--secondary, #ff760b);
    font-weight: 700;
    text-decoration: none;
}

/* ── Privacy Note ──────────────────────────────────────────── */
.lead-form-note,
.form-note {
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 1.25rem;
    line-height: 1.5;
}

.lead-form-note i {
    margin-right: 0.3rem;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes njFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lead-form-section {
        padding: 3rem 1rem;
    }

    .lead-form-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .lead-form-header h3,
    .form-title {
        font-size: 1.7rem;
    }

    .lead-form-body,
    .form-container {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .lead-form-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .lead-form-body,
    .form-container {
        padding: 1.25rem 1rem;
    }

    .lead-form-header h3,
    .form-title {
        font-size: 1.5rem;
    }
}
