/* ============================================================================
   LAWMAX LEGAL SERVICES - Design System
   Professional law firm CSS - Mobile-first responsive
   ============================================================================ */

/* ---------- Design Tokens ---------- */
:root {
    --primary: #1a365d;
    --primary-light: #2c5282;
    --primary-dark: #0f2942;
    --secondary: #4a5568;
    --secondary-light: #718096;
    --accent: #3182ce;
    --accent-light: #4299e1;
    --accent-dark: #2c5282;
    --white: #ffffff;
    --light-bg: #f7fafc;
    --light-gray: #e2e8f0;
    --medium-gray: #cbd5e0;
    --text: #2d3748;
    --text-light: #4a5568;
    --success: #48bb78;
    --error: #f56565;
    --warning: #ed8936;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 0.5em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
.text-light { color: var(--text-light); }
.text-white { color: var(--white); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.lead { font-size: 1.125rem; color: var(--text-light); line-height: 1.7; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section {
    padding: 4rem 0;
}
.section-sm {
    padding: 2rem 0;
}
.grid {
    display: grid;
    gap: 2rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* ---------- Navigation ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-logo img {
    height: 80px;
    width: auto;
}
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    z-index: 999;
}
.nav-links.active {
    display: flex;
}
.nav-links a {
    color: var(--text);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: var(--light-bg);
}
.nav-dropdown {
    position: relative;
}
.nav-dropdown-content {
    display: none;
    padding-left: 1rem;
}
.nav-dropdown.open .nav-dropdown-content {
    display: block;
}
.nav-dropdown-content a {
    display: block;
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem 0.5rem 2.5rem;
    white-space: nowrap;
}
.nav-cta {
    margin: 0.75rem 1.5rem;
}
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    line-height: 1.4;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-secondary:hover {
    background: var(--accent);
    color: var(--white);
}
.btn-white {
    background: var(--white);
    color: var(--accent);
}
.btn-white:hover {
    background: var(--light-bg);
    color: var(--accent-dark);
    transform: translateY(-1px);
}
.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}
.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.hero .lead {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-size: 1.15rem;
}
.hero-sub {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.95);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

/* ---------- Trust Indicators ---------- */
.trust-bar {
    background: var(--light-bg);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.trust-item {
    padding: 1rem;
}
.trust-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.trust-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--white);
    font-size: 1.5rem;
}
.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.card-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.card-link::after {
    content: '\2192';
    transition: transform var(--transition);
}
.card-link:hover::after {
    transform: translateX(4px);
}

/* ---------- Steps / How It Works ---------- */
.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    counter-reset: step;
}
.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    counter-increment: step;
}
.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}
.step-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}
.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}
.cta-section h2 {
    color: var(--white);
    margin-bottom: 0.75rem;
}
.cta-section p {
    color: rgba(255,255,255,0.9);
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* ---------- Features ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--light-bg);
}
.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}
.feature-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}
.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ---------- Page Header ---------- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}
.page-header p {
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto;
}
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
}
.breadcrumb a {
    color: rgba(255,255,255,0.7);
}
.breadcrumb a:hover {
    color: var(--white);
}

/* ---------- Content Sections ---------- */
.content-block {
    max-width: 800px;
    margin: 0 auto;
}
.content-block h2 {
    margin-top: 2rem;
}
.content-block ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.content-block ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}
.faq-question:hover {
    background: var(--light-bg);
}
.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform var(--transition);
}
.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}
.faq-answer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---------- Team ---------- */
.team-card {
    text-align: center;
    padding: 2rem;
}
img.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-lg);
    display: block;
    image-rendering: auto;
}
.team-card h3 { margin-bottom: 0.25rem; }
.team-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.team-bio {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: var(--text);
}
.form-group .helper {
    font-size: 0.8rem;
    color: var(--secondary-light);
    margin-top: 0.25rem;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(49,130,206,0.15);
}
.form-control.error {
    border-color: var(--error);
}
.form-control.success {
    border-color: var(--success);
}
.error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}
.form-control.error + .error-message,
.form-group.has-error .error-message {
    display: block;
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* ---------- File Upload ---------- */
.file-upload {
    border: 2px dashed var(--light-gray);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.file-upload:hover,
.file-upload.dragover {
    border-color: var(--accent);
    background: rgba(49,130,206,0.05);
}
.file-upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-light);
}
.file-upload p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}
.file-upload .browse {
    color: var(--accent);
    font-weight: 600;
}
.file-upload input[type="file"] {
    display: none;
}
.file-name {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ---------- Progress Bar ---------- */
.progress-bar {
    background: var(--light-gray);
    border-radius: 50px;
    height: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 50px;
    transition: width 0.4s ease;
}
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--secondary-light);
}
.progress-steps .active {
    color: var(--accent);
    font-weight: 600;
}
.progress-steps .completed {
    color: var(--success);
}

/* ---------- Form Sections ---------- */
.form-section {
    display: none;
    animation: fadeIn 0.3s ease;
}
.form-section.active {
    display: block;
}
.form-section-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.form-section-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-gray);
}

/* ---------- Portal ---------- */
.portal-header {
    background: var(--primary);
    color: var(--white);
    padding: 2rem 0;
}
.portal-header h1 {
    color: var(--white);
}
.portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.portal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    text-align: center;
}
.portal-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), var(--shadow-md);
}
.portal-card h3 { margin-bottom: 0.5rem; }
.portal-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.badge-coming-soon {
    display: inline-block;
    background: var(--light-gray);
    color: var(--secondary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ---------- Success Page ---------- */
.success-page {
    text-align: center;
    padding: 4rem 0;
}
.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease;
}
.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}
.matter-ref {
    display: inline-block;
    background: var(--light-bg);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin: 1rem 0;
}
.next-steps {
    text-align: left;
    max-width: 500px;
    margin: 2rem auto;
}
.next-steps ol {
    list-style: decimal;
    padding-left: 1.5rem;
}
.next-steps li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

/* ---------- Checklist ---------- */
.checklist {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}
.checklist-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}
.checklist-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 2px;
}
.checklist-item p {
    margin-bottom: 0;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-logo img {
    height: 70px;
    margin-bottom: 1rem;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
}
.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
}
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    padding: 0.3rem 0;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--white);
}
.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.footer-contact a {
    color: rgba(255,255,255,0.8);
}
.footer-contact a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ---------- Map ---------- */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}
.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* ---------- Pricing ---------- */
.pricing-note {
    background: var(--light-bg);
    border-left: 4px solid var(--accent);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}
.pricing-note p { margin-bottom: 0; }

/* ---------- Info Box ---------- */
.info-box {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.info-box h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}
.testimonial-stars {
    color: #f6ad55;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin-bottom: 1.25rem;
}
.testimonial-author {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
}
.testimonial-author strong {
    display: block;
    color: var(--primary);
    font-size: 0.95rem;
}
.testimonial-author span {
    font-size: 0.8rem;
    color: var(--secondary-light);
}

/* ---------- Pricing ---------- */
.pricing-card {
    display: flex;
    flex-direction: column;
}
.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.pricing-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--text-light);
}
.pricing-list li:last-child {
    border-bottom: none;
}
.pricing-list li strong {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
    margin-left: 1rem;
}
.pricing-header {
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}
.pricing-header h3 {
    margin-bottom: 0.25rem;
}
.pricing-header .from {
    font-size: 0.85rem;
    color: var(--secondary-light);
}

/* ---------- Footer Social ---------- */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
}
.footer-social a:hover {
    background: var(--accent);
    color: var(--white);
}

/* ---------- Save Draft Banner ---------- */
.save-draft-bar {
    background: var(--light-bg);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.save-draft-bar p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}
.save-status {
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
}

/* ---------- Practice Area Selector ---------- */
.area-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
.area-option {
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.area-option:hover {
    border-color: var(--accent-light);
    background: rgba(49,130,206,0.03);
}
.area-option.selected {
    border-color: var(--accent);
    background: rgba(49,130,206,0.05);
    box-shadow: 0 0 0 2px var(--accent);
}
.area-option input[type="radio"] {
    display: none;
}
.area-option h4 {
    margin-bottom: 0.25rem;
}
.area-option p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ---------- Dynamic Arrays ---------- */
.array-item {
    background: var(--light-bg);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
}
.array-item + .array-item {
    border-top: 1px solid var(--light-gray);
}
.btn-remove-item {
    display: inline-block;
    background: none;
    border: none;
    color: var(--error);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0;
    margin-top: 0.5rem;
}
.btn-remove-item:hover {
    text-decoration: underline;
}
.add-another-btn {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}
.sub-heading {
    font-size: 1.05rem;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-gray);
    font-weight: 600;
}
.conditional-sub {
    animation: fadeIn 0.3s ease;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    0% { transform: scale(0); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ---------- Responsive: Tablet (768px+) ---------- */
@media (min-width: 768px) {
    h1 { font-size: 2.75rem; }
    .hero { padding: 5rem 0; }
    .hero h1 { font-size: 3rem; }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-grid { grid-template-columns: repeat(2, 1fr); }
    .area-selector { grid-template-columns: repeat(2, 1fr); }
    .map-container iframe { height: 400px; }
}

/* ---------- Responsive: Desktop (1024px+) ---------- */
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        box-shadow: none;
        padding: 0;
        align-items: center;
        gap: 0;
    }
    .nav-links a {
        padding: 0.5rem 1rem;
    }
    .nav-links a:hover {
        background: transparent;
    }
    .nav-dropdown-content {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius);
        min-width: 250px;
        padding: 0.5rem 0;
        z-index: 100;
        display: none;
        flex-direction: column;
    }
    .nav-dropdown:hover .nav-dropdown-content {
        display: flex;
        flex-direction: column;
    }
    .nav-dropdown-content a {
        display: block !important;
        padding: 0.5rem 1.25rem;
        white-space: nowrap;
        width: 100%;
    }
    .nav-cta {
        margin: 0 0 0 0.5rem;
    }
    .hamburger { display: none; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

/* ---------- Responsive: Large (1200px+) ---------- */
@media (min-width: 1200px) {
    .hero h1 { font-size: 3.5rem; }
    .hero { padding: 6rem 0; }
}

/* ---------- Print ---------- */
@media print {
    .navbar, .footer, .cta-section, .hamburger { display: none; }
    .hero { background: none; color: var(--text); padding: 1rem 0; }
    .hero h1 { color: var(--primary); }
    body { font-size: 12pt; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ---------- Intake Form: radio/checkbox groups, notes, estate calculator ---------- */
.radio-group {
    display: flex;
    gap: 0.75rem 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.radio-opt {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.5rem;
}

.checkbox-list label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.95rem;
}

.note-warning {
    font-size: 0.85rem;
    color: #92400e;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    padding: 0.6rem 0.9rem;
    border-radius: 4px;
    margin: 0.5rem 0 1rem;
}

.calc-total {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem;
}

.calc-total.ok { color: var(--success, #16a34a); }
.calc-total.bad { color: #dc2626; }

.estate-summary-table {
    width: 100%;
    font-size: 0.95rem;
    border-collapse: collapse;
}

.estate-summary-table td {
    padding: 0.35rem 0;
}

.estate-summary-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.estate-summary-table tr.net td {
    border-top: 2px solid var(--secondary, #333);
    font-weight: 700;
    padding-top: 0.5rem;
}
