/* NOWE TWORZONE KLASY DLA STRONY KONTAKTOWEJ */

/* Szare tło dla strony kontaktowej */
.contact-page {
    background: #6f6f6f !important; /* Pozostaje szare tło body */
}

/* HEADER Z GRADIENTEM JAK NA STRONIE GŁÓWNEJ */
.contact-header {
    background: linear-gradient(170deg, #000000, #6F6F6F) !important; /* Dokładnie taki sam gradient jak na stronie głównej */
    backdrop-filter: none; /* Usuwamy blur bo mamy gradient */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0; /* Twoja zmiana - mniejszy padding */
}

.contact-navigation {
    display: flex;
    justify-content: space-between; /* Logo po lewej, menu po prawej */
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* LOGO PO LEWEJ STRONIE */
.logo-container {
    flex: 0 0 auto; /* Nie rośnie ani się kurczy */
}

.logo-link {
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05); /* Lekkie skalowanie logo na hover */
}

.header-logo {
    height: 50px; /* Wysokość logo - dostosuj według potrzeb */
    width: auto; /* Automatyczna szerokość zachowując proporcje */
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* MENU PO PRAWEJ - dostosowane do nowego layoutu */
.contact-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0; /* Reset marginesu */
}

/* Zachowujemy wszystkie efekty hover z głównej strony */
.contact-navigation .nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: inline-block;
}

.contact-navigation .nav-menu li a:hover {
    color: #ffa113;
    transform: scale(1.1);
}

.contact-navigation .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffa113;
    transition: width 0.3s ease;
}

.contact-navigation .nav-menu li a:hover::after {
    width: 100%;
}

/* AKTYWNY LINK MENU */
.nav-menu li a.active {
    color: #ffa113;
}

/* HAMBURGER MENU - ukryte na desktop */
.contact-navigation .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.contact-navigation .hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

/* KONTENER NA OBRAZEK POD HEADEREM - Twoje zmiany */
.hero-image-section {
    width: 100%;
    margin-top: 80px; /* Twoja zmiana - mniejszy odstęp od headera */
    position: relative;
    z-index: 100;
}

.hero-image-container {
    width: 100%;
    height: auto; /* Twoja zmiana - automatyczna wysokość */
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto; /* Twoja zmiana - automatyczna wysokość */
    object-fit: cover; /* Pokrywa kontener zachowując proporcje */
    object-position: center; /* Centruje obraz */
    border-radius: 0; /* Bez zaokrąglonych rogów */
}

/* GŁÓWNY KONTENER KONTAKTOWY - dostosowany */
.contact-container {
    min-height: calc(100vh - 420px);
    padding: 4rem 2rem 2rem 2rem; /* Zmniejszony bottom padding */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 0; /* Usuń margin bottom */
}

.contact-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* LEWA STRONA - 30% - Dane firmy */
.company-info {
    flex: 0 0 30%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 5px solid rgba(0, 0, 0, 0.5);
}

.company-info h2 {
    color: #ffa113;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #ffa113;
    padding-bottom: 0.3rem;
}

.info-section p {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* PRAWA STRONA - 70% - Formularz */
.contact-form-section {
    flex: 0 0 70%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 5px solid rgba(0, 0, 0, 0.5);
}

.contact-form-section h2 {
    color: #ffa113;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* FORMULARZ */
.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffa113;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* PRZYCISK WYŚLIJ */
.submit-btn {
    background: linear-gradient(45deg, #ffa113, #ff8c00);
    border: none;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 161, 19, 0.3);
}

/* KOMUNIKATY O BŁĘDACH I SUKCESIE */
.error-messages,
.success-message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
}

.error-messages {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
}

.success-message {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.error {
    color: #ff6b6b;
    margin: 0;
    font-size: 0.9rem;
}

.success {
    color: #51cf66;
    margin: 0;
    font-size: 0.95rem;
}

/* POPRAWKA FOOTERA - żeby nie zachodził na formularz */
.contact-page .footer {
    position: relative !important; /* Zmiana z fixed na relative */
    margin-top: 4rem; /* Dodatkowy odstęp od treści */
    background: rgba(0, 0, 0, 0.1) !important; /* Lekkie tło żeby footer był widoczny */
    backdrop-filter: blur(5px);
}

/* FOOTER Z TEKSTEM NA ŚRODKU - poprawiony */
.contact-page .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 95%;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.contact-page .footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.contact-page .footer-text {
    color: white;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.8;
}

/* RESPONSYWNOŚĆ */
@media screen and (max-width: 1024px) {
    .hero-image-container {
        height: 250px;
    }
    
    .hero-image-section {
        margin-top: 100px;
    }
    
    .contact-content {
        gap: 2rem;
    }
    
    .company-info,
    .contact-form-section {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    /* Header responsive - logo i hamburger z gradientem */
    .contact-navigation {
        justify-content: space-between;
    }
    
    .contact-navigation .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(170deg, #000000, #6F6F6F);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        backdrop-filter: blur(10px);
    }

    .contact-navigation .nav-menu.active {
        right: 0;
    }

    .contact-navigation .nav-menu li {
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .contact-navigation .hamburger {
        display: flex;
    }
    
    .contact-navigation .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .contact-navigation .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .contact-navigation .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero image mniejszy na mobile */
    .hero-image-container {
        height: 200px;
    }
    
    .hero-image-section {
        margin-top: 75px;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .contact-container {
        padding: 3rem 1rem 2rem 1rem;
    }
    
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .company-info,
    .contact-form-section {
        flex: none;
        width: 100%;
    }
    
    .contact-page .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .contact-page .footer-center {
        position: static;
        transform: none;
    }
    
    .social-media {
        order: -1;
    }
}

@media screen and (max-width: 480px) {
    .hero-image-container {
        height: 150px;
    }
    
    .hero-image-section {
        margin-top: 70px;
    }
    
    .header-logo {
        height: 35px;
    }
    
    .company-info h2,
    .contact-form-section h2 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
/* RESPONSYWNE HERO IMAGES - różne dla mobile i desktop */

/* Domyślny obrazek desktop */
.hero-bg {
    background-image: url('https://serwer381339.lh.pl/img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 150px; /* Ustaw stałą wysokość */
    width: 100%;
}

/* Obrazek dla tabletów */
@media screen and (max-width: 1024px) {
    .hero-bg {
        background-image: url('https://serwer381339.lh.pl/img/hero-small.jpg');
        height: 250px;
    }
}

/* Obrazek dla mobile */
@media screen and (max-width: 768px) {
    .hero-bg {
        background-image: url('https://serwer381339.lh.pl/img/hero-small.jpg');
        height: 200px;
    }
}

/* Bardzo małe ekrany */
@media screen and (max-width: 480px) {
    .hero-bg {
        background-image: url('https://serwer381339.lh.pl/img/hero-small.jpg');
        height: 150px;
    }
}
