/* ============================================================
 * Strona /kontakt.
 *
 * Arkusz celowo NIE tworzy własnego języka wizualnego — powtarza ten z index.css:
 * ciemne hero ze zdjęciem i overlayem, białe karty (radius 15px, cień 0 10px 30px),
 * nagłówki w bordo #8B0000, pola 2px/8px/16px i przycisk .btn z gradientem.
 *
 * Wcześniej strona miała odrębny styl „papierowej masarni" (szeryfy Georgia,
 * tło #FBF7F1, zaokrąglenia 3–4 px, płaski przycisk w wersalikach) i przez to
 * odstawała od strony głównej, ankiety i sklepu — najmocniej w samym formularzu,
 * gdzie wersalikowe etykiety stały obok bloku RODO pisanego normalną antykwą.
 *
 * Wartości nie są tu wymyślane od nowa — pochodzą z index.css (hero, .btn, karty
 * sekcji) i z checkoutu w shop.css (.form-control). Zmiana któregoś z tych wzorców
 * powinna trafić i tutaj.
 * ============================================================ */

.contact-page {
    --wed-bordo: #8B0000;
    --wed-crimson: #DC143C;
    --wed-edge: #dee2e6;
}

/* --- Nagłówek strony ------------------------------------------------ */
/* Kopia .hero z index.css, tylko z innym zdjęciem. */

.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(139, 0, 0, 0.3), rgba(220, 20, 60, 0.3));
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Siatka: formularz + panel danych ------------------------------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2rem;
    align-items: start;
    margin: 2rem auto 3rem;
}

/* --- Karta ----------------------------------------------------------- */
/* Te same wartości co .categories / .about-section na stronie głównej. */

.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
}

.contact-card h2 {
    color: var(--wed-bordo);
    margin-bottom: 0.5rem;
}

.contact-lead {
    margin: 0;
    color: #666;
}

/* --- Formularz ------------------------------------------------------ */

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    margin-top: 1.75rem;
}

.form-row--full {
    grid-column: 1 / -1;
}

/* Selektory zaczepione o .contact-form-grid, a nie o .contact-form: blok RODO
   stoi poza siatką i ma trzymać własną typografię oraz zwykłe checkboxy. */

.contact-form-grid label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.contact-form-grid label.required::after {
    content: '*';
    margin-left: 0.25em;
    color: var(--wed-bordo);
}

.contact-form-grid input,
.contact-form-grid textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    color: #333;
    background: white;
    border: 2px solid var(--wed-edge);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-grid input:focus,
.contact-form-grid textarea:focus {
    outline: none;
    border-color: var(--wed-bordo);
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.1);
}

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

/* Symfony renderuje błędy jako <ul><li> */
.contact-form-grid ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: 14px;
    color: #b91c1c;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* Przycisk to .btn z index.css. Tutaj tylko to, czego <button> nie dziedziczy
   po <a>, dla którego .btn był pisany. */
.contact-form .btn {
    gap: 10px;
    font-family: inherit;
    cursor: pointer;
}

/* --- Panel z danymi kontaktowymi ------------------------------------ */

.contact-info {
    padding: 2rem;
}

.info-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.info-icon {
    flex: 0 0 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: white;
    background: linear-gradient(135deg, var(--wed-bordo) 0%, var(--wed-crimson) 100%);
    border-radius: 8px;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
}

.info-value {
    margin-top: 2px;
    font-size: 16px;
    line-height: 1.45;
    color: #333;
    overflow-wrap: anywhere;
}

.info-value a {
    color: var(--wed-bordo);
    text-decoration: underline;
}

.info-value a:hover {
    text-decoration: none;
}

/* --- Mapa ------------------------------------------------------------ */

.contact-map {
    margin: 0 auto 3rem;
}

.map-frame {
    margin-top: 1.5rem;
    height: 380px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Komunikaty ------------------------------------------------------ */
/* Te same kolory, których strona główna używa w atrybutach style. */

.contact-form .alert {
    margin: 1.5rem 0 0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.contact-form .alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.contact-form .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* --- Responsywność --------------------------------------------------- */

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .contact-hero {
        padding: 3.5rem 0;
        /* Na mobile parallaks potrafi rozciągnąć tło do wysokości ekranu. */
        background-attachment: scroll;
    }

    .contact-hero h1 {
        font-size: 1.9rem;
    }

    .contact-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-card {
        padding: 1.6rem 1.3rem;
    }

    .map-frame {
        height: 280px;
    }
}
