
/* =============================================
   CollegeDirect - Main Stylesheet
   ============================================= */

:root {
    --primary: #e84118;
    --primary-dark: #c0392b;
    --primary-light: #ff6b6b;
    --secondary: #2c3e50;
    --accent: #f39c12;
    --success: #27ae60;
    --info: #2980b9;
    --light: #f8f9fa;
    --border: #e9ecef;
    --text: #2c3e50;
    --text-muted: #6c757d;
    --white: #ffffff;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: #f0f2f5;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

/* ---- Container ---- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--light); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ---- Header / Navbar ---- */
.site-header {
    background: var(--white);
    box-shadow: 0 1px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 14px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}
.logo-icon { font-size: 1.8rem; }
.nav-links {
    display: flex;
    gap: 24px;
    flex: 1;
}
.nav-links a {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}
.nav-links a:hover { color: var(--primary); }
.nav-actions { margin-left: auto; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); }

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(232, 65, 24, 0.15);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(232,65,24,0.2);
    border: 1px solid rgba(232,65,24,0.4);
    color: #ff8c7f;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero h1 span { color: var(--primary-light); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---- Search Bar ---- */
.search-bar {
    background: var(--white);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 20px;
    max-width: 680px;
    margin: 0 auto 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text);
    background: transparent;
    padding: 8px 0;
}
.search-bar .btn { border-radius: 50px; padding: 12px 28px; }

/* ---- Stats ---- */
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 2rem; font-weight: 800; color: var(--primary-light); }
.stat-item .label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ---- Section ---- */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 1rem; max-width: 540px; margin: 0 auto; }
.section-tag {
    display: inline-block;
    background: rgba(232,65,24,0.1);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- College Cards ---- */
.colleges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }

.college-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.college-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.college-card-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 12px 16px;
}
.college-card-banner.banner-1 { background: linear-gradient(135deg, #1a1a2e, #e84118); }
.college-card-banner.banner-2 { background: linear-gradient(135deg, #1a472a, #2ecc71); }
.college-card-banner.banner-3 { background: linear-gradient(135deg, #1e3a5f, #3498db); }
.college-card-banner.banner-4 { background: linear-gradient(135deg, #4a1942, #9b59b6); }
.college-card-banner.banner-5 { background: linear-gradient(135deg, #7b2d00, #e67e22); }

.college-logo {
    width: 56px; height: 56px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    position: absolute;
    bottom: -28px;
    left: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 3px solid var(--white);
}

.badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.college-card-body { padding: 40px 16px 16px; }
.college-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.college-card-body h3 a:hover { color: var(--primary); }

.college-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.college-meta span { display: flex; align-items: center; gap: 4px; }

.college-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.stars { color: #f59e0b; font-size: 0.85rem; }
.rating-val { font-weight: 700; font-size: 0.95rem; }
.rating-count { color: var(--text-muted); font-size: 0.8rem; }

.college-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-bottom: 14px;
}
.c-stat { text-align: center; }
.c-stat .val { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.c-stat .key { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.college-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.fees-info { font-size: 0.85rem; }
.fees-info span { font-weight: 600; color: var(--primary); }

/* ---- Filters ---- */
.filters-bar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 160px;
}
.filter-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.filter-group select, .filter-group input {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: var(--transition);
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--primary); }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: var(--white);
    padding: 50px 0;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.7); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }

/* ---- College Detail Page ---- */
.college-detail-header {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.college-logo-lg {
    width: 80px; height: 80px;
    background: var(--light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
    border: 2px solid var(--border);
}
.college-detail-info { flex: 1; }
.college-detail-info h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.college-detail-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--light);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.detail-badge.type { background: rgba(232,65,24,0.08); color: var(--primary); border-color: rgba(232,65,24,0.2); }
.detail-badge.rank { background: rgba(243,156,18,0.1); color: #d35400; border-color: rgba(243,156,18,0.3); }

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 4px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow-x: auto;
}
.tab-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    white-space: nowrap;
    transition: var(--transition);
}
.tab-btn.active { background: var(--primary); color: var(--white); }
.tab-btn:hover:not(.active) { background: var(--light); color: var(--text); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Info Cards */
.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.info-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 10px; }
.info-card h3 i { color: var(--primary); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.info-item { }
.info-item .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.info-item .value { font-weight: 600; font-size: 0.95rem; }

/* Course Table */
.course-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.course-table th { background: var(--light); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.course-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.course-table tr:hover td { background: var(--light); }
.course-table tr:last-child td { border-bottom: none; }
.popular-tag {
    display: inline-block;
    background: rgba(39,174,96,0.1);
    color: var(--success);
    border: 1px solid rgba(39,174,96,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Placement stats */
.placement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.placement-card { background: var(--light); border-radius: var(--radius-sm); padding: 16px; text-align: center; border: 1px solid var(--border); }
.placement-card .pval { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.placement-card .pkey { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* Reviews */
.review-card { background: var(--light); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 16px; border: 1px solid var(--border); }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.reviewer-name { font-weight: 700; }
.reviewer-meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.review-rating { display: flex; align-items: center; gap: 6px; background: var(--success); color: var(--white); padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 0.9rem; }
.review-sub-ratings { display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.sub-rating { font-size: 0.82rem; color: var(--text-muted); }
.sub-rating span { font-weight: 600; color: var(--text); }

/* ---- Streams / Course Page ---- */
.streams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.stream-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--border);
    transition: var(--transition);
}
.stream-card:hover, .stream-card.active { border-color: var(--primary); background: rgba(232,65,24,0.04); }
.stream-card i { font-size: 2rem; color: var(--primary); margin-bottom: 12px; }
.stream-card h4 { font-size: 0.9rem; font-weight: 600; }

/* ---- Sidebar ---- */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.sidebar-card h4 { font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* ---- Compare Page ---- */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 12px 16px; text-align: center; font-size: 0.9rem; }
.compare-table th { background: var(--secondary); color: var(--white); font-weight: 600; }
.compare-table th:first-child { background: var(--light); color: var(--text); text-align: left; }
.compare-table td:first-child { font-weight: 600; text-align: left; background: var(--light); }
.compare-table tr:nth-child(even) td { background: #fafafa; }
.compare-table tr:nth-child(even) td:first-child { background: var(--light); }

/* ---- Home Streams section ---- */
.streams-list { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.stream-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.stream-chip:hover, .stream-chip.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.stream-chip i { font-size: 1rem; }

/* ---- Why Us ---- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.why-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow); }
.why-icon { width: 60px; height: 60px; background: rgba(232,65,24,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.5rem; color: var(--primary); }
.why-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 0.88rem; color: var(--text-muted); }

/* ---- CTA ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    border-radius: var(--radius);
    margin: 40px 0;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    transition: var(--transition);
}
.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ---- Layout ---- */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
@media (max-width: 992px) { .content-layout { grid-template-columns: 1fr; } }

/* ---- Utilities ---- */
.bg-white { background: var(--white); }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.p-4 { padding: 24px; }
.mb-4 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.85rem; }
.text-center { text-align: center; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-govt { background: rgba(39,174,96,0.1); color: #1e8449; border: 1px solid rgba(39,174,96,0.2); }
.badge-private { background: rgba(52,152,219,0.1); color: #1a6fa0; border: 1px solid rgba(52,152,219,0.2); }
.badge-deemed { background: rgba(155,89,182,0.1); color: #7d3c98; border: 1px solid rgba(155,89,182,0.2); }
.badge-autonomous { background: rgba(243,156,18,0.1); color: #b7770d; border: 1px solid rgba(243,156,18,0.2); }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 16px 20px; box-shadow: var(--shadow); }
    .hero h1 { font-size: 2rem; }
    .colleges-grid { grid-template-columns: 1fr; }
    .college-detail-header { flex-direction: column; }
    .filters-bar { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .hero-stats { gap: 24px; }
    .streams-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   Lead / Enquiry Form
   ============================================= */

/* Wrapper */
.lead-form-wrap {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Section variant (full-width on homepage) */
.lead-form--section {
    max-width: 560px;
    margin: 0 auto;
}

/* Sidebar variant */
.lead-form--sidebar {
    width: 100%;
}

/* Header */
.lead-form-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #e84118 100%);
    color: var(--white);
    text-align: center;
    padding: 32px 24px 24px;
}
.lead-form-header .lead-form-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 14px;
}
.lead-form-header h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.lead-form-header p  { font-size: 0.88rem; color: rgba(255,255,255,0.8); }

/* Smaller sidebar header */
.lead-form-header--sm {
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.lead-form-header--sm i { font-size: 1.4rem; margin-bottom: 4px; }
.lead-form-header--sm h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.lead-form-header--sm p  { font-size: 0.8rem; color: rgba(255,255,255,0.8); margin: 0; }

/* Body */
.lead-form-body { padding: 24px; }

/* Fields */
.lf-field {
    position: relative;
    margin-bottom: 14px;
}
.lf-field .lf-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}
.lf-field input,
.lf-field select {
    width: 100%;
    padding: 13px 14px 13px 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}
.lf-field input::placeholder { color: #adb5bd; }
.lf-field input:focus,
.lf-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,65,24,0.1); }
.lf-field.lf-invalid input,
.lf-field.lf-invalid select { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,0.1); }

.lf-err {
    display: block;
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 4px;
    min-height: 16px;
}

/* Phone field with prefix */
.lf-field--phone .lf-phone-prefix {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    display: flex; align-items: center; gap: 5px;
    padding: 0 10px 0 12px;
    border-right: 1.5px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    cursor: default;
    user-select: none;
    white-space: nowrap;
    z-index: 1;
}
.lf-field--phone input { padding-left: 90px; }

/* Select arrow */
.lf-field select { cursor: pointer; }
.lf-field:has(select)::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    pointer-events: none;
    font-size: 0.85rem;
}

/* Opt-in checkbox */
.lf-optin {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 18px;
    margin-top: 4px;
}
.lf-optin input[type="checkbox"] { display: none; }
.lf-optin-check {
    flex-shrink: 0;
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
    transition: var(--transition);
}
.lf-optin-check i { font-size: 0.7rem; color: var(--white); opacity: 0; transition: var(--transition); }
.lf-optin input:checked ~ .lf-optin-check { background: var(--primary); border-color: var(--primary); }
.lf-optin input:checked ~ .lf-optin-check i { opacity: 1; }
.lf-optin-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.lf-optin-text a { color: var(--primary); text-decoration: underline; }

/* Submit button */
.lf-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.lf-submit:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(232,65,24,0.35); }
.lf-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.lf-submit-text, .lf-submit-loader { display: inline-flex; align-items: center; gap: 8px; }

/* Alerts */
.lead-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 14px;
}
.lead-alert i { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.lead-alert--success { background: rgba(39,174,96,0.1); color: #1e8449; border: 1px solid rgba(39,174,96,0.25); }
.lead-alert--error   { background: rgba(231,76,60,0.1);  color: #c0392b; border: 1px solid rgba(231,76,60,0.25); }

/* Section wrapper on homepage */
.lead-section {
    background: linear-gradient(135deg, #f0f2f5 0%, #e8eaf0 100%);
    padding: 70px 0;
}
.lead-section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.lead-section-copy h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.lead-section-copy p  { color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.lead-section-copy ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lead-section-copy li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.lead-section-copy li i { color: var(--success); font-size: 1rem; }

@media (max-width: 768px) {
    .lead-section-inner { grid-template-columns: 1fr; gap: 32px; }
    .lead-section-copy  { text-align: center; }
    .lead-section-copy ul { align-items: center; }
}

/* =============================================
   Privacy Policy Page
   ============================================= */
.policy-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
.policy-wrap h1 { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.policy-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 36px; }
.policy-toc {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 36px;
}
.policy-toc h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.policy-toc ol { margin: 0; padding-left: 20px; }
.policy-toc li { margin-bottom: 5px; font-size: 0.88rem; }
.policy-toc a { color: var(--primary); }
.policy-toc a:hover { text-decoration: underline; }
.policy-section { margin-bottom: 36px; scroll-margin-top: 80px; }
.policy-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.policy-section h2 i { color: var(--primary); }
.policy-section p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; font-size: 0.93rem; }
.policy-section ul { color: var(--text-muted); padding-left: 20px; line-height: 1.8; font-size: 0.93rem; }
.policy-section li { margin-bottom: 6px; }
.policy-section a  { color: var(--primary); }
.policy-highlight {
    background: rgba(232,65,24,0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 18px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
    background: #111827;
    color: rgba(255,255,255,0.75);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo { color: #fff; font-size: 1.3rem; margin-bottom: 12px; display: inline-flex; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.5); margin-bottom: 16px; }

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; }

.footer-links h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    margin-bottom: 14px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.footer-links li a:hover { color: #fff; padding-left: 4px; }

.footer-bottom {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom-links { display: flex; gap: 20px; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 0 24px; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
