/* Reset and Base Styles - Updated Search Bar v2 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007BFF;
    --secondary-color: #FF6F00;
    --accent-color: #6C757D;
    --background-color: #FFFFFF;
    --light-gray: #CED4DA;
    --text-color: #333333;
    --border-color: #E9ECEF;
    --success-color: #28A745;
    --error-color: #DC3545;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', 'Roboto', 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Header and Navigation */
.header {
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo a:hover {
    color: var(--secondary-color);
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    /* Mobile Search Bar */
    .hero-search {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

    .search-container {
        max-width: 100%;
    }

    .search-input {
        padding: 1rem 1.25rem 1rem 3.5rem;
        font-size: 1rem;
    }

    .search-icon {
        left: 1.25rem;
        width: 20px;
        height: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Legal Content Optimizations */
    .legal-content {
        padding: 1.5rem 0;
    }

    .legal-text {
        line-height: 1.5;
        padding: 0 1rem;
    }

    .legal-text h2 {
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        font-size: 1.25rem;
    }

    .legal-text h3 {
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
        font-size: 1.125rem;
    }

    .legal-text p {
        margin-bottom: 0.75rem;
        text-align: left;
    }

    .legal-text ul {
        margin: 0.75rem 0 0.75rem 1rem;
    }

    .legal-text ul li {
        margin-bottom: 0.25rem;
        line-height: 1.4;
    }

    .legal-notice {
        padding: 1rem;
        margin-top: 1.5rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

/* Hero Search Bar */
.hero-search {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.search-container {
    position: relative;
    max-width: 700px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6C757D;
    z-index: 2;
    width: 24px;
    height: 24px;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    font-size: 1.25rem;
    color: #333333;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.search-input::placeholder {
    color: #6C757D;
    opacity: 0.9;
    font-weight: 400;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

/* Page Headers */
.page-header {
    background-color: var(--light-gray);
    padding: 3rem 0;
    text-align: center;
}

.page-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--accent-color);
    font-size: 1.125rem;
}

/* Calculator Grid */
.calculators {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.calculator-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.calculator-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.calculator-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.calculator-description {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.calculator-preview h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.calculator-form {
    margin-bottom: 1rem;
}

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

.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(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.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(0, 123, 255, 0.1);
}

.btn-calculate {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-calculate:hover {
    background-color: #E65100;
    transform: translateY(-2px);
}

.result {
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    border-radius: var(--border-radius);
    color: var(--success-color);
    font-weight: 600;
    text-align: center;
    display: none;
}

.coming-soon {
    text-align: center;
    color: var(--accent-color);
    font-style: italic;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(108, 117, 125, 0.1);
    border-radius: var(--border-radius);
}

/* About Page */
.about-content {
    padding: 4rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-text h2,
.about-text h3 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.about-text h2:first-child {
    margin-top: 0;
}

.feature-list {
    list-style: none;
    margin: 1rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

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

.stat-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--accent-color);
    font-weight: 500;
}

/* Contact Page */
.contact-content {
    padding: 4rem 0;
}

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

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: var(--border-radius);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

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

.contact-form-container {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.contact-form .form-group label::after {
    content: " *";
    color: var(--error-color);
}

.contact-form .form-group:nth-child(3) label::after,
.contact-form .form-group:nth-child(4) label::after {
    content: "";
}

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

.btn-submit:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.error-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.success-message {
    text-align: center;
    padding: 2rem;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    border-radius: var(--border-radius);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: var(--accent-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Legal Pages */
.legal-content {
    padding: 2rem 0;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-text p {
    margin-bottom: 1rem;
    text-align: left;
}

.legal-text ul {
    margin: 1rem 0 1rem 1.5rem;
}

.legal-text ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.legal-notice {
    background-color: rgba(0, 123, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.legal-notice p {
    margin-bottom: 0;
    font-weight: 500;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

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