/* --- Kontakt Styles --- */

/* Ogólne style dla sekcji kontaktowej */
.contact-section {
    padding: 4em 0;
}

/* Układ siatki dla informacji kontaktowych i formularza */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Domyślnie jedna kolumna dla małych ekranów (mobilnych) */
    gap: 3em;
    margin-bottom: 3em;
    align-items: start; /* Wyrównanie elementów na górze */
}

/* Wyśrodkowanie elementów w gridzie na mniejszych ekranach */
@media screen and (max-width: 980px) { /* Tablet i niżej */
    .contact-grid {
        justify-items: center; /* Wyśrodkowuje elementy w siatce poziomo */
    }
    .contact-info, .contact-form {
        width: 90%; /* Ogranicza szerokość, żeby nie rozciągały się na całą szerokość */
        max-width: 500px; /* Maksymalna szerokość dla czytelności */
    }
}

@media screen and (min-width: 981px) { /* Pulpit i większe */
    .contact-grid {
        grid-template-columns: 1fr 1.5fr; /* Dwie kolumny na większych ekranach */
        justify-items: unset; /* Resetuje wyśrodkowanie dla desktopu */
    }
}

/* Style dla bloku z informacjami kontaktowymi */
.contact-info {
    text-align: left;
    background-color: rgba(0, 0, 0, 0.05); /* Lekkie tło dla wyróżnienia */
    padding: 2.5em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Delikatny cień */
}

.contact-info h3 {
    margin-bottom: 1.5em;
    font-size: 1.5em;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5em;
    text-align: center; /* Wyśrodkowanie nagłówka w bloku info */
}

.contact-info p {
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    color: #c8ece9;
    /* Domyślnie wyrównaj do lewej */
    justify-content: flex-start; 
}

/* Wyśrodkowanie tekstu wewnątrz paragrafów contact-info na urządzeniach mobilnych */
@media screen and (max-width: 736px) { /* Telefony i bardzo małe tablety */
    .contact-info p {
        justify-content: center; /* Wyśrodkowanie treści w paragrafach dla mobilnych */
        text-align: center; /* Dodatkowe wyśrodkowanie tekstu, jeśli się złamie */
        flex-direction: column; /* Ułóż ikonę nad tekstem na małych ekranach */
    }

    .contact-info p .icon {
        margin-right: 0; /* Usuń margines z prawej strony ikony */
        margin-bottom: 0.5em; /* Dodaj margines pod ikoną */
    }

    .social-icons {
        justify-content: center; /* Wyśrodkowanie ikon społecznościowych na mobilnych */
    }
}


.contact-info p strong {
    color: #ffffff;
    font-weight: 600;
    margin-right: 0.5em;
}

.contact-info p a {
    color: #00ffcc; /* Jasniejszy kolor dla linków */
    text-decoration: none;
    border-bottom: dotted 1px #00ffcc;
}

.contact-info p a:hover {
    border-bottom-color: transparent;
    color: #00e6b8;
}

.contact-info .icon {
    font-size: 1.2em;
    margin-right: 0.8em;
    color: #21b2a6; /* Kolor ikon */
}

/* Style dla formularza kontaktowego */
.contact-form {
    text-align: left;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2.5em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    margin-bottom: 1.5em;
    font-size: 1.5em;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5em;
    text-align: center; /* Wyśrodkowanie nagłówka w bloku formularza */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.8em 1em;
    border-radius: 5px;
    margin-bottom: 1em;
    transition: background-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px #00ffcc;
}

.contact-form ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: rgba(255, 255, 255, 0.7) !important;
}
.contact-form :-moz-placeholder { /* Firefox 18- */
    color: rgba(255, 255, 255, 0.7) !important;
}
.contact-form ::-moz-placeholder { /* Firefox 19+ */
    color: rgba(255, 255, 255, 0.7) !important;
}
.contact-form :-ms-input-placeholder { /* IE 10+ */
    color: rgba(255, 255, 255, 0.7) !important;
}

.contact-form .actions {
    margin-top: 1.5em;
    justify-content: center; /* Wyśrodkowanie przycisku formularza */
}

.contact-form .button.primary {
    background-color: #00ffcc; /* Przycisk wiodący */
    color: #2e3842 !important;
    border: none;
    padding: 1em 2.5em;
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form .button.primary:hover {
    background-color: #00e6b8;
    color: #fff !important;
}

/* Style dla mapy */
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #2e3842; /* Kolor tła, jeśli mapa się nie załaduje */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

/* Ikony społecznościowe */
.social-icons {
    margin-top: 2em;
    display: flex;
    justify-content: flex-start; /* Domyślnie wyrównanie do lewej */
}

.social-icons li {
    padding: 0 0.8em 0 0;
}

.social-icons li:last-child {
    padding-right: 0;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5em;
    transition: color 0.2s ease;
}

.social-icons a:hover {
    color: #00ffcc;
}

/* Poprawka dla nagłówka sekcji głównej, aby był spójny z resztą strony */
#main > header {
    padding: 8em 0 6em 0; /* Zmniejsz padding, aby lepiej pasował do strony */
    background-image: -moz-linear-gradient(top, rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../images/contact-banner.jpg"); /* Nowy obraz dla banera kontaktowego */
    background-image: -webkit-linear-gradient(top, rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../images/contact-banner.jpg");
    background-image: -ms-linear-gradient(top, rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../images/contact-banner.jpg");
    background-image: linear-gradient(top, rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../images/contact-banner.jpg");
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    color: #fff;
}

#main > header h2 {
    font-size: 2.5em; /* Większa czcionka dla głównego nagłówka */
    margin-bottom: 0.5em;
}

#main > header p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
}

@media screen and (max-width: 736px) {
    #main > header {
        padding: 6em 2em 4em 2em;
    }
    #main > header h2 {
        font-size: 1.8em;
    }
    .contact-info, .contact-form {
        padding: 1.5em;
    }
}