/* =========================================
   CONTACT SECTION STYLES
   ========================================= */

/* Kontener formularza (lewa kolumna) */
.contact-form-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-bg-light); /* Jasne tło */
    padding: 10%; /* Spójne z about-content */
}

/* Formularz */
.contact-form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Pola formularza */
.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--color-dark);
    transition: all 0.3s ease;
    border-radius: 0; /* Kwadratowe pola zgodnie z życzeniem */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-purple);
    box-shadow: 0 0 0 2px rgba(91, 38, 106, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Przycisk wysyłania */
.btn-submit {
    background-color: var(--color-purple);
    color: white;
    border: none;
    padding: 15px 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius); /* Globalne zaokrąglenie 8px */
    align-self: flex-start; /* Przycisk do lewej */
    margin-top: 1rem;
    display: inline-block;
    text-align: center;
}

.btn-submit:hover {
    background-color: var(--color-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsywność */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem;
    }
    
    .btn-submit {
        width: 100%; /* Pełna szerokość na mobilu */
    }
}

/* Sekcja z danymi kontaktowymi (prawa kolumna) */
.contact-details {
    margin-top: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-dark);
}

.contact-details p {
    margin-bottom: 1.2rem;
}

.contact-details strong {
    color: var(--color-purple);
}

/* =========================================
   FORMULARZ - KOMUNIKATY ZWROTNE
   ========================================= */
.contact-feedback {
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

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

.contact-feedback--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-feedback--success strong {
    color: #155724;
}

.contact-feedback--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-feedback--error strong {
    color: #721c24;
}

.contact-feedback--error ul {
    margin: 0.5rem 0 0 1rem;
    list-style-position: inside;
}

.contact-feedback--error li {
    margin: 0.25rem 0;
}

/* Responsywność - Feedback Messages */
@media (max-width: 768px) {
    .contact-feedback {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .contact-feedback--error ul {
        margin-left: 1rem;
    }
}

/* =========================================
   MAP SECTION STYLES
   ========================================= */
.map-section {
    width: 100%;
    height: 450px; /* Wysokość mapy */
    overflow: hidden;
    position: relative; /* Dla pozycjonowania przycisku */
    background-color: #f0f0f0;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
    /* Filtr: tylko grayscale, bez podbijania kontrastu, aby drogi były widoczne */
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.map-section:hover iframe {
    /* Po najechaniu przywracamy kolory */
    filter: grayscale(0%) contrast(100%); 
}

/* Przycisk "Wyznacz trasę" */
.btn-directions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-purple);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius); /* Globalne zaokrąglenie 8px */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-directions svg {
    width: 20px;
    height: 20px;
}

.btn-directions:hover {
    background-color: var(--color-green);
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .map-section {
        height: 350px;
    }
}
