@import url("../estate-portal-prime/style.css");

/* Law Portal Chambers: Chambers-style multi-firm law portal for reseller demos. */
body { background: #F8FAFC; color: #1f2937; font-family: Inter, system-ui, sans-serif; }

.ep-header {
    background: var(--theme-primary, #1E3A5F);
    box-shadow: 0 2px 16px rgba(15, 23, 42, .14);
}
.ep-brand, .ep-brand span { font-family: Merriweather, Georgia, serif; }
.ep-nav-cta {
    background: var(--theme-accent, #C9A227);
    color: #111827;
    border-radius: 4px;
}

.ep-hero {
    background:
        radial-gradient(circle at 85% 0%, rgba(201,162,39,.18), transparent 48%),
        linear-gradient(145deg, color-mix(in srgb, #1E3A5F 88%, #000), var(--theme-primary, #1E3A5F));
    padding: 72px 24px 88px;
}
.ep-hero h1 { font-family: Merriweather, Georgia, serif; font-size: clamp(32px, 5vw, 48px); }

.ep-btn { background: var(--theme-accent, #C9A227); color: #111827; border-radius: 4px; }
.ep-stats { background: #E8EEF5; }
.ep-stats-grid strong { color: var(--theme-primary, #1E3A5F); }
.ep-section-alt { background: #E8EEF5; }
.ep-card { border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 23, 42, .08); }
.ep-badge { background: var(--theme-accent, #C9A227); color: #111827; border-radius: 4px; }

.ep-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.ep-header-inner {
    gap: 16px;
    padding-right: 56px; /* clear fixed auth widget */
}
#customer-auth-widget {
    flex-shrink: 0;
}

/* Contact page */
.lp-contact-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lp-contact-card .ep-card-body,
.lp-contact-aside .ep-card-body {
    position: relative;
}
.lp-contact-card .ep-badge,
.lp-contact-aside .ep-badge,
.lp-contact-form-card .ep-section-kicker {
    position: static;
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.lp-contact-card a {
    display: inline-block;
    max-width: 100%;
    color: var(--theme-primary, #1E3A5F);
    font-weight: 700;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.lp-contact-card p { margin: 10px 0 0; color: #64748b; font-size: 14px; line-height: 1.5; }

.lp-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: start;
}
.lp-contact-form-card h2,
.lp-contact-aside h3 {
    font-family: Merriweather, Georgia, serif;
    color: var(--theme-primary, #1E3A5F);
}
.lp-contact-lead { margin: 0 0 22px; color: #64748b; }

.lp-contact-form { display: grid; gap: 16px; }
.lp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.lp-contact-form label,
.lp-form-full {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.lp-form-full { grid-column: 1 / -1; }
.lp-contact-form input,
.lp-contact-form select,
.lp-contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-weight: 400;
    color: #0f172a;
}
.lp-contact-form textarea { min-height: 140px; resize: vertical; }
.lp-contact-form input:focus,
.lp-contact-form select:focus,
.lp-contact-form textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--theme-primary, #1E3A5F) 35%, transparent);
    border-color: var(--theme-primary, #1E3A5F);
}
.lp-contact-form .ep-btn {
    justify-self: start;
    margin-top: 4px;
    padding: 12px 22px;
    font-weight: 700;
}
.lp-referrer-note {
    margin: 0 0 4px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    word-break: break-all;
}
.lp-alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.lp-alert-success { background: #ecfdf5; color: #065f46; }
.lp-alert-error { background: #fef2f2; color: #991b1b; }
.lp-alert ul { margin: 0; padding-left: 18px; }

.lp-contact-aside { display: grid; gap: 16px; }
.lp-contact-aside p { margin: 0; color: #475569; font-size: 14px; line-height: 1.55; }
.lp-aside-line { margin-top: 14px !important; }
.lp-firm-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.lp-firm-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}
.lp-firm-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-firm-list a {
    color: var(--theme-primary, #1E3A5F);
    font-weight: 700;
    white-space: nowrap;
}

.lp-contact-form .lead-captcha-field { margin-bottom: 0 !important; }

@media (max-width: 960px) {
    .lp-contact-cards,
    .lp-contact-layout,
    .lp-form-grid { grid-template-columns: 1fr; }
}
