/* Vesta Capital - Main Stylesheet */

/* Color Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-title {
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 0.6s ease-out;
}

.page-subtitle {
    font-size: 1.2rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo img {
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.9;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-link {
    text-decoration: none;
    color: #7f8c8d;
    font-weight: 500;
}

.lang-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.lang-separator {
    color: #bdc3c7;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
    display: block;
}

.mobile-nav-content {
    padding: 3rem 2rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.mobile-nav-link {
    display: block;
    padding: 1.25rem 0;
    text-decoration: none;
    color: #333;
    font-size: 1.3rem;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--primary-color);
    background-color: #f8fafc;
}

.mobile-lang-switcher {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    border-top: 1px solid #f1f5f9;
}

.mobile-lang-link {
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-lang-link.active {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #1e3a8a 100%);
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Calculator Section */
.calculator-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-white));
    position: relative;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-light));
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out;
    transition: transform 0.3s ease;
}

.calculator-container:hover {
    transform: translateY(-5px);
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.calculator-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-light), white);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.result-label {
    font-weight: 500;
    color: #7f8c8d;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.calculator-disclaimer {
    text-align: center;
    margin-top: 2rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.form-control:hover {
    border-color: var(--primary-light);
    background: white;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232563eb" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group:has(.error-message) .form-control {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.form-submit {
    text-align: center;
    margin-top: 2.5rem;
}

.form-submit .btn {
    min-width: 250px;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.form-submit .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.form-submit .btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-white));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.star {
    color: #bdc3c7;
    font-size: 1.2rem;
}

.star.filled {
    color: var(--secondary-color);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #1e3a8a 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Application & Contact Forms */
.application-section,
.contact-section {
    padding: 4rem 0;
}

.application-header,
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.application-form,
.contact-form {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.1);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
}

.application-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 24px 24px 0 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.contact-info h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ecf0f1;
}

.contact-method:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.contact-details p {
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

.contact-details small {
    color: #95a5a6;
}

/* Legal Pages */
.legal-section {
    padding: 4rem 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.legal-content .legal-section {
    margin-bottom: 2rem;
    padding: 0;
}

.legal-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content h3 {
    color: #34495e;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    padding: 4rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.footer-address {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
}

.footer-legal p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.compliance-notice {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
}

.compliance-notice p {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* How It Works Section */
.how-it-works-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.process-step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    z-index: 1;
}

.process-step-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    margin-top: 5rem;
    display: inline-block;
}

.process-step-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.process-step h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #1e3a8a 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero-content {
    position: relative;
    z-index: 1;
}

.mission-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.mission-text h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.mission-text > p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.mission-values {
    display: grid;
    gap: 2rem;
}

.value-item {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.value-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.value-item p {
    color: var(--text-gray);
    line-height: 1.7;
}

.mission-stats {
    display: grid;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.team-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.commitment-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.commitment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.commitment-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.commitment-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.commitment-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.commitment-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.compliance-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.compliance-content {
    max-width: 900px;
    margin: 0 auto;
}

.compliance-content h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.compliance-content > p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
}

.compliance-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.badge-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    align-items: center;
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 3rem;
}

.badge-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge-text strong {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.badge-text span {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.about-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.about-cta .cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-cta .cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Image Styles */
.hero-image {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.feature-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    min-width: 150px;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trust-badge-icon {
    font-size: 2.5rem;
}

.trust-badge-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.trust-badge-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: center;
    font-weight: 500;
}

/* Alert Styles */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 5px solid #28a745;
}

.alert-success::before {
    content: '✓';
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.alert-error::before {
    content: '✕';
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc3545;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
    /* Header Mobile Optimization */
    .nav-list,
    .language-switcher {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-content {
        padding: 1rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.75rem;
    }
    
    /* Mobile Navigation Improvements */
    .mobile-nav-content {
        padding: 3rem 1.5rem 2rem;
    }
    
    .mobile-nav-link {
        padding: 1.25rem 0;
        font-size: 1.3rem;
        font-weight: 500;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .mobile-lang-switcher {
        margin-top: 2.5rem;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .mobile-lang-link {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    /* Hero Section Mobile Optimization */
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
        padding: 0 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
    }
    
    /* Calculator Mobile Optimization */
    .calculator-section {
        padding: 3rem 0;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .calculator-form {
        gap: 1.25rem;
    }
    
    /* Touch Device Specific Styles */
    .touch-device {
        /* Improve scrolling performance on touch devices */
        -webkit-overflow-scrolling: touch;
    }
    
    .touch-device .btn,
    .touch-device .nav-link,
    .touch-device .mobile-nav-link {
        /* Enhanced touch targets */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.1s ease;
    }
    
    .touch-device .btn:active,
    .touch-device .nav-link:active,
    .touch-device .mobile-nav-link:active {
        transform: scale(0.98);
    }
    
    /* Mobile Header Hide/Show on Scroll */
    .touch-device .header {
        transition: transform 0.3s ease;
    }
    
    .touch-device .header.hidden {
        transform: translateY(-100%);
    }
    
    /* Improved Mobile Form Inputs */
    .touch-device input,
    .touch-device textarea,
    .touch-device select {
        font-size: 16px; /* Prevents iOS zoom */
        min-height: 44px;
    }
    
    /* Enhanced Mobile Navigation */
    .mobile-nav {
        overscroll-behavior: contain; /* Prevents scroll bleed */
    }
    
    .mobile-nav-link {
        position: relative;
        overflow: hidden;
    }
    
    .mobile-nav-link:active {
        background-color: #f8fafc;
    }
    
    /* Mobile-specific button enhancements */
    @media (max-width: 768px) {
        .btn {
            position: relative;
            overflow: hidden;
        }
        
        .btn:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.5);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%);
            transform-origin: 50% 50%;
        }
        
        .btn:focus:not(:active)::after {
            animation: ripple 1s ease-out;
        }
        
        @keyframes ripple {
            0% {
                transform: scale(0, 0);
                opacity: 0.5;
            }
            20% {
                transform: scale(25, 25);
                opacity: 0.3;
            }
            100% {
                transform: scale(40, 40);
                opacity: 0;
            }
        }
    }
    
    /* Improved Mobile Loading States */
    .loading {
        pointer-events: none;
        opacity: 0.7;
    }
    
    .loading:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Mobile Performance Optimizations */
    @media (max-width: 768px) {
        /* Reduce animations for better performance */
        .feature-card:hover,
        .testimonial-card:hover,
        .trust-badge:hover {
            transform: none;
        }
        
        /* Optimize images for mobile */
        img {
            max-width: 100%;
            height: auto;
        }
        
        /* Improve text readability */
        body {
            text-rendering: optimizeSpeed;
            -webkit-font-smoothing: antialiased;
        }
    }
    
    /* Enhanced Focus States for Mobile Accessibility */
    @media (max-width: 768px) {
        .btn:focus,
        .nav-link:focus,
        .mobile-nav-link:focus,
        input:focus,
        textarea:focus,
        select:focus {
            outline: 2px solid #2563eb;
            outline-offset: 2px;
        }
    }
    
    .result-item {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .result-value {
        font-size: 1.3rem;
    }
    
    /* Features Mobile Optimization */
    .features-section {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .feature-icon img {
        width: 60px;
        height: 60px;
    }
    
    /* Process Steps Mobile Optimization */
    .how-it-works-section {
        padding: 3rem 0;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 2rem;
    }
    
    .process-step {
        padding: 1.5rem 1rem;
    }
    
    .process-step-icon img {
        width: 50px;
        height: 50px;
    }
    
    /* Trust Badges Mobile Optimization */
    .trust-badges {
        gap: 1.5rem;
        padding: 1.5rem 0;
        flex-wrap: wrap;
    }
    
    .trust-badge {
        min-width: 130px;
        padding: 1.25rem 1rem;
    }
    
    .trust-badge-icon img {
        width: 40px;
        height: 40px;
    }
    
    .trust-badge-text {
        font-size: 0.85rem;
    }
    
    /* Testimonials Mobile Optimization */
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    /* FAQ Mobile Optimization */
    .faq-section {
        padding: 3rem 0;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }
    
    /* CTA Mobile Optimization */
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    /* Forms Mobile Optimization */
    .application-section,
    .contact-section {
        padding: 3rem 0;
    }
    
    .application-form,
    .contact-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        padding: 2rem 1.5rem;
    }
    
    .contact-method {
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    /* Stats Mobile Optimization */
    .stats-section {
        padding: 3rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Typography Mobile Optimization */
    .page-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    /* Legal Pages Mobile Optimization */
    .legal-content {
        padding: 2rem 1rem;
        margin: 0 0.5rem;
    }
    
    /* About Page Mobile Optimization */
    .about-hero {
        padding: 4rem 0 3rem;
    }
    
    .mission-section {
        padding: 3rem 0;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-text h2 {
        font-size: 1.8rem;
    }
    
    .team-section {
        padding: 3rem 0;
    }
    
    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .commitment-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .commitment-icon img {
        width: 60px;
        height: 60px;
    }
    
    .compliance-section {
        padding: 3rem 0;
    }
    
    .compliance-badges {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .badge-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .badge-icon img {
        width: 50px;
        height: 50px;
    }
    
    .about-cta {
        padding: 3rem 0;
    }
    
    .about-cta .cta-content h2 {
        font-size: 2rem;
    }
    
    /* Footer Mobile Optimization */
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .calculator-container,
    .application-form,
    .contact-form {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    /* Touch-friendly button sizes */
    .btn {
        padding: 1rem 2rem;
        min-height: 48px;
        font-size: 1.1rem;
    }
    
    /* Improved touch targets */
    .nav-link,
    .mobile-nav-link,
    .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Better spacing for mobile */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-control {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    /* Optimize icon sizes for mobile */
    .feature-icon img,
    .commitment-icon img {
        width: 55px;
        height: 55px;
    }
    
    .process-step-icon img {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon img {
        width: 28px;
        height: 28px;
    }
    
    .trust-badge-icon img {
        width: 35px;
        height: 35px;
    }
    
    .badge-icon img {
        width: 45px;
        height: 45px;
    }
}

/* Fee Table Styles */
.fee-table {
    margin-top: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.fee-table h3 {
    padding: 1.5rem 2rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.fee-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.fee-table thead {
    background: var(--bg-light);
}

.fee-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fee-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-gray);
    line-height: 1.6;
}

.fee-table tbody tr {
    transition: all 0.3s ease;
}

.fee-table tbody tr:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.fee-table tbody tr:last-child td {
    border-bottom: none;
}

.fee-table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.fee-table td:nth-child(2) {
    font-weight: 600;
    color: var(--primary-color);
}

.fee-table td:nth-child(3) {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Rate Details Styles */
.rate-details {
    margin-top: 1rem;
}

.rate-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.rate-min {
    color: var(--primary-color);
}

.rate-max {
    color: var(--text-gray);
}

.rate-separator {
    color: var(--text-light);
}

.rate-type {
    font-size: 0.8rem;
    color: var(--text-gray);
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.rate-info {
    text-align: left;
}

.rate-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.rate-info strong {
    color: var(--text-dark);
}

/* Loan Details Styles */
.loan-details {
    margin-top: 1rem;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: var(--text-dark);
    font-weight: 500;
}

.detail-item span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Compliance Details Styles */
.compliance-details {
    margin-top: 1rem;
    text-align: left;
}

.compliance-details .detail-item {
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.compliance-details .detail-item strong {
    color: var(--text-gray);
    font-weight: 500;
}

.compliance-details .detail-item span {
    color: var(--text-dark);
    font-weight: 600;
}

/* Mobile Responsive for Fee Table */
@media (max-width: 768px) {
    .fee-table {
        margin-top: 2rem;
        border-radius: 8px;
    }
    
    .fee-table h3 {
        padding: 1.25rem 1.5rem;
        font-size: 1.2rem;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 1rem 1rem;
        font-size: 0.85rem;
    }
    
    .fee-table th {
        font-size: 0.8rem;
    }
    
    .rate-range {
        font-size: 1.3rem;
        flex-wrap: wrap;
    }
    
    .rate-type {
        font-size: 0.75rem;
        margin-left: 0;
        margin-top: 0.25rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .compliance-details .detail-item {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .fee-table {
        margin: 1.5rem 0.5rem 0;
    }
    
    .fee-table h3 {
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 0.875rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .rate-range {
        font-size: 1.2rem;
    }
}