:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #ffffff;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--secondary-color);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1000;
    min-height: 60px;
}

.navbar {
    padding: 0.75rem 0;
    position: relative;
    overflow: visible;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand a {
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-brand a:hover {
    transform: translateX(3px);
}

.nav-brand a i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.logo-text {
    display: flex;
}

.logo-freshy {
    color: var(--primary-color);
    font-weight: 700;
}

.logo-portal {
    color: var(--text-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.875rem;
}

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    list-style: none;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
}


/* Hero Section with Calculator */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem 0 3rem;
}

.hero-calculator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tab System */
.fire-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover {
    background: var(--bg-light);
    border-color: var(--primary-light);
}

.tab-button.active {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Colored icons for FIRE calculator tabs */
.tab-button:nth-child(1) i { color: #ef4444; } /* Traditional - Red */
.tab-button:nth-child(2) i { color: #3b82f6; } /* Coast - Blue */
.tab-button:nth-child(3) i { color: #a8552f; } /* Barista - Brown */
.tab-button:nth-child(4) i { color: #a855f7; } /* Fat - Purple */
.tab-button:nth-child(5) i { color: #10b981; } /* Lean - Green */

.tab-button.active i {
    color: var(--secondary-color) !important;
}

.tab-button i {
    font-size: 1rem;
}

.tab-content {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Embedded Calculator Styles */
.embedded-calculator {
    max-width: 900px;
    margin: 0 auto;
}

.embedded-calculator .calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.embedded-calculator .calculator-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.embedded-calculator .calculator-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.quick-calculator {
    display: grid;
    gap: 1.5rem;
}

.quick-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.quick-results {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: none;
}

.quick-results.show {
    display: block;
}

.quick-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-result-item {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-result-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.quick-result-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

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

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Calculators Page Hero */
.calculators-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--secondary-color);
    padding: 2rem 0;
    text-align: center;
}

.calculators-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calculators-hero p {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* Calculator Sections */
.calculators-section {
    padding: 2rem 0;
}

.calculators-section h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.calculator-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s;
    text-align: center;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

/* Different colors for calculator icons in grid */
.calculator-grid .calculator-card:nth-child(1) .card-icon { 
    color: #ef4444; 
    background: #fef2f2;
}
.calculator-grid .calculator-card:nth-child(2) .card-icon { 
    color: #f59e0b; 
    background: #fffbeb;
}
.calculator-grid .calculator-card:nth-child(3) .card-icon { 
    color: #10b981; 
    background: #ecfdf5;
}
.calculator-grid .calculator-card:nth-child(4) .card-icon { 
    color: #3b82f6; 
    background: #eff6ff;
}
.calculator-grid .calculator-card:nth-child(5) .card-icon { 
    color: #8b5cf6; 
    background: #f5f3ff;
}
.calculator-grid .calculator-card:nth-child(6) .card-icon { 
    color: #ec4899; 
    background: #fdf2f8;
}
.calculator-grid .calculator-card:nth-child(7) .card-icon { 
    color: #14b8a6; 
    background: #f0fdfa;
}
.calculator-grid .calculator-card:nth-child(8) .card-icon { 
    color: #f97316; 
    background: #fff7ed;
}
.calculator-grid .calculator-card:nth-child(9) .card-icon { 
    color: #06b6d4; 
    background: #ecfeff;
}
.calculator-grid .calculator-card:nth-child(10) .card-icon { 
    color: #84cc16; 
    background: #f7fee7;
}
.calculator-grid .calculator-card:nth-child(11) .card-icon { 
    color: #a855f7; 
    background: #faf5ff;
}
.calculator-grid .calculator-card:nth-child(12) .card-icon { 
    color: #0ea5e9; 
    background: #f0f9ff;
}

.calculator-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.calculator-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.bg-light {
    background: var(--bg-light);
}

/* FAQ Section - Modern Sleek Design */
.faq-section {
    padding: 1.5rem 0;
    background: var(--secondary-color);
}

.faq-section h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.faq-section .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item h3 {
    margin: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    margin: 0;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    background: transparent;
    position: relative;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-question-text {
    padding-right: 1rem;
    flex: 1;
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--primary-color);
    transform: rotate(45deg);
}

.faq-icon i {
    font-size: 0.7rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon i {
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 150px;
    padding-bottom: 0.75rem;
}

.faq-answer p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-light);
    padding-right: 2rem;
}

/* Footer */
footer {
    background: var(--text-color);
    color: var(--secondary-color);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h4 i {
    color: var(--primary-color);
}

.footer-section h4 .logo-text {
    display: flex;
}

.footer-section h4 .logo-freshy {
    color: var(--primary-color);
}

.footer-section h4 .logo-portal {
    color: white;
}

.footer-section p {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

/* Footer contact and social icons */
.footer-contact {
    margin: 1.5rem 0;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-contact i {
    color: var(--primary-light);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-icons i {
    font-size: 1rem;
}

.footer-about {
    grid-column: span 1;
}

.footer-about p {
    margin: 1rem 0;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Calculator Pages */
.calculator-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* Calculate Button Specific Styling */
.calculator-form .btn-primary {
    width: 100%;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.calculator-form .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.calculator-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calculator-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.calculator-form {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.85rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--secondary-color);
}

.form-group input:hover,
.form-group select:hover {
    border-color: #cbd5e1;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.calculator-results {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 500;
    color: var(--text-color);
}

.result-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.chart-container {
    margin-top: 2rem;
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 12px;
    height: 400px;
    position: relative;
}

.chart-container canvas {
    max-height: 300px;
}

/* Step Wizard Styles */
.step-wizard {
    margin-bottom: 3rem;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: -1;
}

.step-indicator:first-child::after {
    left: 50%;
}

.step-indicator.completed:not(:last-child)::after {
    background: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-indicator.active .step-number {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.step-indicator.completed .step-number {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.step-indicator.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    max-width: 100px;
}

.step-indicator.active .step-label,
.step-indicator.completed .step-label {
    color: var(--text-color);
    font-weight: 500;
}

.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.step-navigation .btn {
    min-width: 120px;
}

.btn-prev {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-prev:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.btn-next {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-next:hover {
    background: var(--primary-dark);
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.step-content h3 i {
    margin-right: 0.5rem;
}

.step-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Form enhancements for wizard */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.info-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

.info-box strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.info-box p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Result Cards */
.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.result-card.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    color: var(--secondary-color);
}

.result-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.result-card.primary i {
    color: var(--secondary-color);
}

.result-card .result-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.result-card.primary .result-label {
    color: var(--secondary-color);
    opacity: 0.9;
}

.result-card .result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
}

.result-card.primary .result-value {
    color: var(--secondary-color);
}

.result-details {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.result-details .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.result-details .result-item:last-child {
    border-bottom: none;
}

.result-details .result-label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Calculator Info Section */
.calculator-info {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.calculator-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.calculator-info h4 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.calculator-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.calculator-info ul {
    margin-left: 1.5rem;
    color: var(--text-light);
}

.calculator-info ul li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.calculator-info ul li strong {
    color: var(--text-color);
}

/* Legal Pages */
.legal-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.legal-container h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.legal-container h2 {
    color: var(--text-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.legal-container p,
.legal-container li {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.legal-container ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Contact Page Styles */
.contact-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 20px;
}

.contact-container h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.contact-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-form-wrapper {
    background: var(--secondary-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

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

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-status.loading {
    display: block;
    background: var(--bg-light);
    color: var(--text-light);
}

.form-status.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.success i {
    margin-right: 0.5rem;
    color: #10b981;
}

.contact-direct {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-direct p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.email-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.email-link i {
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.contact-info .contact-method {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-method h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.response-time {
    background: var(--primary-light);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.response-time h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-form-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--secondary-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: var(--secondary-color);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc2626;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.form-status {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.status-loading {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.status-success h3 {
    margin-bottom: 0.5rem;
    color: #065f46;
}

.faq-section {
    margin: 3rem 0;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feedback-encourage {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.feedback-encourage h2 {
    color: white;
    margin-bottom: 1rem;
}

.feedback-encourage ul {
    margin-left: 1.5rem;
}

/* About Page Styles */
.about-intro {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.values-list h3 {
    color: var(--primary-color);
    margin: 2rem 0 0.5rem;
}

.values-list p {
    margin-bottom: 1.5rem;
}

.about-footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
}

.about-footer h2 {
    color: white;
    margin-bottom: 1rem;
}

.about-footer a {
    color: #93c5fd;
}

/* Privacy Policy Styles */
.legal-container h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.2rem;
}

.legal-container strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Disclaimer Styles */
.disclaimer-notice {
    background: #fef2f2;
    border: 2px solid #fca5a5;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.disclaimer-notice h2 {
    color: #dc2626;
    margin-bottom: 1rem;
}

.disclaimer-notice p {
    color: #991b1b;
    font-weight: 500;
    font-size: 1.1rem;
}

.disclaimer-footer {
    background: var(--primary-color);
    color: white !important;
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
    text-align: center;
    font-weight: 500;
}

.disclaimer-footer p,
.disclaimer-footer strong {
    color: white !important;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .checkbox-group {
        align-items: flex-start;
    }
    
    /* Reduce tab button text size on mobile */
    .tab-button {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .tab-button i {
        font-size: 0.85rem;
        margin-right: 0.25rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
        padding: 1rem 0;
        z-index: 999;
        gap: 0.5rem;
    }

    .nav-menu.active,
    .nav-menu.show {
        display: flex !important;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.5rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-about {
        text-align: center;
    }
    
    .footer-about .footer-contact {
        display: flex;
        justify-content: center;
    }
    
    .footer-about .social-icons {
        justify-content: center;
    }
    
    .footer-section:not(.footer-about) {
        text-align: left;
    }
}

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

    .hero h1 {
        font-size: 1.75rem;
    }

    .calculators-section h2 {
        font-size: 1.5rem;
    }
    
    /* Even smaller tab text for very small screens */
    .tab-button {
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
    }
    
    .tab-button i {
        font-size: 0.75rem;
        margin-right: 0.2rem;
    }
    
    .tab-buttons {
        gap: 0.25rem;
    }
}
/* Blog Styles */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--secondary-color);
    padding: 3rem 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.blog-section {
    padding: 3rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-category {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
}

.blog-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h2 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Individual Blog Post Styles */
.blog-post {
    max-width: 100%;
}

.blog-hero-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb-nav .separator {
    color: var(--text-light);
}

.breadcrumb-nav .current {
    color: var(--text-color);
    font-weight: 500;
}

.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 3rem;
}

.blog-header {
    margin-bottom: 2rem;
}

.blog-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin: 1rem 0;
    color: var(--text-color);
}

.blog-intro {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-light);
    font-style: italic;
    margin: 1.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.blog-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.blog-content h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.blog-content h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-color);
}

.blog-content p {
    margin-bottom: 1.2rem;
}

.blog-content ul,
.blog-content ol {
    margin: 1rem 0 1.5rem 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.blog-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.blog-highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.blog-highlight i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.blog-highlight p {
    margin: 0;
}

.blog-cta {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.blog-cta h3 {
    margin-bottom: 0.5rem;
}

.blog-cta p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* Blog Post Navigation */
.blog-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.blog-nav-prev,
.blog-nav-next {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-nav-next {
    text-align: right;
    align-items: flex-end;
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
}

.blog-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.blog-navigation a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.blog-nav-prev a:hover {
    transform: translateX(-5px);
}

.blog-navigation i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Blog Share Buttons */
.blog-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 0;
}

.blog-share a {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-share a:hover {
    transform: translateY(-3px);
}

.blog-share a:nth-child(1):hover {
    background: #1DA1F2;
    color: white;
}

.blog-share a:nth-child(2):hover {
    background: #1877F2;
    color: white;
}

.blog-share a:nth-child(3):hover {
    background: #0A66C2;
    color: white;
}

.blog-share a:nth-child(4):hover {
    background: #25D366;
    color: white;
}

/* Author Section Styles */
.author-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0 2rem;
    border: 1px solid var(--border-color);
}

.author-info {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.author-details h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.author-title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.author-bio {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.author-social a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.blog-author {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .author-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-social {
        justify-content: center;
    }

    .breadcrumb {
        padding: 0.75rem 0;
    }

    .breadcrumb-nav {
        font-size: 0.85rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-hero-image {
        height: 250px;
    }
    
    .blog-content {
        font-size: 0.95rem;
    }
    
    .blog-share {
        justify-content: center;
    }
    
    .blog-navigation {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .blog-nav-prev,
    .blog-nav-next {
        text-align: center;
        align-items: center;
    }
    
    .blog-navigation a {
        justify-content: center;
        font-size: 0.9rem;
    }
}
