:root {
    --primary-color: #b797ff; /* Główny fiolet */
    --secondary-color: #b797ff; /* Jaśniejszy fiolet */
    --accent-color: #b797ff; /* Akcent */
    --text-color-dark: #333333; /* Ciemny tekst */
    --text-color-light: #FFFFFF; /* Jasny tekst na ciemnym tle */
    --background-color: #FFFFFF; /* Białe tło */
    --section-bg-alt: #F8F4FF; /* Bardzo jasny fiolet pod sekcje */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TYPOGRAFIA --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 300;
}

h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; color: var(--secondary-color); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; font-size: 1rem; color: #555; }

/* --- PRZYCISKI --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light) !important;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #FFFFFF;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}


/* --- NAWIGACJA --- */
.navbar {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.5rem 0; /* Mniejszy padding góra/dół */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 40px; /* Nieco mniejszy padding boczny */
    gap: 20px; /* Odstęp między sekcjami */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    flex-shrink: 0; /* Logo niech się nie ściska */
}

.nav-links {
    display: flex;
    justify-content: space-around; /* Równomiernie rozłożone */
    align-items: center;
    flex-grow: 1; /* Rozciągnij na dostępną przestrzeń */
    margin: 0 2rem; /* Margines od loga i od przycisku */
    list-style: none; /* Upewnij się, że brak kropek */
}

/* Wrapper dla przycisku, żeby nie zniekształcał się */
.nav-btn {
    flex-shrink: 0;
}

/* Stylizacja przycisku w nawigacji */
.nav-btn .btn {
    padding: 14px 32px; 
    font-size: 1rem; 
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
}

.nav-links li a {
    font-weight: 700;
    color: var(--text-color-dark);
    text-transform: uppercase;
    font-size: 1.1rem; /* Zwiększono rozmiar czcionki */
    letter-spacing: 0.5px;
}

.nav-links li a:hover {
    color: var(--primary-color);
}


/* --- GLOBALNE TŁO --- */
body {
    background-color: #b797ff;
    /* Wzór 3D Wireframe (Sześciany) za pomocą SVG */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='174' viewBox='0 0 100 174'%3E%3Cpath d='M50 0 L100 29 L100 87 L50 116 L0 87 L0 29 Z' fill='none' stroke='white' stroke-width='2' stroke-opacity='0.2'/%3E%3Cpath d='M50 0 L50 58 L100 87 M50 58 L0 87 M50 116 L50 174' fill='none' stroke='white' stroke-width='2' stroke-opacity='0.2'/%3E%3C/svg%3E");
    background-size: 100px 174px; /* Skala brył */
    background-attachment: fixed;
    background-position: top center;
    background-repeat: repeat;
    color: var(--text-color-dark);
}

/* Zwiększ z-index głównej zawartości */
.navbar, .hero, .section, .footer, .modal {
    position: relative;
    z-index: 2;
}

/* --- HERO --- */
.hero {
    background-color: transparent; /* Przezroczyste, żeby widać było tło body */
    padding: 80px 0;
    display: flex;
    align-items: center;
    text-align: left;
    min-height: 80vh;
}

.hero .hero-content {
    display: flex;
    align-items: stretch; /* Zmieniono z center na stretch, aby kolumny miały równą wysokość */
    justify-content: space-between;
    gap: 2rem; /* Reduced gap to give more room for text */
    flex-wrap: wrap; 
}

.hero-text {
    flex: 1.6; /* Increased flex to widen the text box */
    min-width: 300px;
    padding: 2.5rem; /* Reduced padding slightly */
    /* Styl karty - białe tło na fioletowym wzorze */
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    
    /* Wymuś kwadrat i wyśrodkowanie */
    width: 100%;
    /* max-width: 600px; */ /* Removed to allow natural expansion */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-text h1 {
    font-size: 1.7rem; /* Adjusted size to fit in 3 lines */
    line-height: 1.25;
    color: #b797ff; 
    margin-bottom: 1.2rem;
    font-weight: 900; /* Pogrubiono */
    text-transform: uppercase;
    letter-spacing: -0.5px;
    max-width: 100%; 
    margin-top: 0; 
}

.hero-text .subtitle {
    font-size: 1.4rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #444;
}

.hero-text .subtitle strong {
    font-size: 1.6rem;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.hero-text .link-arrow a {
    color: #0066CC; /* Niebieski link jak na screnie, lub fioletowy: var(--primary-color) */
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hero-text .link-arrow a:hover {
    text-decoration: underline;
}

.hero-text .description {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    color: #555;
    max-width: 90%;
}

.hero-text .hero-btn {
    /* Use same styles as .btn-primary */
    background-color: var(--primary-color);
    color: var(--text-color-light) !important;
    border-radius: 30px; 
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    letter-spacing: normal;
    font-size: 1rem;
    font-weight: 600;
}

.hero-text .hero-btn:hover {
    background-color: #FFFFFF;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: relative;
    /* Allow expanding to fill height if needed */
    align-self: stretch; 
}

/* Kółko a'la screenshot -> Zmienione na Rectangle Card */
.circle-image-wrapper {
    width: 100%; /* Fill available width */
    max-width: 600px; /* Większe zdjęcie */
    height: 100%; /* Zmieniono: wypełnij wysokość kolumny */
    /* Match style of .hero-text: */
    background-color: #ffffff;
    border-radius: 10px; /* Same as hero-text */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none; /* Removed white border */
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); /* Match hero-text shadow */
    padding: 10px; /* Optional inner padding for frame effect */
}

/* Remove border-radius:50% from image */
.img-circle {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zmieniono z cover na contain, aby całe zdjęcie było widoczne */
    object-position: center; /* Aby zdjęcie było wyśrodkowane */
    border-radius: 8px; /* Slightly less than container */
    position: relative;
    z-index: 20;
    display: block; 
}

/* Ukryj broken image icon jeśli brak src, żeby pokazać napis placeholder */
.img-circle[src=""] {
    display: none;
}
.img-circle[src="#"] {
    display: none;
}

.hero-image img {
    /* Reset stylów z poprzedniej wersji */
    box-shadow: none; 
}

/* --- O MNIE --- */
.section {
    padding: 6rem 0;
}

.about-section {
    background-color: transparent; /* Zmienione na przezroczyste, aby widac bylo tlo body */
}

.about-section .container {
    padding: 0 20px;
}

/* Karta z tekstem O MNIE */
.about-section .column-text {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    /* Wymuś rozciągnięcie do wysokości sąsiedniej kolumny */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Wyrównaj tekst do góry */
    /* height: 100%;  Removed to allow natural flex stretch and avoid circular dependency */
}

/* Zdjęcie w O MNIE - dopasowanie do stylu */
.about-section .rect-image-wrapper {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05); 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* height: 100%; Removed to allow content to define height */
}

.about-section .rect-image-wrapper img {
    /* height: 100%; Removed to allow image to define height */
    width: 100%;
    object-fit: contain; /* Wypełnij dostępną przestrzeń */
    border-radius: 6px;
}

.grid-2-columns {
    display: flex;
    gap: 4rem;
    align-items: stretch; /* Rozciągnij do równej wysokości */
}

@media (max-width: 900px) {
    .grid-2-columns {
        flex-direction: column;
    }
}

.column-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.rect-image-wrapper {
    flex: 1; /* Wypełnij całą wysokość kolumny */
    width: 100%;
}

.column-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.column-text h4 {
    color: #999;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.column-text h2 {
    text-align: left;
    color: #b797ff; /* Zmiana z #333 na #b797ff */
    font-size: 2.5rem;
    font-weight: 700; /* Pogrubione */
    text-transform: none; /* Nie wielkimi literami */
}

.rect-image-wrapper img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- OFERTA (ETAPY) --- */
.hero-cta-section {
    background-color: #ffffff; /* Białe tło */
}

.offer-section {
    background-color: #ffffff;
    /* Wzór 3D Wireframe (Sześciany) - FIOLETOWE LINIE */
    /* Kolor linii: #b797ff (taki sam jak tło strony i nagłówki) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='174' viewBox='0 0 100 174'%3E%3Cpath d='M50 0 L100 29 L100 87 L50 116 L0 87 L0 29 Z' fill='none' stroke='%23b797ff' stroke-width='2' stroke-opacity='1'/%3E%3Cpath d='M50 0 L50 58 L100 87 M50 58 L0 87 M50 116 L50 174' fill='none' stroke='%23b797ff' stroke-width='2' stroke-opacity='1'/%3E%3C/svg%3E");
    background-size: 100px 174px;
    background-attachment: fixed;
    background-position: top center;
    background-repeat: repeat;
}

.section-header {
    text-align: center;
    max-width: 100%; /* Rozciągnięcie na pełną szerokość kontenera */
    margin: 0 auto 3rem auto;
    
    /* Styl białego prostokąta */
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Cień analogiczny do kart pod spodem */
    /* border-top: 5px solid var(--primary-color); Usunięty pasek na górze */
}

.section-header h2 {
    font-weight: 700;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Delikatny cień */
    position: relative;
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s;
    text-align: center; /* Wyśrodkowanie tekstu */
}

/* Usunięcie bordera z ostatniego elementu i na mobilkach - niepotrzebne przy osobnych kartach */
/* .step-card:last-child {
    border-right: none;
} */

/* @media (max-width: 900px) { ... }  - niepotrzebne przy osobnych kartach */

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%; /* Wyśrodkowanie */
    transform: translateX(-50%); /* Przesunięcie o połowę szerokości w lewo */
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    border-radius: 50%; /* Kółko */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.step-card h3 {
    margin-top: 1rem;
    font-size: 1.3rem;
    color: #333;
    font-weight: 700;
}

.step-card ul {
    list-style: none; /* Usuń domyślne kropki */
    padding: 0;
    margin: 0.5rem auto; 
    display: inline-block; 
    text-align: left; 
    color: #555;
    font-size: 0.95rem; 
}

.step-card ul li {
    position: relative;
    padding-left: 1.5rem; /* Miejsce na kropkę */
    margin-bottom: 0.5rem;
}

.step-card ul li::before {
    content: '\2714'; /* Ptaszek (Heavy Check Mark) */
    position: absolute;
    left: 0;
    top: 1px; /* Korekta w pionie */
    color: var(--primary-color); /* Fioletowy kolor */
    font-size: 1rem;
    /* Reset stylów kropki */
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
}


/* --- CTA 2 --- */
.cta-section {
    background-color: transparent; /* Pokaż fiolet */
    text-align: center;
    padding: 6rem 0;
}

.cta-section h2, .cta-section p, .cta-section .large-text {
    color: #fff; /* Biały tekst na fioletowym tle */
}

/* Powiększ nagłówek w sekcji CTA */
.cta-section h2 {
    font-size: 2.5rem; 
    margin-bottom: 2rem;
    font-weight: 700;
}

.cta-section .btn {
    border: 2px solid #ffffff;
}

/* Karta z listą kontrolną w sekcji CTA */
.cta-list {
    max-width: 900px;
    margin: 3rem auto;
    text-align: left;
    background: #fff;
    padding: 3rem; /* Zwiększyłem też padding dla lepszej estetyki */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    /* Ustawienie koloru tekstu wewnątrz karty na czarny */
    color: #000;
}

.cta-list p, .cta-list li {
    color: #000 !important; /* Wymuś czarny kolor, nadpisując dziedziczenie z .cta-section p */
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-list .large-text {
    color: var(--primary-color) !important; /* Fioletowy kolor dla zdania "Jeśli prowadzisz firmę..." */
    font-weight: 700 !important;
}

.cta-list ul {
    list-style: none; /* Usuń domyślne kropki */
    padding: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.cta-list ul li {
    position: relative;
    padding-left: 2rem; /* Odstęp od kropki */
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.cta-list ul li::before {
    content: '\2714'; /* Ptaszek (Heavy Check Mark) */
    position: absolute;
    left: 0;
    top: 1px; /* Korekta w pionie */
    color: var(--primary-color); /* Fioletowy kolor */
    font-size: 1.2rem;
    font-weight: bold;
    /* Reset stylów kropki */
    width: auto;
    height: auto;
    background-color: transparent;
    border-radius: 0;
}

/* Przywróć styl przycisku wewnątrz białej karty */
.cta-list .btn-primary {
    background-color: var(--primary-color);
    color: #fff !important;
    border: 2px solid var(--primary-color);
}

/* --- KONTAKT (FORMULARZ) --- */
.contact-section-form {
    padding: 6rem 0;
    /* Sprawiamy, żeby formularz też pływał na fioletowym tle */
    background-color: transparent;
}

.contact-section-form .container {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px; /* Prostokątne inputy */
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

/* Styl dla grupy telefonu (select + input) */
.phone-input-group {
    display: flex;
    gap: 10px;
    align-items: center; /* Zmieniono ze stretch na center dla lepszego wyrównania */
    flex-wrap: nowrap; /* Zapobiega zawijaniu do nowej linii */
}

.country-select {
    width: 140px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
}

.country-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

.phone-input-group input {
    flex: 1; /* Input zajmuje całe dostępne miejsce obok selecta */
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    margin-top: 1rem;
    font-size: 1.1rem;
    /* Force consistent styling for <button> vs <a> */
    border-radius: 30px; 
    font-family: inherit;
    line-height: inherit;
    border: 2px solid var(--primary-color);
}

/* --- CHECKBOX --- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 2rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
}

/* --- OPINIE --- */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--section-bg-alt);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    font-style: italic;
}

.testimonial-card::before {
    content: "“";
    font-size: 4rem;
    color: var(--accent-color); /* E0B0FF */
    position: absolute;
    top: -10px;
    left: 20px;
    opacity: 0.5;
}

.testimonial-card .quote {
    margin-bottom: 1.5rem;
    z-index: 1;
    position: relative;
    color: #444;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

/* --- KONTAKT --- */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color-light);
    text-align: center;
}

.contact-section h2, .contact-section p, .contact-section a, .contact-section ul li {
    color: var(--text-color-light);
}

.contact-section a:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info ul {
    margin-top: 1.5rem;
}

.contact-info li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-form-placeholder {
    margin-top: 2rem;
}

.contact-form-placeholder .btn {
    border-color: var(--text-color-light);
    color: var(--text-color-light);
}

.contact-form-placeholder .btn:hover {
    background-color: var(--text-color-light);
    color: var(--primary-color);
}

/* --- STOPKA --- */
.footer {
    background-color: #ffffff; /* Zmieniono z czarnego na białe */
    color: #333333; /* Zmieniono kolor tekstu na ciemny dla kontrastu */
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0,0,0,0.05); /* Delikatna linia oddzielająca */
}

.footer p {
    color: #333333;
    margin: 0;
    padding: 5px 0;
}

.footer a {
    color: var(--primary-color); /* Fioletowy kolor dla linku (Polityka Prywatności) */
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 600;
}

.footer a:hover {
    color: var(--primary-color);
    opacity: 1;
}


/* --- RESPASYWNOŚĆ --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; } /* Trochę większe na mobile niż wcześniej */
    h2 { font-size: 2rem; }   /* Trochę większe na mobile */
    
    .hero .hero-content {
        flex-direction: column;
        text-align: center;
    }

    /* Dopasowanie dużego przycisku na telefonie - przeniesione na koniec pliku */
    /* .cta-btn-large { ... } */

    .nav-links {
        display: none; /* Uproszczenie dla mobile */
        /* W pełnej wersji tutaj byłby hamburger menu */
    }

    .navbar .container {
        justify-content: center;
    }
    
    .hero-text {
        padding: 2rem; /* Nieco mniejszy padding kontenera tekstu */
        width: 100%;
        max-width: 100%;
    }
}

/* Modal Styles */
/* Use flexbox to center the modal content */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    
    /* Center Content Flexbox Props */
    /* These apply when display becomes 'flex' via JS */
    align-items: center; 
    justify-content: center;
}

.modal.show {
    /* When active, show modal */
    display: flex;
    opacity: 1;
}

/* Modal Content Box */
.modal-content {
    background-color: #fefefe;
    padding: 20px; /* Zmniejszono padding */
    border: 1px solid #888;
    width: 90%; 
    max-width: 500px; /* Lekko zwiększono szerokość, żeby tekst się nie łamał i był niższy */
    max-height: 95vh; /* Max height relative to viewport */
    overflow-y: auto; /* Scroll ONLY inside modal content if needed */
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* The Close Button */
.close-button {
    color: #999;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Adjust form styling within modal */
/* Reset section styles inside modal */
.modal .contact-section-form {
    padding: 0;
    background: transparent;
    box-shadow: none;
    margin: 0;
}

/* Hide default section padding/margin when in modal */
.modal .container-narrow {
    width: 100%;
    padding: 0;
    max-width: 100%;
}

.modal h2 {
    margin-top: 0;
    font-size: 1.5rem; /* Mniejsza czcionka nagłówka */
    color: var(--primary-color);
    margin-bottom: 0.3rem; /* Mniejszy odstęp */
    font-weight: 700;
}

.modal .form-header p {
    font-size: 0.85rem; /* Mniejszy opis */
    margin-bottom: 0.8rem;
    padding: 0;
    line-height: 1.4;
}

/* Remove "rectangle in rectangle" by resetting container styles in modal */
.modal .contact-section-form .container {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

/* Ensure form fits well - bardziej kompaktowy */
.modal .form-group {
    margin-bottom: 0.8rem;
}

.modal .form-group label {
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
}

.modal .form-group input {
    padding: 8px 12px; /* Mniejsze inputy */
}

/* Mniejszy checkbox */
.modal .checkbox-group {
    margin-bottom: 1rem;
    gap: 8px;
}

.modal .checkbox-group label {
    font-size: 0.75rem; 
    line-height: 1.2;
}

/* Adjust button inside modal */
.modal .btn-block {
    margin-top: 0.5rem;
    padding: 10px 20px; /* Mniejszy guzik */
    font-size: 1rem;
}

/* Red Asterisk for Required Fields */
.form-group label::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.checkbox-group label::after {
    /* Also for the consent checkbox label */
    content: " *";
    color: red;
    font-weight: bold;
}

/* --- SCROLL ANIMATIONS --- */
.reveal {
    position: relative;
    transform: translateY(15vh);
    opacity: 0;
    transition: all 1.2s ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.reveal-delay-1 { transition-delay: 0.2s; }
.reveal-delay-2 { transition-delay: 0.4s; }
.reveal-delay-3 { transition-delay: 0.6s; }

/* Hero Animations (On Load) */
.hero-text {
    animation: fadeInUp 1s ease-out;
}
.hero-image {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}


.step-icon {
    width: 60px;
    height: auto;
    display: block;
    margin: 1.5rem auto 1rem auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(183,151,255, 0.3));
}

/* --- ZŁOTE BĄBELKI TŁO --- */
.hero-text,
.circle-image-wrapper,
.about-section .column-text,
.about-section .rect-image-wrapper,
.step-card,
.cta-list,
.contact-section-form .container {
    /* Usunięto tło z "bąbelkami" */
}

body {
    position: relative;
    overflow-x: hidden;
}

/* Ensure content is above icons */
section, footer {
    position: relative;
    z-index: 2;
}

/* --- SUCCESS MESSAGE MODAL --- */
.modal-success .checkmark-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #b797ff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #b797ff;
    /* Animation for the circle drawing */
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #b797ff;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.success-list {
    text-align: left;
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.success-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: #333;
    line-height: 1.4;
}

.success-list li::before {
    content: '\2714';
    position: absolute;
    left: 0;
    top: 0;
    color: #b797ff;
    font-weight: bold;
    font-size: 1.1rem;
}

.modal-success h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}


.loading-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #b797ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}


/* --- SPECJALNY DUŻY PRZYCISK CTA --- */
.cta-btn-large {
    font-size: 1.3rem;
    padding: 1.2rem 8rem; /* Znacznie szerszy przycisk */
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(183, 151, 255, 0.4);
    transition: all 0.3s ease;
    border-width: 3px;
    margin-top: 1.5rem;
    display: inline-block;
}

.cta-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(183, 151, 255, 0.6);
}

/* --- MOBILE FIXES FOR LARGE BUTTON --- */
@media (max-width: 768px) {
    .cta-btn-large {
        display: block !important;
        width: 80% !important;
        max-width: 350px !important;
        margin: 1.5rem auto 0 auto !important;
        padding: 1.2rem 1rem !important;
        font-size: 1.1rem !important;
        border-width: 2px !important;
        text-align: center !important;
    }
}

