/* ================= CSS VARIABLES ================= */
:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f97316;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #10b981;
    
    /* Typography */
    --font-family: 'Inter', 'Roboto', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --section-padding-md: 80px 0;
    --section-padding-sm: 60px 0;
    
    /* Shadows */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ================= RESET & BASE STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #f1f5f9;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

/* ================= COMPONENT STYLES ================= */

/* ----- BUTTONS ----- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
}

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

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-google {
    background: #db4437;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #c23321;
    color: #fff;
    transform: translateY(-2px);
}

/* ----- NAVBAR ----- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    border-radius: 8px;
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.375rem; /* 22px */
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar button {
    border: none;
    padding: 4px 5px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.navbar button.primary {
    background-color: var(--primary);
    color: #fff;
}

.navbar button.primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar button.outline {
    background-color: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.navbar button.outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.nav-toggle {
    font-size: 1.5rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    color: var(--primary);
}

.nav-links {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.nav-links.active {
    display: flex;
}

/* ----- HERO SECTION ----- */
.hero {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-image {
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* ----- FEATURES SECTION ----- */
.features {
    padding: var(--section-padding);
    background-color: #fff;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.75rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.625rem;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.9375rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* ----- STATS SECTION ----- */
.stats {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.875rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 1.25rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.stat-item p {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin: 0;
    font-weight: 500;
}

/* ----- PRICING SECTION ----- */
.pricing {
    padding: var(--section-padding);
    background: #f9fbfd;
}

.pricing .section-header h2 {
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.pricing .section-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.pricing-card h3 {
    font-weight: 600;
    margin-bottom: 0.9375rem;
    font-size: 1.5rem;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.pricing-card .price span {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    text-align: left;
}

.pricing-card .features li {
    margin-bottom: 0.625rem;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: center;
}

.pricing-card .features i {
    color: var(--success);
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ----- HOW IT WORKS SECTION ----- */

.how-it-works {
    padding: var(--section-padding);
    background-color: #f8fafc;
}

.step-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f1f5f9;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

/* ----- FOOTER ----- */

footer {
    background: linear-gradient(135deg, var(--secondary), #0b1120);
    color: #e2e8f0;
    padding: 4.375rem 0 1.875rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    filter: blur(80px);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    z-index: 1;
    position: relative;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.625rem;
    color: #fff;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 0.9375rem;
    margin-top: 1.25rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 1.875rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ----- MODALS ----- */

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.modal-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: none;
}

.modal-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-footer a:hover {
    color: var(--primary-dark);
}

/* ===== Terms & Conditions Modal Responsive Fix ===== */

/* Desktop layout (unchanged) */
#termsConditionModal .modal-body {
  display: flex;
  flex-wrap: nowrap;
}

#termsConditionModal aside {
  flex: 0 0 25%;
  text-align: center;
  
}

#termsConditionModal #tc-content {
  flex: 0 0 75%;
  max-width: 75%;
}

/* ===== Mobile & Tablet (below 992px) ===== */
@media (max-width: 992px) {
  /* Make modal fit smaller screens nicely */
  #termsConditionModal .modal-dialog {
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
  }

  #termsConditionModal .modal-body {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  /* Sidebar turns into horizontal scroll bar */
  #termsConditionModal aside {
    width: 100%;
    border: none;
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  #termsConditionModal aside .list-group {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    width: max-content;
  }

  #termsConditionModal aside .list-group-item {
    display: inline-block !important;
    flex: 0 0 auto;
    white-space: nowrap;
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    font-size: 0.85rem;
    padding: 6px 14px;
    transition: all 0.2s ease;
  }

  #termsConditionModal aside .list-group-item.active {
    background-color: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
  }

  /* Hide scrollbar (but swipe still works) */
  #termsConditionModal aside::-webkit-scrollbar {
    display: none;
  }

  /* Content area full width below */
  #termsConditionModal #tc-content {
    width: 100%;
    max-width: 100%;
    max-height: 70vh;
    overflow-y: auto;
  }

  #termsConditionModal #tc-content section {
    margin-bottom: 1.2rem;
  }
}

/* ===== Very Small Screens ===== */
@media (max-width: 576px) {
  #termsConditionModal .modal-header h5 {
    font-size: 1rem;
  }

  #termsConditionModal aside .list-group-item {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  #termsConditionModal .modal-content {
    border-radius: 0.6rem;
  }
}


/* ----- FORM STYLES ----- */
.form-label {
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0;
    color: #64748b;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 0.625rem;
    font-size: 0.9rem;
}

/* ----- ALERTS & ANIMATIONS ----- */
.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    min-width: 300px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.5s ease-out;
    border-radius: 8px;
    border: none;
}

@keyframes slideDown {
    from {
        top: -100px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

/* Fade in animation for sections */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Large devices (1200px and down) */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .navbar-brand {
        font-size: 1.375rem;
    }
}

/* Medium devices (992px and down) */
@media (max-width: 992px) {
    :root {
        --section-padding: var(--section-padding-md);
    }
    
    .hero {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .features,
    .pricing {
        padding: var(--section-padding-md);
    }
    
    .stats {
        padding: var(--section-padding-md);
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .pricing-card {
        margin-bottom: 1.25rem;
    }
}

/* Small devices (768px and down) */
@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-sm);
    }
    
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.9375rem;
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
    
    .hero {
        padding: var(--section-padding-sm);
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .features {
        padding: var(--section-padding-sm);
    }
    
    .feature-card {
        margin-bottom: 1.875rem;
    }
    
    .stats {
        padding: var(--section-padding-sm);
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .pricing {
        padding: var(--section-padding-sm);
    }
    
    .pricing-card {
        padding: 1.5625rem;
    }
    
    .pricing-card .price {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 0;
        text-align: justify;
    }
    
    .form-control,
    .form-label {
        font-size: 0.95rem;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 0.625rem 1.125rem;
    }
    
    .divider span {
        font-size: 0.9rem;
    }
    
    .alert {
        min-width: 250px;
        font-size: 0.9rem;
        padding: 0.625rem 0.9375rem;
    }
    
    footer {
        padding: 2.5rem 0.9375rem 1.25rem;
        text-align: center;
    }
    
    .footer-col {
        margin-bottom: 1.25rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Extra small devices (576px and down) */
@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .modal,
    footer .social-links {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .features,
    .stats,
    .pricing {
        padding: 2rem 0 !important;
    }
}