@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --primary-color: #C82814;
    --secondary-color: #142355;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    scroll-padding-top: 50px;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    color: var(--text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease-in-out;
}

.navbar.hidden {
    transform: translateY(-100%);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo svg {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: scale(1.05);
}

.logo img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--primary-color), #a32010);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-menu .dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    padding-top: 1rem;
    margin-top: 0;
    z-index: 1000;
    list-style: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    padding: 0;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInLeft 0.3s ease forwards;
}

.dropdown-menu li:nth-child(1) { animation-delay: 0.05s; }
.dropdown-menu li:nth-child(2) { animation-delay: 0.1s; }
.dropdown-menu li:nth-child(3) { animation-delay: 0.15s; }
.dropdown-menu li:nth-child(4) { animation-delay: 0.2s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), #a32010);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, #e8ecf5 0%, #d4dcea 100%);
    color: var(--primary-color);
    padding-left: 1.75rem;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.3rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    color: var(--white);
    padding: 150px 20px 100px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    border-radius: 12px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero-content .cta-button {
    font-size: 1.4rem;
    padding: 1.2rem 3rem;
    font-weight: 600;
}

.hero-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 1rem;
}

.hero-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-nav-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-nav-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Insurance Companies Cloud */
.insurance-cloud {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.insurance-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: default;
}

.insurance-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(20, 35, 85, 0.2);
    border-color: #142355;
}

.insurance-tag img {
    max-height: 25px;
    max-width: 100px;
    object-fit: contain;
}

/* Partners Section */
.partners-section {
    background: white;
    padding: 1rem 0;
    overflow: hidden;
}

.partners-slider {
    overflow: hidden;
    padding: 0.5rem 0;
}

.partners-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.partner-logo {
    flex: 0 0 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    padding: 0.5rem;
    transition: transform 0.3s;
}

.partner-logo:hover {
    transform: translateY(-5px);
}

.partner-logo img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s;
}

.partner-logo:hover img {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partners-track:hover {
    animation-play-state: paused;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #a32010);
    color: var(--white);
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button::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;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(200, 40, 20, 0.4);
    background: linear-gradient(135deg, #a32010, var(--primary-color));
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(200, 40, 20, 0.3);
}

/* Features */
.features {
    padding: 80px 20px;
    background: var(--light-bg);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card-link:hover h3 {
    color: var(--primary-color);
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s;
}

.feature-card:hover .read-more {
    transform: translateX(5px);
}

.feature-icon {
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #a32010);
    border-radius: 50%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(200, 40, 20, 0.3);
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 20px;
    background: var(--white);
}

.calculator-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.insurance-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

#step1, #step2, #contactForm {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#step2.insurance-form {
    max-width: 1200px;
}

.insurance-form h3 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
    scroll-margin-top: 150px; /* Offset dla fixed menu przy walidacji */
    scroll-padding-top: 150px;
}

/* Stylizacja pola daty aby czcionka była spójna */
input[type="date"] {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(200, 40, 20, 0.1);
    transform: translateY(-2px);
}

/* Styl błędu walidacji */
.form-group input.input-error,
.form-group select.input-error,
.form-group textarea.input-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

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

.validation-error-message {
    transition: opacity 0.3s ease;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(20, 35, 85, 0.05);
    transform: translateX(5px);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    transform: scale(1.2);
    transition: transform 0.2s ease;
    margin-right: 5px;
}

.checkbox-label input[type="checkbox"]:hover {
    transform: scale(1.3);
}

.checkbox-label input[type="checkbox"]:checked {
    accent-color: var(--primary-color);
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    padding: 1rem 2rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.radio-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(20, 35, 85, 0.1), transparent);
    transition: left 0.5s ease;
}

.radio-label:hover::before {
    left: 100%;
}

.radio-label:hover {
    border-color: #142355;
    background: rgba(20, 35, 85, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 35, 85, 0.15);
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 700;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(200, 40, 20, 0.1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(200, 40, 20, 0.2);
}

/* Slider */
.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #ddd 0%, #ddd 100%);
    outline: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.slider:hover {
    height: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #a32010);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(200, 40, 20, 0.3);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(200, 40, 20, 0.5);
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.3);
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #a32010);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(200, 40, 20, 0.3);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(200, 40, 20, 0.5);
}

.slider::-moz-range-thumb:active {
    transform: scale(1.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

#wartoscDisplay,
#rokDisplay {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Package Cards */
.packages-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.package-card {
    background: var(--white);
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(20, 35, 85, 0.2);
    border-color: var(--primary-color);
}

.package-card.featured {
    border-color: var(--primary-color);
    border-width: 3px;
}

.package-card.featured:hover {
    transform: translateY(-5px);
}

.package-card.selected {
    border-color: #228B52;
    border-width: 3px;
    background: linear-gradient(135deg, #fff 0%, #f0f8f4 100%);
    box-shadow: 0 10px 30px rgba(34, 139, 82, 0.3);
    transform: scale(1.05);
    animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(34, 139, 82, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(34, 139, 82, 0.5);
    }
}

.package-card.selected .package-select {
    background: #228B52;
}

.package-card.selected .package-select:hover {
    background: #1a6d3f;
}

.package-card.selected::before {
    content: "✓ WYBRANY";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #228B52;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
}

/* Ukryj badge POLECAMY gdy pakiet jest wybrany */
.package-card.selected .badge {
    display: none;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 10;
}

.package-card h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    min-height: 2rem;
    line-height: 1.3;
}

.package-price {
    margin: 0;
    min-height: 4rem;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.15rem;
    min-height: 1.2rem;
}

.package-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.package-price .price-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.package-price .price-prefix,
.package-price .price-suffix {
    font-size: 1rem;
    font-weight: 400;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
    flex-grow: 1;
}

.package-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.package-features li:before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

.package-select {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.package-select:hover {
    background: #142355;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Honeypot - ukryte pole anty-spam */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.back-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.back-button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.submit-button {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.submit-button:hover {
    background: #142355;
    transform: translateY(-2px);
}

/* Result Box */
.result-box {
    max-width: 800px;
    margin: 3rem auto 0;
    background: linear-gradient(135deg, var(--secondary-color), #0d1632);
    color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.5s ease-out;
}

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

.result-box h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.price-display {
    margin: 2rem 0;
}

.price {
    font-size: 4rem;
    font-weight: 700;
    display: block;
}

.price-breakdown {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    text-align: left;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.breakdown-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.result-info {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    opacity: 0.9;
}

/* SEO Content */
.seo-content {
    padding: 80px 20px;
    background: var(--white);
}

.seo-content h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--secondary-color);
}

.seo-text {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.seo-text-bottom {
    margin-bottom: 0;
}

.seo-column h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.seo-column p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.seo-column p:last-child {
    margin-bottom: 0;
}

.seo-column-full {
    grid-column: 1 / -1;
}

.seo-column-full h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.seo-column-full p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.seo-column-full p:last-child {
    margin-bottom: 0;
}

/* Contact */
.contact {
    padding: 80px 20px;
    background: var(--light-bg);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #a32010);
    border-radius: 50%;
    transition: transform 0.3s;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-item p {
    color: var(--text-color);
    line-height: 1.6;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #142355;
    text-decoration: underline;
}

.contact-link {
    text-align: center;
    margin-top: 3rem;
}

.contact-link .cta-button {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.contact-link .cta-button:hover {
    background: #142355;
    color: var(--white);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    /* Zmniejszone paddingi w kontenerze */
    .container {
        padding: 0 15px;
    }

    /* Footer responsywny */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--secondary-color);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

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

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a {
        display: block;
        padding: 1.5rem 2rem;
        color: var(--white);
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 1rem 3rem;
        font-size: 0.95rem;
        color: var(--white);
    }

    .dropdown-menu a::before {
        display: none;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
        padding-left: 3rem;
    }

    .dropdown-menu li {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .dropdown-toggle::after {
        float: right;
    }

    .hero-content {
        margin-top: -120px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .features h2,
    .calculator-section h2,
    .contact h2,
    .seo-content h2 {
        line-height: 2.5rem;
    }

    /* Formularz - pionowy układ i mniejsze paddingi */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .insurance-form {
        padding: 1.5rem 1rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    /* Mniejsze paddingi w polach formularza */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 13px;
        font-size: 0.95rem;
    }

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

    /* Sekcje - mniejsze paddingi */
    .calculator-section,
    .features,
    .contact,
    .seo-content {
        padding: 60px 15px;
    }

    .seo-text {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .seo-content h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 80px 15px 80px;
    }

    .price {
        font-size: 3rem;
    }

    .features h2,
    .calculator-section h2,
    .contact h2 {
        font-size: 2rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .packages-container {
        grid-template-columns: 1fr;
    }

    .package-card.featured {
        transform: scale(1);
    }

    .package-card.featured:hover {
        transform: scale(1.02) translateY(-5px);
    }

    #step2.insurance-form {
        max-width: 800px;
    }

    .insurance-cloud {
        gap: 0.5rem;
    }

    .insurance-tag {
        padding: 0.4rem 0.8rem;
    }

    .insurance-tag img {
        max-height: 20px;
        max-width: 80px;
    }
}

/* Legal/Regulamin Page Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 80px;
}

.legal-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-content ul, .legal-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-content li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.back-link:hover {
    color: #142355;
}

.section {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* Article Page Styles */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-top: 80px;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-color);
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
}

.article-header h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-lead {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 500;
}

.article-section {
    margin-bottom: 3rem;
}

.article-section h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.article-section h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-section p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.05rem;
}

.article-section ul,
.article-section ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-section li {
    line-height: 1.8;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.article-section strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.info-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #16a34a;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.info-box h3 {
    color: #16a34a;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.info-box ul {
    margin-bottom: 0;
}

.warning-box {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-left: 4px solid #ea580c;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.warning-box h3 {
    color: #ea580c;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.warning-box ul {
    margin-bottom: 0;
}

.cta-box {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe4d6 100%);
    border: 2px solid var(--primary-color);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    text-align: center;
}

.cta-box h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: #f9fafb;
}

.faq-item {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.faq-item p {
    margin-bottom: 0;
}

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

.benefit-item {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.benefit-item h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.benefit-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0d1632 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 4rem;
}

.cta-section h2 {
    color: var(--white);
    border: none;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button-large {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Contact Page Styles */
.contact-page {
    padding: 60px 20px 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-header h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-lead {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

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

.office-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-align: center;
}

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

.office-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
}

.office-details {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-details p {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 0.95rem;
    text-align: center;
}

.office-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.office-details a:hover {
    color: #142355;
    text-decoration: underline;
}

.office-details strong {
    color: var(--secondary-color);
}

.office-map {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.office-map iframe {
    display: block;
}

.route-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin: 0 auto;
}

.route-button:hover {
    background: #142355;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 35, 85, 0.3);
}

.route-button svg {
    width: 20px;
    height: 20px;
}

.contact-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.contact-cta h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-cta p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(200, 40, 20, 0.2);
}

.cta-button:hover {
    background: #142355;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(20, 35, 85, 0.3);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

.cta-button-secondary {
    background: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(20, 35, 85, 0.2);
}

.cta-button-secondary:hover {
    background: #0d1632;
    box-shadow: 0 6px 20px rgba(20, 35, 85, 0.3);
}

/* Dodatkowe optymalizacje dla bardzo małych ekranów */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .insurance-form,
    .contact-form {
        padding: 1rem 0.75rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px;
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .calculator-section,
    .features,
    .contact,
    .seo-content {
        padding: 40px 10px;
    }

    .seo-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .seo-column h3,
    .seo-column-full h3 {
        font-size: 1.1rem;
    }

    .hero {
        padding: 80px 10px 60px;
    }

    .hero-content {
        margin-top: -120px;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

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

    .features h2,
    .calculator-section h2,
    .contact h2,
    .seo-content h2 {
        line-height: 2.5rem;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    .legal-content {
        padding: 80px 15px 60px;
    }

    .article-content {
        padding: 40px 15px 60px;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-lead {
        font-size: 1rem;
    }

    .article-section h2 {
        font-size: 1.5rem;
    }

    .article-section h3 {
        font-size: 1.2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .contact-page {
        padding: 40px 15px 60px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-lead {
        font-size: 1rem;
    }

    .offices-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-cta {
        padding: 2rem 1.5rem;
    }

    .contact-cta h2 {
        font-size: 1.5rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        justify-content: center;
    }

    .package-card {
        padding: 1.5rem 1rem;
    }

    .submit-button,
    .cta-button,
    .package-select {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* ==========================================
   MODAL SUKCESU - Po wysłaniu formularza
   ========================================== */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-overlay.active .success-modal {
    transform: scale(1) translateY(0);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.success-modal h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-modal p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-close-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-close-btn:hover {
    background: #a82010;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .success-modal {
        padding: 2rem 1.5rem;
    }

    .success-modal h2 {
        font-size: 1.3rem;
    }

    .success-modal p {
        font-size: 1rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon svg {
        width: 30px;
        height: 30px;
    }
}
