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

/* Ekomi Badge Styles - Temporarily Disabled */
/*
.ekomi-badge {
    display: flex;
    align-items: center;
    background: #ecf7fd;
    border: 1px solid #d1e7ff;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 1rem 0;
    margin-left: 0;
    margin-right: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    max-width: 400px;
    height: 90px;
    width: fit-content;
}

.ekomi-logo-container {
    position: relative;
    margin-right: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ekomi-logo {
    width: 70px;
    height: 70px;
}

.ekomi-info {
    flex: 1;
}

.ekomi-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    position: relative;
}

.ekomi-stars {
    display: flex;
    gap: 1px;
}

.ekomi-stars i {
    color: #fbbf24;
    font-size: 14px;
}

.ekomi-score {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
    margin-left: 2px;
}

.ekomi-reviews {
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.ekomi-text {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ekomi-date {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

.ekomi-info-icon {
    color: #3b82f6;
    font-size: 12px;
    margin-left: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-block;
}

.ekomi-info-icon:hover {
    color: #1d4ed8;
}

/* Custom Tooltip */
.ekomi-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #f8f9fa;
    border: 1px solid #3b82f6;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    min-width: 250px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
}

.ekomi-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.ekomi-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #3b82f6;
}

.ekomi-tooltip-text {
    color: #4b5563;
    line-height: 1.4;
    white-space: normal;
}
*/


html {
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

/* Removed CSS variables and mobile viewport fixes */

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

/* Top Bar */
.top-bar {
    background: #1f2937;
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-text i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.phone-number {
    font-weight: 600;
    color: #fbbf24;
}

.top-bar-divider {
    color: #6b7280;
    font-weight: 300;
}

/* Header */
.header {
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><defs><pattern id="headerFinance" x="0" y="0" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%232563eb" opacity="0.1"/><circle cx="50" cy="50" r="1.5" fill="%232563eb" opacity="0.08"/><path d="M5 5 L55 5 L55 55 L5 55 Z" fill="none" stroke="%232563eb" stroke-width="0.3" opacity="0.1"/><path d="M20 20 L40 20 L40 40 L20 40 Z" fill="none" stroke="%232563eb" stroke-width="0.2" opacity="0.1"/><circle cx="30" cy="30" r="8" fill="none" stroke="%232563eb" stroke-width="0.2" opacity="0.1"/><path d="M15 15 L45 45 M45 15 L15 45" stroke="%232563eb" stroke-width="0.2" opacity="0.08"/></pattern></defs><rect width="1200" height="200" fill="url(%23headerFinance)"/></svg>');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.logo-icon i {
    font-size: 1.5rem;
    color: white;
    z-index: 2;
}

.logo-accent {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    border: 2px solid white;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.logo-year {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    margin-top: 2px;
}

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

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2563eb;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(29, 78, 216, 0.8) 100%),
        url('hero2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 80px 0 60px;
    margin-top: 120px;
    position: relative;
    overflow: hidden;
}

/* Mobile scroll performance fix */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll; /* Fix mobile scroll issues */
    }
    
    /*
    .ekomi-badge {
        max-width: 350px;
        padding: 12px 16px;
        margin: 0.75rem 0;
        height: 80px;
    }
    
    .ekomi-logo-container {
        margin-right: 16px;
    }
    
    .ekomi-logo {
        width: 60px;
        height: 60px;
    }
    
    .ekomi-info-icon {
        font-size: 10px;
        margin-left: 3px;
    }
    
    .ekomi-stars i {
        font-size: 12px;
    }
    
    .ekomi-score {
        font-size: 14px;
    }
    
    .ekomi-reviews {
        font-size: 12px;
    }
    
    .ekomi-text,
    .ekomi-date {
        font-size: 12px;
    }
    
    .ekomi-badge {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(239, 68, 68, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Hero Features */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item i {
    font-size: 1.5rem;
    color: #fbbf24;
    min-width: 24px;
}

.feature-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Hero Form */
.hero-form {
    position: sticky;
    top: 80px;
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.contact-form-container h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-group label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.875rem;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px; /* Prevent iOS zoom */
    transition: all 0.3s ease;
    background: white;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.contact-form .form-group input::placeholder {
    color: #9ca3af;
    font-size: 0.875rem;
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-top: 0.5rem;
}

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

.checkbox-group label {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0;
    color: #374151;
}

.checkbox-group a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Checkbox error styling */
.checkbox-group .classic-field-error {
    margin-top: 0.5rem;
    margin-left: 0;
    width: 100%;
    clear: both;
    display: block;
}


.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: end;
}

.chart-container {
    display: flex;
    align-items: end;
    gap: 1rem;
    height: 200px;
}

.chart-bar {
    width: 60px;
    background: linear-gradient(to top, #fbbf24, #f59e0b);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 1rem 0.5rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.chart-bar span {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2937;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

.btn-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: none;
    letter-spacing: 0.25px;
    transition: all 0.3s ease;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* Press Section Styles - Critical */
.press-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
}

.press-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.press-intro {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
}

.press-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.press-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.press-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70px;
    margin-bottom: 0.75rem;
}

.press-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    filter: none;
    opacity: 1;
}

.press-logo-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    padding: 0 0.5rem;
}

/* Press Section Mobile Responsive */
@media (max-width: 768px) {
    .press-section {
        padding: 2rem 0;
    }
    
    .press-intro {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .press-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .press-logo-item {
        padding: 1rem;
    }
    
    .press-logo-container {
        height: 55px;
        margin-bottom: 0.5rem;
    }
    
    .press-logo-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .press-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .press-logo-item {
        padding: 0.75rem;
    }
    
    .press-logo-container {
        height: 45px;
        margin-bottom: 0.375rem;
    }
    
    .press-logo-name {
        font-size: 0.6875rem;
    }
}

@media (max-width: 320px) {
    .press-logos {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }
    
    .press-logo-item {
        padding: 0.5rem;
    }
    
    .press-logo-container {
        height: 40px;
        margin-bottom: 0.25rem;
    }
    
    .press-logo-name {
        font-size: 0.625rem;
    }
}

/* Comparison Section */
.comparison {
    padding: 40px 0;
    background: white;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.bank-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.bank-card.selected {
    border: 2px solid #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.bank-card.featured {
    border: 2px solid #2563eb;
    position: relative;
}

.bank-card.featured::before {
    content: "Empfehlung";
    position: absolute;
    top: -15px;
    left: 20px;
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.bank-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bank-logo {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6b7280;
    overflow: hidden;
}

.bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.bank-logo i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating span {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.bank-rates {
    margin-bottom: 1rem;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.rate-label {
    color: #6b7280;
    font-size: 0.9rem;
}

.rate-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}

.bank-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    margin-top: auto;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.detail-item i {
    width: 12px;
    text-align: center;
    flex-shrink: 0;
}

.detail-item i {
    color: #2563eb;
}

/* Calculator Section */
.calculator {
    padding: 80px 0;
    background: #f8fafc;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
}

.calculator-result {
    display: flex;
    align-items: center;
}

.result-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.result-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.result-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2563eb;
    border-top: 2px solid #e5e7eb;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* Features Section */
.features {
    padding: 40px 0;
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 40px 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Privacy Popup */
.privacy-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.privacy-popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-popup-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form button pulse animation */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    }
}

/* Form submit button animation */
.btn-primary[type="submit"] {
    animation: buttonPulse 2s ease-in-out infinite;
}

/* Form mini-message styles */
.form-mini-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
}

.form-mini-message p {
    margin: 0;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-mini-message i {
    font-size: 0.9rem;
    color: #fbbf24;
}

.privacy-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.privacy-popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.privacy-popup-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.privacy-popup-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.privacy-popup-body {
    padding: 2rem;
}

.privacy-popup-body h4 {
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.privacy-popup-body h4:first-child {
    margin-top: 0;
}

.privacy-popup-body p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
    color: #374151;
}

.privacy-popup-body strong {
    color: #1f2937;
    font-weight: 600;
}

/* Contact Form Section */
.contact-form-section {
    padding: 60px 0;
    background: white;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-header .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.contact-form-header .section-subtitle {
    font-size: 1rem;
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 0.75rem auto;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 60px 0;
    background: white;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.about-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
}

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

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
}

.about-features h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
    font-size: 1.1rem;
}

.promise {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    font-size: 1rem;
    line-height: 1.6;
    color: #1e40af;
}

/* Why Us Section */
.why-us {
    padding: 50px 0;
    background: #f8fafc;
}

.why-us-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    overflow-x: hidden;
}

.why-us .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.why-item:nth-child(1) {
    grid-column: 1 / 3;
}

.why-item:nth-child(2) {
    grid-column: 3 / 5;
}

.why-item:nth-child(3) {
    grid-column: 5 / 7;
}

.why-item:nth-child(4) {
    grid-column: 2 / 4;
}

.why-item:nth-child(5) {
    grid-column: 4 / 6;
}

.why-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.why-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.why-icon i {
    font-size: 1.25rem;
    color: white;
}

.why-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.why-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #64748b;
}

.about-commitment {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.about-commitment p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
    margin: 0;
}

.bottom-contact .contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 30px 0 15px;
}

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

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #f9fafb;
}

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

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

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-section .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.footer-section .logo:hover {
    opacity: 0.8;
}

.footer-section .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.footer-section .logo-icon i {
    font-size: 1.2rem;
    color: white;
    z-index: 2;
}

.footer-section .logo-accent {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    z-index: 1;
}

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

.footer-section .logo-main {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.footer-section .logo-year {
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header {
        top: 0; /* Top bar gizlendiği için header'ı yukarı çek */
    }
    
    .hero {
        margin-top: 80px; /* 120px'den 80px'e düşür */
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .top-bar-text {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .top-bar-right {
        gap: 0.5rem;
    }
    
    .header {
        top: 0;
        border-bottom: none;
        box-shadow: none;
    }
    
    .hero {
        margin-top: 70px;
        padding: 40px 0 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 1001;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 1.25rem;
        font-weight: 600;
        color: #1f2937;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: #f3f4f6;
        color: #2563eb;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /*
    .hero .container .ekomi-badge {
        text-align: left;
    }
    */
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.75rem; /* Smaller title on mobile */
    }
    
    /* Special smaller size for comparison section title */
    .comparison .section-title {
        font-size: 1.5rem; /* Even smaller for long German text */
    }
    
    .comparison-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .bank-card {
        padding: 1rem;
    }
    
    .bank-card.featured::before {
        top: -20px;
        left: 15px;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .bank-details {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .contact-form-container {
        margin: 0 1rem;
    }
    
    .contact-form .form-row {
        flex-direction: column;
    }
    
    .detail-item {
        flex: 1;
        min-width: calc(50% - 0.375rem);
    }
    
    .hero-form {
        position: static;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 150px;
    }
    
    .chart-bar {
        width: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: none;
    }
    
    .why-item:nth-child(1),
    .why-item:nth-child(2),
    .why-item:nth-child(3),
    .why-item:nth-child(4),
    .why-item:nth-child(5) {
        grid-column: span 1;
    }
    
    .why-item {
        padding: 1.25rem 0.75rem;
    }
    
    .about-commitment {
        padding: 1.5rem 1rem;
    }
    
    .about {
        padding: 40px 0;
    }
    
    .why-us {
        padding: 40px 0;
    }
    
    .contact-form-section {
        padding: 40px 0;
    }
    
    .contact-form-header .section-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .contact-form-header .section-subtitle {
        font-size: 0.95rem;
    }
    
    .contact-form-container {
        max-width: calc(100% - 2rem);
    }
}

@media (max-width: 480px) {
    /*
    .ekomi-badge {
        max-width: 320px;
        padding: 10px 14px;
        margin: 0.5rem 0;
        height: 75px;
    }
    
    .ekomi-logo-container {
        margin-right: 14px;
    }
    
    .ekomi-logo {
        width: 55px;
        height: 55px;
    }
    
    .ekomi-info-icon {
        font-size: 9px;
        margin-left: 2px;
    }
    
    .ekomi-stars i {
        font-size: 11px;
    }
    
    .ekomi-score {
        font-size: 13px;
    }
    
    .ekomi-reviews {
        font-size: 11px;
    }
    
    .ekomi-text,
    .ekomi-date {
        font-size: 11px;
    }
    
    .ekomi-badge {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    */
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: none;
    }
    
    /* Extra small screens - even smaller title */
    .comparison .section-title {
        font-size: 1.25rem; /* Very small for tiny screens */
        line-height: 1.2;
    }
    
    .why-item:nth-child(1),
    .why-item:nth-child(2),
    .why-item:nth-child(3),
    .why-item:nth-child(4),
    .why-item:nth-child(5) {
        grid-column: span 1;
    }
    
    .why-item {
        padding: 1rem 0.5rem;
    }
    
    .about {
        padding: 30px 0;
    }
    
    .why-us {
        padding: 30px 0;
    }
    
    .contact-form-section {
        padding: 30px 0;
    }
    
    .contact-form-header .section-title {
        font-size: 1.5rem;
        line-height: 1.1;
    }
    
    .contact-form-header .section-subtitle {
        font-size: 0.9rem;
    }
    
    .contact-form-container {
        max-width: calc(100% - 1rem);
    }
    
    .privacy-popup-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .privacy-popup-header {
        padding: 1rem 1.5rem;
    }
    
    .privacy-popup-header h3 {
        font-size: 1.25rem;
    }
    
    .privacy-popup-body {
        padding: 1.5rem;
    }
    
    .hero-features {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .contact-form-container {
        padding: 1rem;
    }
    
    .logo {
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-main {
        font-size: 1.25rem;
    }
    
    .logo-year {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .top-bar {
        display: none;
    }
    
    .top-bar-text {
        font-size: 0.7rem;
    }
    
    .hero {
        margin-top: 70px;
        padding: 20px 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bank-card {
        padding: 1rem;
    }
    
    .bank-card.featured::before {
        top: -25px;
        left: 10px;
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .bank-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-item {
        flex: none;
        min-width: auto;
    }
    
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Hardware acceleration */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-icon {
    font-size: 20px;
    line-height: 1;
    font-weight: bold;
}

/* Desktop styles */
@media (min-width: 769px) {
    .scroll-to-top {
        width: 60px;
        height: 60px;
        bottom: 30px;
        right: 30px;
        font-size: 20px;
    }
    
    .scroll-icon {
        font-size: 24px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
    
    .scroll-icon {
        font-size: 20px;
    }
}

/* Popup Form Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.popup-container {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-header {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.popup-header h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.popup-subtitle {
    margin: 0 0 0 0;
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.popup-content {
    padding: 1.5rem;
}

.popup-content .form-step .btn {
    margin-top: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 300px;
}

.popup-content .back-btn {
    margin-top: 2rem;
}

/* Multi-step form styles for popup */
.popup-content .form-step {
    display: none;
}

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

/* Hide popup header in step 2 */
.popup-header.hidden {
    display: none;
}

.popup-content .rate-preview {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.popup-content .rate-preview-content {
    color: #1e40af;
    font-weight: 600;
    line-height: 1.4;
}

.popup-content .rate-preview-content strong {
    color: #1e3a8a;
}

.popup-content .back-btn {
    margin-top: 1rem;
    background: transparent;
    border: 1px solid #d1d5db;
    color: #6b7280;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.popup-content .back-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}


/* Desktop popup adjustments */
@media (min-width: 769px) {
    .popup-content .form-step .btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .popup-content .checkbox-group {
        margin-bottom: 1.5rem;
    }
    
    .popup-content .form-step .form-group {
        margin-bottom: 1rem;
    }
    
    .popup-content .form-step .form-row {
        margin-bottom: 0.75rem;
    }
    
    .popup-content .form-step .form-row .form-group {
        margin-bottom: 0.75rem;
    }
    
    .popup-content .rate-preview {
        margin-bottom: 1.5rem;
    }
}

/* Mobile popup adjustments */
@media (max-width: 768px) {
    .popup-overlay {
        padding: 10px;
    }
    
    .popup-container {
        max-height: 95vh;
    }
    
    .popup-header {
        padding: 1rem;
    }
    
    .popup-header h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .popup-subtitle {
        font-size: 0.8rem;
    }
    
    .popup-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #374151;
        font-weight: bold;
    }
    
    .popup-content {
        padding: 1rem;
    }
    
    .popup-content .form-step .form-group {
        margin-bottom: 0.375rem;
    }
    
    .popup-content .form-step .form-row {
        margin-bottom: 0.25rem;
    }
    
    .popup-content .form-step .form-row .form-group {
        margin-bottom: 0.25rem;
    }
    
    .popup-content .form-step .btn {
        margin-top: 0.75rem;
    }
    
    .popup-content .back-btn {
        margin-top: 0.75rem;
        width: 100%;
        padding: 0.75rem;
    }
    
    .popup-content .rate-preview {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .popup-content .rate-preview-content {
        font-size: 0.9rem;
    }
    
    .popup-content .checkbox-group {
        margin-bottom: 0.375rem;
        text-align: center;
    }
    
    .popup-content .form-step .btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .popup-header h3 {
        font-size: 1rem;
    }
    
    .popup-subtitle {
        font-size: 0.75rem;
    }
    
    .popup-content .rate-preview-content {
        font-size: 0.85rem;
    }
    
    .popup-content .form-step .form-group label {
        font-size: 0.9rem;
    }
    
    .popup-content .form-step .form-group {
        margin-bottom: 0.25rem;
    }
    
    .popup-content .form-step .form-row {
        margin-bottom: 0.1875rem;
    }
    
    .popup-content .form-step .form-row .form-group {
        margin-bottom: 0.1875rem;
    }
    
    .popup-content .form-step .btn {
        margin-top: 0.5rem;
    }
    
    .popup-content .back-btn {
        margin-top: 0.5rem;
    }
    
    .popup-content .rate-preview {
        margin-bottom: 0.5rem;
    }
    
    .popup-content .checkbox-group {
        margin-bottom: 0.25rem;
        text-align: center;
    }
    
    .popup-close {
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #374151;
        font-weight: bold;
    }
    
    .popup-content .form-step .btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

/* Bank Selection Popup Styles */
.bank-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.bank-popup-container {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: bankPopupSlideIn 0.3s ease-out;
}

@keyframes bankPopupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bank-popup-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    gap: 1rem;
}

.bank-popup-logo {
    flex-shrink: 0;
}

.bank-popup-info {
    flex: 1;
}

.bank-popup-header h3 {
    margin: 0 0 0.25rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.bank-popup-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.bank-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.bank-popup-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.bank-popup-content {
    padding: 1.5rem !important;
    gap: 0px !important;
    row-gap: 0px !important;
    column-gap: 0px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* COMPLETE BANK POPUP SPACING OVERRIDE - NET SOLUTION */
.bank-popup-content * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.bank-popup-content .btn {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 350px !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0 !important;
}

.bank-popup-content .checkbox-group {
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
}

.bank-popup-content .form-group {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

.bank-popup-content .form-row {
    margin-top: 0 !important;
    margin-bottom: 0.375rem !important;
}

.bank-popup-content .form-row .form-group {
    margin-top: 0 !important;
    margin-bottom: 0.375rem !important;
}

.bank-popup-content .bank-rates-preview {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

/* Override contact-form gap in bank popup */
.bank-popup-content .contact-form {
    gap: 0px !important;
    row-gap: 0px !important;
    column-gap: 0px !important;
}

.bank-rates-preview {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.bank-rates-preview-content {
    color: #1e40af;
    font-weight: 600;
    line-height: 1.4;
}

.bank-rates-preview-content strong {
    color: #1e3a8a;
}

/* Desktop bank popup adjustments */
@media (min-width: 769px) {
    .bank-popup-content .btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 350px;
        margin-top: 0.75rem;
    }
    
    .bank-popup-content .checkbox-group {
        margin-bottom: 0.75rem;
    }
    
    .bank-popup-content .form-group {
        margin-bottom: 0.5rem;
    }
    
    .bank-popup-content .form-row {
        margin-bottom: 0.375rem;
    }
    
    .bank-popup-content .form-row .form-group {
        margin-bottom: 0.375rem;
    }
    
    .bank-rates-preview {
        margin-bottom: 1rem;
    }
}

/* Mobile bank popup adjustments */
@media (max-width: 768px) {
    .bank-popup-overlay {
        padding: 8px;
    }
    
    .bank-popup-container {
        max-height: 90vh;
        max-width: 92vw;
        width: 92vw;
        margin: auto;
    }
    
    .bank-popup-header {
        padding: 0.75rem 1rem 0.5rem;
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
    }
    
    .bank-popup-logo img {
        width: 40px;
        height: 40px;
    }
    
    .bank-popup-header h3 {
        font-size: 1rem;
        margin-bottom: 0.125rem;
    }
    
    .bank-popup-subtitle {
        font-size: 0.75rem;
        display: none; /* Hide subtitle on mobile to save space */
    }
    
    .bank-popup-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #374151;
        font-weight: bold;
    }
    
    .bank-popup-content {
        padding: 0.75rem 1rem 1rem;
        gap: 0px !important;
        row-gap: 0px !important;
        column-gap: 0px !important;
    }
    
    .bank-rates-preview {
        padding: 0.625rem;
        margin-bottom: 0.75rem;
    }
    
    .bank-rates-preview-content {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* Form optimizations */
    .bank-popup-content .form-row {
        margin-bottom: 0.25rem;
    }
    
    .bank-popup-content .form-group {
        margin-bottom: 0.25rem;
    }
    
    .bank-popup-content .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.125rem;
    }
    
    .bank-popup-content input,
    .bank-popup-content select {
        padding: 0.375rem 0.4375rem;
        font-size: 0.875rem;
    }
    
    .bank-popup-content .btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        margin-top: 0.375rem;
        min-height: 48px;
    }
    
    .bank-popup-content .checkbox-group {
        margin-bottom: 0.375rem;
        text-align: center;
    }
    
    .bank-popup-content .checkbox-group label {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .bank-popup-content .btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    /* Override contact-form gap in mobile bank popup */
    .bank-popup-content .contact-form {
        gap: 0px !important;
        row-gap: 0px !important;
        column-gap: 0px !important;
    }
}

@media (max-width: 480px) {
    .bank-popup-overlay {
        padding: 6px;
    }
    
    .bank-popup-container {
        max-height: 88vh;
        max-width: 95vw;
        width: 95vw;
        margin: auto;
    }
    
    .bank-popup-header {
        padding: 0.5rem 0.75rem 0.375rem;
        gap: 0.5rem;
    }
    
    .bank-popup-logo img {
        width: 35px;
        height: 35px;
    }
    
    .bank-popup-header h3 {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .bank-popup-close {
        top: 0.375rem;
        right: 0.375rem;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #374151;
        font-weight: bold;
    }
    
    .bank-popup-content {
        padding: 0.5rem 0.75rem 0.75rem;
        gap: 0px !important;
        row-gap: 0px !important;
        column-gap: 0px !important;
    }
    
    .bank-rates-preview {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .bank-rates-preview-content {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    /* Form optimizations for small screens */
    .bank-popup-content .form-row {
        margin-bottom: 0.1875rem;
    }
    
    .bank-popup-content .form-group {
        margin-bottom: 0.1875rem;
    }
    
    .bank-popup-content .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.125rem;
    }
    
    .bank-popup-content input,
    .bank-popup-content select {
        padding: 0.3125rem 0.4375rem;
        font-size: 0.8rem;
    }
    
    .bank-popup-content .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin-top: 0.25rem;
        min-height: 44px;
    }
    
    .bank-popup-content .checkbox-group {
        margin-bottom: 0.25rem;
        text-align: center;
    }
    
    .bank-popup-content .checkbox-group label {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .bank-popup-content .btn {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    /* Override contact-form gap in small mobile bank popup */
    .bank-popup-content .contact-form {
        gap: 0px !important;
        row-gap: 0px !important;
        column-gap: 0px !important;
    }
}




