:root {
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --secondary-color: #3f37c9;
    --text-color: #1a1a1a;
    --text-light: #4f4f4f;
    --background-color: #f0f4ff;
    --white: #ffffff;
    --success-color: #4caf50;
    --error-color: #f44336;
    --border-radius: 8px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Calculator Card */
.calculator-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 20px auto;
    max-width: 800px;
    padding: 25px;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Input Group Styles */
.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.currency {
    position: absolute;
    left: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.2rem;
    user-select: none;
}

input[type="number"] {
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

input[type="number"]:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

input[type="number"]::placeholder {
    color: #adb5bd;
}

/* Remove number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Calculation Type Buttons */
.calculation-type {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover,
.btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* Advanced Settings */
.advanced-settings {
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.settings-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.settings-content {
    padding: 1rem;
    display: none;
}

.settings-content.show {
    display: block;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
}

/* Tax Comparison Cards */
.tax-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tax-card {
    background: #f8faff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.tax-details {
    margin-top: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

/* Tax Slabs Section */
.tax-slabs {
    padding: 4rem 0;
}

.slab-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.slab-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.slab-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.slab-table th,
.slab-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.key-features {
    margin-top: 2rem;
}

.key-features ul {
    list-style: none;
    margin-top: 1rem;
}

.key-features li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Key Changes Grid */
.changes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.change-item {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #3f51b5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #303f9f;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #3f51b5;
}

.copyright {
    color: #6c757d;
    text-align: center;
    margin-top: 20px;
}

/* Input Mode Toggle */
.input-mode-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Component Grid */
.component-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.component-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.component-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-icon {
    color: var(--text-light);
    cursor: help;
    font-size: 0.9rem;
}

.percentage-input,
.amount-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.amount-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* EPF Option */
.epf-option {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.epf-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* Results Section */
.results-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.result-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.total-section {
    margin-top: 1rem;
    background: #f8faff;
    padding: 1rem;
    border-radius: var(--border-radius);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-weight: 500;
}

.total-row:not(:last-child) {
    border-bottom: 1px solid #eee;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: var(--white);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: #f8faff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background: #f0f4ff;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-color);
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }

    .mobile-menu-btn {
        display: none;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: 1rem;
    }

    .hamburger-lines {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 16px;
    }

    .hamburger-lines .line {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #333;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active .line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active .line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.5rem;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1rem;
        border-bottom: 1px solid #eee;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    .calculator-card {
        margin: 10px;
        padding: 15px;
    }

    .component-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .input-wrapper {
        margin-bottom: 1rem;
    }

    .calculation-type {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .tax-comparison {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .input-group label {
        font-size: 1rem;
    }

    input[type="number"] {
        font-size: 1rem;
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    }

    .currency {
        font-size: 1rem;
        left: 1rem;
    }
}

/* Print Styles */
@media print {
    .calculator-section input-group,
    .advanced-settings,
    .nav-links,
    .btn-coffee {
        display: none;
    }
    
    .tax-comparison {
        grid-template-columns: 1fr;
    }
    
    .calculator-card {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .no-print {
        display: none;
    }
}

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.content-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Privacy Policy Styles */
.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.policy-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.policy-section ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.policy-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-section a:hover {
    text-decoration: underline;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.details h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.details p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

.faq-preview {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.faq-preview h2 {
    margin-bottom: 1.5rem;
}

.faq-preview .faq-item {
    margin-bottom: 1.5rem;
    border: none;
}

.faq-preview .faq-item:last-child {
    margin-bottom: 0;
}

.faq-preview h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-preview p {
    color: var(--text-light);
}

/* Contact Form Styles */
.contact-form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form h2 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.btn-primary {
    background: #3f51b5;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #303f9f;
    transform: translateY(-2px);
}

/* Loading Animation */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3f51b5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1;
}

/* Add smooth scrolling for better mobile experience */
html {
    scroll-behavior: smooth;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
} 