/* ==========================================================================
   Sapiex Technologies - Lead Capture & Connect System Styles
   Brand Colors: #0962AF (Primary Blue), #000d44 (Footer Dark), #2ea3f2 (Light Accent), #f7f8fc (Page BG)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --sapiex-blue: #0962AF;
    --sapiex-blue-rgb: 9, 98, 175;
    --sapiex-blue-hover: #0c71c3;
    --sapiex-blue-light: #2ea3f2;
    --sapiex-dark: #1d1d25;
    --sapiex-dark-bg: #000d44;
    --sapiex-page-bg: #f7f8fc;
    --sapiex-card-bg: #ffffff;
    --sapiex-border: #e2e8f0;
    --sapiex-text: #2d3748;
    --sapiex-text-muted: #718096;
    --sapiex-success: #10b981;
    --sapiex-warning: #f59e0b;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-alt: 'Outfit', sans-serif;
    --font-body: 'Montserrat', Helvetica, Arial, sans-serif;

    /* Shadows & Radius */
    --shadow-sm: 0 2px 8px rgba(9, 98, 175, 0.06);
    --shadow-md: 0 10px 25px rgba(9, 98, 175, 0.1);
    --shadow-lg: 0 20px 50px rgba(9, 98, 175, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--sapiex-page-bg);
    color: var(--sapiex-text);
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--sapiex-dark);
    font-weight: 700;
}

a {
    color: var(--sapiex-blue);
    transition: var(--transition);
}
a:hover {
    color: var(--sapiex-blue-hover);
}

/* Header Replicating Sapiex.in */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(55, 104, 238, 0.05);
    z-index: 1030;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.navbar-brand img {
    height: 26px !important;
    width: auto;
    object-fit: contain;
}


.site-header .font-heading {
    font-family: var(--font-heading);
}

.extra-small {
    font-size: 11px;
}

.site-header .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: #1d1d25 !important;
    letter-spacing: 0.5px;
    padding: 8px 16px !important;
    transition: var(--transition);
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--sapiex-blue) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 15px 35px rgba(9, 98, 175, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    border-top: 3px solid var(--sapiex-blue);
}

.dropdown-item {
    font-weight: 500;
    font-size: 14px;
    padding: 8px 20px;
    color: #4a5568;
    transition: var(--transition);
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(9, 98, 175, 0.06);
    color: var(--sapiex-blue);
}

.btn-sapiex-nav {
    background-color: var(--sapiex-blue);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--sapiex-blue);
}
.btn-sapiex-nav:hover {
    background-color: var(--sapiex-blue-hover);
    border-color: var(--sapiex-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(9, 98, 175, 0.3);
}

.btn-outline-sapiex {
    background-color: transparent;
    color: var(--sapiex-blue) !important;
    border: 2px solid var(--sapiex-blue);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
}
.btn-outline-sapiex:hover {
    background-color: var(--sapiex-blue);
    color: #ffffff !important;
}

/* Hero & Lead Capture Section */
.hero-lead-section {
    padding: 50px 0 70px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
    position: relative;
}

.subhead-badge {
    display: inline-block;
    background-color: rgba(9, 98, 175, 0.08);
    color: var(--sapiex-blue);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--sapiex-dark);
    margin-bottom: 18px;
}
.hero-title span {
    color: var(--sapiex-blue);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--sapiex-text-muted);
    margin-bottom: 30px;
}

.feature-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
}
.feature-check-list li {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}
.feature-check-list li i {
    width: 26px;
    height: 26px;
    background-color: rgba(9, 98, 175, 0.1);
    color: var(--sapiex-blue);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
    flex-shrink: 0;
}

/* High Converting Lead Form Card */
.lead-form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(9, 98, 175, 0.12);
    padding: 35px;
    position: relative;
    overflow: hidden;
}
.lead-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--sapiex-blue) 0%, var(--sapiex-blue-light) 100%);
}

.form-header-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--sapiex-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--sapiex-border);
    font-size: 15px;
    font-family: var(--font-body);
}

.form-control:focus, .form-select:focus {
    border-color: var(--sapiex-blue);
    box-shadow: 0 0 0 4px rgba(9, 98, 175, 0.15);
}

.btn-lead-submit {
    background: linear-gradient(135deg, var(--sapiex-blue) 0%, #0c71c3 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    width: 100%;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(9, 98, 175, 0.25);
}
.btn-lead-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(9, 98, 175, 0.35);
    color: #ffffff;
}

.trust-elements {
    display: flex;
    justify-content: space-around;
    padding-top: 15px;
    border-top: 1px solid var(--sapiex-border);
    margin-top: 20px;
}
.trust-item {
    font-size: 12px;
    color: var(--sapiex-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
}
.trust-item i {
    color: var(--sapiex-blue);
    font-size: 15px;
    margin-right: 6px;
}

/* Service cards / Highlights */
.service-pill-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffffff;
    border: 1px solid var(--sapiex-border);
    border-radius: 30px;
    color: var(--sapiex-text);
    font-weight: 600;
    font-size: 13px;
    margin: 4px;
    text-decoration: none;
    transition: var(--transition);
}
.service-pill-btn:hover, .service-pill-btn.active {
    background-color: var(--sapiex-blue);
    border-color: var(--sapiex-blue);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Thank You Page */
.thankyou-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 50px;
    text-align: center;
    max-width: 650px;
    margin: 40px auto;
    border-top: 6px solid var(--sapiex-blue);
}
.thankyou-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

/* Panel Dashboard Styles */
.panel-sidebar {
    background-color: var(--sapiex-dark-bg);
    color: #ffffff;
    min-height: calc(100vh - 72px);
}
.panel-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sapiex-border);
    padding: 24px;
    margin-bottom: 24px;
}
.stat-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.bg-soft-blue {
    background-color: rgba(9, 98, 175, 0.1);
    color: var(--sapiex-blue);
}
.bg-soft-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.table-custom {
    vertical-align: middle;
}
.table-custom th {
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sapiex-text-muted);
    border-bottom: 2px solid var(--sapiex-border);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.badge-new { background-color: rgba(9, 98, 175, 0.12); color: var(--sapiex-blue); }
.badge-contacted { background-color: rgba(245, 158, 11, 0.15); color: #b45309; }
.badge-in_progress { background-color: rgba(59, 130, 246, 0.15); color: #1d4ed8; }
.badge-converted { background-color: rgba(16, 185, 129, 0.15); color: #047857; }
.badge-closed { background-color: rgba(107, 114, 128, 0.15); color: #374151; }

/* Footer Replicating Sapiex.in /about Page */
.site-footer {
    background-color: #000d44 !important;
    color: #ffffff !important;
    font-size: 14px;
}
.site-footer h5, .site-footer .footer-title {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
}
.site-footer a {
    color: #ffffff !important;
    opacity: 0.9;
    transition: var(--transition);
}
.site-footer a:hover {
    color: #ffffff !important;
    opacity: 1;
    text-decoration: underline !important;
}
.site-footer .footer-contact li, 
.site-footer .footer-contact a, 
.site-footer .footer-contact i {
    color: #ffffff !important;
}
.site-footer p, .site-footer span, .site-footer div {
    color: #ffffff !important;
}

@media (max-width: 991.98px) {

    .hero-title {
        font-size: 2rem;
    }
    .lead-form-card {
        padding: 25px;
        margin-top: 30px;
    }
}
