/* ===========================
   GENERAL STYLES
   =========================== */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===========================
   NAVIGATION
   =========================== */

.navbar {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.75rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.admin-link {
    color: var(--warning-color);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ===========================
   SECTIONS
   =========================== */

.section {
    display: block;
    padding: 3rem 0;
}

.section.active {
    display: block;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===========================
   CARDS
   =========================== */

.filters-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===========================
   RESULTS INFO
   =========================== */

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-group label {
    font-weight: 600;
    color: var(--text-secondary);
}

.sort-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

/* ===========================
   LOADING SPINNER
   =========================== */

.loading-spinner {
    text-align: center;
    padding: 3rem;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ===========================
   TABLES
   =========================== */

.table-container {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    /* DEBUG: Static dimensions to check rendering */
    min-height: 400px;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    /* DEBUG: Visible border to see container */
    border: 2px solid #ff0000;
    margin: 20px 0;
}

.loans-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    /* DEBUG: Ensure table is visible */
    display: table;
    table-layout: auto;
}

.loans-table thead {
    background-color: var(--bg-tertiary);
}

.loans-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* DEBUG: Ensure header is visible */
    height: 50px;
    background-color: var(--bg-tertiary);
}

.loans-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    /* DEBUG: Ensure cells are visible */
    min-height: 60px;
    height: auto;
}

.loans-table tbody tr {
    /* DEBUG: Ensure rows are visible */
    min-height: 60px;
    height: auto;
}

.loans-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.lender-name {
    font-weight: 600;
    color: var(--text-primary);
}

.product-name {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.amount,
.rate,
.payment {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.rate {
    color: var(--success-color);
}

.payment {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.btn-details {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.btn-details:hover {
    background-color: var(--primary-dark);
}

/* ===========================
   EMPTY STATE
   =========================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* ===========================
   CALCULATOR
   =========================== */

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.calculator-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.calculator-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.result-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

.result-value.highlight {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.result-chart {
    margin-top: 2rem;
    height: 200px;
}

/* ===========================
   AMORTIZATION TABLE
   =========================== */

.amortization-section {
    margin-top: 2rem;
}

.amortization-section h3 {
    margin-bottom: 1rem;
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.amortization-table thead {
    background-color: var(--bg-tertiary);
}

.amortization-table th {
    padding: 0.75rem;
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
}

.amortization-table th:first-child {
    text-align: left;
}

.amortization-table td {
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
    font-family: 'Courier New', monospace;
}

.amortization-table td:first-child {
    text-align: left;
    font-weight: 600;
}

/* ===========================
   FORM CARD
   =========================== */

.form-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.form-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* ===========================
   ALERTS
   =========================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.25rem;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: auto;
    }

    .loans-table {
        min-width: 800px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 2rem 0;
    }

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

/* ===========================
   KREDITI PAGE STYLES
   =========================== */

/* Hero Section */
.krediti-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.krediti-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.krediti-hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

/* Search Box */
.krediti-search-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    padding: 10px;
    display: flex;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.krediti-search-box input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
}

.krediti-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.krediti-search-btn:hover {
    transform: scale(1.05);
}

/* Stats Section */
.krediti-stats {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: -60px auto 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.krediti-stat-item h3 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 10px;
    font-weight: 700;
}

.krediti-stat-item p {
    color: #718096;
    font-size: 1rem;
}

/* Categories Grid */
.krediti-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Category Card */
.krediti-category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.krediti-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.krediti-category-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.krediti-category-gradient {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.krediti-category-content {
    padding: 25px;
}

.krediti-category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

.krediti-category-icon[data-color] {
    color: var(--icon-color, #667eea);
}

.krediti-category-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.krediti-category-description {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.krediti-category-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.krediti-category-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #475569;
    font-size: 0.9rem;
}

.krediti-category-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.krediti-category-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.krediti-category-arrow {
    font-size: 1.5rem;
}

/* CTA Section */
.krediti-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.krediti-cta-btn {
    background: white;
    color: #10b981;
    border: 2px solid white;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border-radius: 12px;
    transition: all 0.3s;
}

.krediti-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .krediti-hero h1 {
        font-size: 2rem;
    }

    .krediti-hero p {
        font-size: 1.1rem;
    }

    .krediti-categories-grid {
        grid-template-columns: 1fr;
    }

    .krediti-stats {
        margin: -40px 20px 40px;
        padding: 30px 20px;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ===========================
   LEGAL PAGES
   =========================== */

.legal-page {
    padding: 3rem 0;
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

.legal-page .container {
    background-color: var(--bg-primary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.legal-page h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.legal-content {
    line-height: 1.8;
}

.legal-content h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content p.lead {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-box {
    background-color: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
}

.contact-box p {
    margin-bottom: 0.5rem;
}

.contact-box i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 20px;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.highlight-box h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.highlight-box i {
    margin-right: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--text-primary);
    margin-top: 0;
}

.values-list,
.why-choose-us {
    list-style: none;
    margin-left: 0;
}

.value-item {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 3px solid var(--success-color);
}

.value-item h4 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.value-item i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.tech-category {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tech-category h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1rem;
}

.tech-category p {
    font-size: 0.875rem;
    margin: 0;
}

.cta-section {
    background-color: var(--bg-tertiary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 2rem 0;
}

.cta-section h3 {
    margin-top: 0;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.875rem;
}

.legal-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Page Specific */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-method {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-method h3 {
    margin-top: 0;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.contact-address,
.contact-hours {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.contact-form {
    max-width: 800px;
    margin: 2rem auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.contact-info-box {
    background-color: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.contact-info-box h3 {
    margin-top: 0;
}

.contact-info-box ul {
    margin-left: 1.5rem;
}

.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.faq-item p {
    margin: 0;
}

.contact-intro {
    background-color: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.contact-cta {
    background: linear-gradient(135deg, var(--success-color) 0%, #16a34a 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 2rem 0;
}

.contact-cta h3,
.contact-cta p {
    color: white;
}

.contact-cta h3 {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page .container {
        padding: 1.5rem;
    }

    .legal-page h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .legal-actions {
        flex-direction: column;
    }

    .legal-actions .btn {
        width: 100%;
    }
}

/* Page Footer for Legal Pages */
.page-footer {
    background-color: var(--bg-tertiary);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.page-footer p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-copyright {
    font-size: 0.875rem;
}

.footer-copyright a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-copyright a:hover {
    text-decoration: underline;
}
