/* ==========================================================================
   SubmitReturn.com - Main Stylesheet (Indian Income Tax Update)
   ========================================================================== */

/* CSS Variables */
:root {
    --bg-dark: #f8fafb;
    --bg-darker: #eef2f6;
    --bg-slate: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-focus: rgba(16, 185, 129, 0.4);
    
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.15);
    --primary-rgb: 16, 185, 129;
    
    --secondary: #06b6d4;
    --secondary-hover: #0891b2;
    
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    
    --text-white: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --text-dark: #1e293b;
    
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(180deg, #f8fafb 0%, #eef2f6 100%);
    --gradient-hero: radial-gradient(circle at top right, rgba(16, 185, 129, 0.06), transparent 45%), 
                      radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.04), transparent 40%);
    
    --card-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.08);
    --neon-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    background-image: var(--gradient-hero);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.text-center { text-align: center; }
.text-green { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.hidden { display: none !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #13ca8d 0%, #06a875 100%);
    box-shadow: var(--neon-shadow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: #059669;
    border: 2px solid #10b981;
    font-weight: 700;
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.06);
    color: #047857;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.btn-tertiary {
    background: transparent;
    color: var(--text-muted);
}

.btn-tertiary:hover {
    color: var(--text-white);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 0.9rem 2.25rem;
    font-size: 1.05rem;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--primary);
    font-size: 1.7rem;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.25));
}

.logo-accent {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 3rem;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 320px;
}

.mobile-link {
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.badge-container {
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.trust-indicators {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-icon {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Estimator Card Widget */
.estimator-card-wrapper {
    position: relative;
}

.estimator-card-wrapper::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(10px);
}

.estimator-card {
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    box-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.06);
}

.estimator-card:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.1), 0 0 15px rgba(16, 185, 129, 0.05);
}

.estimator-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.calculator-icon {
    color: var(--primary);
    margin-right: 0.4rem;
}

.estimator-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Custom Checkbox Toggle for Salaried Status */
.checkbox-wrapper {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    transition: var(--transition);
}

.checkbox-wrapper:hover {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.02);
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 6px;
    transition: var(--transition);
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e2e8f0;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--gradient-primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.4;
}

.checkbox-label small {
    font-weight: 400;
    font-size: 0.75rem;
}

/* Sliders & Values */
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.slider-value-wrapper {
    background: #f1f5f9;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    padding: 0.35rem 0.7rem;
    display: flex;
    align-items: center;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
}

.slider-value-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.slider-value-wrapper span {
    color: var(--primary);
    margin-right: 2px;
}

.slider-value-wrapper input {
    background: transparent;
    border: none;
    color: #0f172a;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    width: 110px;
    text-align: right;
    outline: none;
}

/* Range Sliders styling */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
    transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
    transition: transform 0.1s ease;
    border: none;
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Regime Comparison Grid */
.regime-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
}

.regime-box {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.regime-box.active {
    background: rgba(16, 185, 129, 0.05);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
}

.regime-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.regime-box.active .regime-title {
    color: var(--primary);
}

.regime-tax-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.regime-box.active .regime-tax-value {
    color: var(--text-white);
}

/* Calculation Result Recommendation Box */
.result-box {
    background: rgba(16, 185, 129, 0.04);
    border: 1px dashed rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-recommendation-box {
    background: rgba(6, 182, 212, 0.04);
    border-color: rgba(6, 182, 212, 0.25);
}

.result-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.result-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.refund-progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.refund-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.btn-pulse {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(16, 185, 129, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: rgba(15, 23, 42, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.section-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-icon-wrapper.color-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-icon-wrapper.color-blue {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.feature-icon-wrapper.color-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-icon-wrapper.color-yellow {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 150px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color) 20%, var(--border-color) 80%, transparent);
    z-index: -1;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.step-card:hover .step-badge {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.step-content {
    width: 100%;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.step-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Visual Mockups inside Steps */
.step-visual {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
}

.step-card:hover .step-visual {
    border-color: rgba(16, 185, 129, 0.15);
    background: rgba(15, 23, 42, 0.04);
}

/* Upload Graphic */
.upload-dropzone {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.cloud-icon {
    font-size: 1.5rem;
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.upload-text {
    font-size: 0.75rem;
    color: var(--text-white);
    font-weight: 600;
}

.upload-progress-bar {
    width: 70%;
    height: 4px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 2px;
}

.upload-progress-fill {
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    animation: fill-progress 2s ease infinite;
}

@keyframes fill-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Optimize list graphic */
.optimize-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.optimize-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(15, 23, 42, 0.03);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}

/* Status Widget Graphic */
.status-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem;
    width: 90%;
    text-align: left;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.status-dot.pulsing {
    box-shadow: 0 0 8px var(--primary);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.status-main {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-white);
}

.status-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* CTA Form Section */
.cta-form-section {
    padding: 100px 0;
    background: radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.04), transparent 45%), var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-form-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.cta-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-bullet-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.contact-form-card {
    padding: 2.5rem;
    background: #ffffff;
    border-color: var(--border-color);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    background: #f8fafb;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: #0f172a;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
    background: #ffffff;
}

.file-upload-label {
    background: rgba(16, 185, 129, 0.05);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    color: var(--primary) !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload-label:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--primary);
}

.file-upload-input {
    display: none;
}

#file-chosen-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-align: center;
}

/* Success Form Feedback */
.form-success-alert {
    text-align: center;
    padding: 2rem 1rem;
    animation: slideUp 0.4s ease;
}

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

.form-success-alert i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.form-success-alert h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.form-success-alert p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQ Accordion Section */
.faq-section {
    padding: 100px 0;
}

.faq-accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.03);
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-arrow {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Active FAQ styling */
.faq-item.active {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.02);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-content {
    max-height: 250px; /* Adjust according to content length */
    padding-bottom: 1.25rem;
}

/* Footer styling */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.8fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.25rem;
}

.footer-link {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-white);
    padding-left: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.disclaimer {
    max-width: 800px;
    line-height: 1.5;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-cta-group {
        justify-content: center;
    }
    .trust-indicators {
        width: 100%;
        justify-content: center;
    }
    .cta-form-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .steps-container::before {
        display: none;
    }
    .step-visual {
        height: auto;
        min-height: 100px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .navbar {
        height: 70px;
    }
    .nav-menu,
    .nav-calc-btn {
        display: none;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta-group .btn {
        width: 100%;
    }
    .trust-indicators {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Computation Modal overlay & container */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-container {
    max-width: 600px;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12), 0 0 20px rgba(16, 185, 129, 0.03);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.hidden .modal-container {
    transform: scale(0.95) translateY(10px);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--text-white);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

/* Computation Table Styles */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.01);
    margin: 1.5rem 0;
}

.computation-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.computation-table th, 
.computation-table td {
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.computation-table th {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.computation-table td {
    color: var(--text-main);
}

.computation-table td:first-child {
    font-weight: 500;
}

.computation-table td:not(:first-child) {
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: right;
}

.computation-table tr:last-child td {
    border-bottom: none;
}

/* Highlight specific totals/rows */
.computation-table tr.highlight-row {
    background: rgba(16, 185, 129, 0.03);
}

.computation-table tr.highlight-row td {
    color: var(--primary);
    font-weight: 700;
    border-top: 1px solid rgba(16, 185, 129, 0.15);
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.computation-table tr.highlight-row-secondary {
    background: rgba(6, 182, 212, 0.03);
}

.computation-table tr.highlight-row-secondary td {
    color: var(--secondary);
    font-weight: 700;
    border-top: 1px solid rgba(6, 182, 212, 0.15);
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}

.modal-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 480px) {
    .modal-container {
        padding: 1.5rem;
    }
    .modal-actions-row {
        flex-direction: column;
    }
    .modal-actions-row .btn {
        width: 100%;
    }
}

/* Estimator Tabs */
.estimator-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    gap: 0.25rem;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-white);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* Tab Content Visibility */
.tab-content {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Form Layout Grids */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.input-label-field {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.input-prefix-wrapper {
    background: #f8fafb;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.input-prefix-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
    background: #ffffff;
}

.prefix-inr {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-right: 0.4rem;
    user-select: none;
}

.input-prefix-wrapper input {
    background: transparent;
    border: none;
    color: #0f172a;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.input-prefix-wrapper input::-webkit-outer-spin-button,
.input-prefix-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-prefix-wrapper input[type=number] {
    -moz-appearance: textfield;
}

@media (max-width: 480px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Dual Tax Bars Comparison Styles */
.tax-bars-comparison {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tax-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tax-bar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.tax-bar-label {
    color: var(--text-muted);
    font-weight: 500;
}

.tax-bar-val {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
}

.tax-bar-track {
    height: 8px;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.tax-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.new-regime-fill {
    background: var(--gradient-primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.old-regime-fill {
    background: var(--gradient-accent);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Regime Optimizer / Suggestions Card */
.optimizer-card {
    background: rgba(245, 158, 11, 0.04);
    border: 1px dashed rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
    animation: slideDown 0.4s ease-out;
}

.optimizer-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.06);
}

.optimizer-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.65rem;
}

.optimizer-icon {
    font-size: 1rem;
    animation: pulseGlow 2s infinite ease-in-out;
}

.optimizer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.optimizer-list li {
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.optimizer-list li i {
    color: #f59e0b;
    margin-top: 2px;
    font-size: 0.85rem;
}

.optimizer-list li .highlight-action {
    color: var(--text-white);
    font-weight: 600;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================
   Detail Report Page Styles
   ============================ */

.detail-page-wrapper {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-hover);
}

.breadcrumb .separator {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.detail-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.detail-page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.75px;
}

.detail-page-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* User Info Card */
.user-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.user-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info-card h3 i {
    color: var(--primary);
}

.user-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .user-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Accordion Income Sections */
.income-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.accordion-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.accordion-section:hover {
    border-color: rgba(16, 185, 129, 0.15);
}

.accordion-section.active {
    border-color: rgba(16, 185, 129, 0.25);
}

.accordion-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.accordion-trigger:hover {
    background: rgba(16, 185, 129, 0.02);
}

.accordion-trigger-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.accordion-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.accordion-icon.green { background: rgba(16,185,129,0.1); color: #10b981; }
.accordion-icon.blue { background: rgba(6,182,212,0.1); color: #06b6d4; }
.accordion-icon.purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.accordion-icon.orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.accordion-icon.red { background: rgba(239,68,68,0.1); color: #ef4444; }
.accordion-icon.indigo { background: rgba(99,102,241,0.1); color: #6366f1; }

.accordion-trigger-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-white);
}

.accordion-trigger-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.accordion-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.accordion-section.active .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-section.active .accordion-body {
    max-height: 600px;
    padding: 0 1.5rem 1.5rem;
}

/* Sticky Results Sidebar */
.results-sidebar {
    position: sticky;
    top: 100px;
}

.results-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
}

.results-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-card h3 i {
    color: var(--primary);
}

/* Detail Report Inline Table */
.detail-report-section {
    margin-top: 2rem;
}

.detail-report-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-align: center;
}

.report-user-banner {
    background: rgba(16,185,129,0.05);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.report-user-banner span {
    font-size: 0.9rem;
    color: var(--text-main);
}

.report-user-banner strong {
    color: var(--text-white);
}

@media (max-width: 768px) {
    .detail-page-header h1 {
        font-size: 1.8rem;
    }
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    .report-user-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
