/* ==========================================================================
   Para-Cord — strona kontaktu

   Układ z makiety: po lewej zdjęcie z hasłem i powodami kontaktu, po prawej
   formularz i dane kontaktowe. Pod spodem skróty do najczęstszych pytań.
   ========================================================================== */

.pc-contact {
    display: grid;
    gap: var(--pc-block-gap);
}

/* --------------------------------------------------------------------------
   1. Kolumna ze zdjęciem
   -------------------------------------------------------------------------- */

/*
 * Hasło stoi u góry, powody kontaktu u dołu — jak w makiecie. Zdjęcie jest
 * tłem, więc treść musi trzymać się obu krawędzi, a nie zbijać w jedną.
 */
.pc-contact__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    padding: 24px;
    border-radius: var(--pc-r-xl);
    overflow: hidden;
    background: var(--pc-navy-800);
    color: #fff;
    isolation: isolate;
}

.pc-contact__hero img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
 * Przyciemnienie zdjęcia. Bez niego biały tekst bywa nieczytelny — zależnie
 * od tego, jaką grafikę wstawi redaktor.
 */
.pc-contact__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(2, 20, 62, 0.82) 0%, rgba(2, 20, 62, 0.45) 40%, rgba(2, 20, 62, 0.9) 100%);
}

/* Hasło u góry, reszta u dołu — pomiędzy zostaje widoczne zdjęcie */
.pc-contact__heroFoot > :last-child { margin-bottom: 0; }

.pc-contact__heroTitle {
    margin: 0 0 12px;
    font-family: var(--pc-font-display);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.pc-contact__heroTitle span { color: var(--pc-pink-300); }

.pc-contact__heroLead {
    margin: 0 0 18px;
    max-width: 44ch;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.pc-contact__reasons {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pc-contact__reasons li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
}

.pc-contact__reasons svg { color: #fff; }

/* Naklejka z hasłem — obrócona, jak w makiecie */
.pc-contact__sticker {
    position: absolute;
    right: 14px;
    bottom: 18px;
    max-width: 150px;
    padding: 10px 14px;
    border-radius: var(--pc-r-md);
    background: #fff;
    color: var(--pc-ink);
    font-family: var(--pc-font-display);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-6deg);
    box-shadow: var(--pc-shadow-md);
}

@media (max-width: 700px) {
    /* Na telefonie naklejka zasłaniałaby treść */
    .pc-contact__sticker { display: none; }
}

/* --------------------------------------------------------------------------
   2. Formularz
   -------------------------------------------------------------------------- */

.pc-contact__panel {
    padding: 22px;
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-r-xl);
    background: var(--pc-surface);
}

.pc-contact__title {
    margin: 0 0 6px;
    font-family: var(--pc-font-display);
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    color: var(--pc-ink);
}

.pc-contact__lead {
    margin: 0 auto 18px;
    max-width: 52ch;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    color: var(--pc-body);
}

.pc-contact__form { display: grid; gap: 14px; }

.pc-contact__row { display: grid; gap: 14px; }

.pc-contact__form .pc-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pc-ink);
}

.pc-contact__form .pc-field__label small {
    font-weight: 400;
    color: var(--pc-muted);
}

/*
 * Pole z ikoną. Ikona jest dekoracją (mówi to samo co etykieta), więc siedzi
 * w tle pola, a nie w jego treści — czytnik ekranu nie ma jej czytać.
 */
.pc-inputgroup {
    position: relative;
    display: block;
}

.pc-inputgroup > svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pc-muted);
    pointer-events: none;
}

.pc-inputgroup--area > svg {
    top: 14px;
    transform: none;
}

.pc-inputgroup .pc-input {
    width: 100%;
    padding-left: 38px;
}

.pc-contact__form .pc-textarea {
    min-height: 130px;
    height: auto;
    padding-top: 11px;
    padding-bottom: 11px;
    line-height: 1.55;
    resize: vertical;
}

.pc-contact__count {
    margin: 6px 0 0;
    font-size: 11.5px;
    text-align: right;
    color: var(--pc-muted);
}

.pc-contact__consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--pc-body);
    cursor: pointer;
}

.pc-contact__consent input {
    margin-top: 2px;
    accent-color: var(--pc-pink);
}

.pc-contact__consent a { color: var(--pc-pink); text-decoration: underline; }

.pc-contact__ok {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: var(--pc-r-md);
    background: #e7f7ee;
    color: #157a44;
    font-size: 13.5px;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. Dane kontaktowe
   -------------------------------------------------------------------------- */

.pc-contact__subtitle {
    margin: 24px 0 12px;
    font-family: var(--pc-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--pc-ink);
}

.pc-contact__cards {
    display: grid;
    gap: 12px;
}

.pc-contact__card {
    padding: 14px;
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-r-lg);
    background: var(--pc-surface-soft);
}

.pc-contact__card > svg {
    color: var(--pc-pink);
    margin-bottom: 6px;
}

.pc-contact__cardTitle {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pc-ink);
}

.pc-contact__card a {
    font-size: 14px;
    color: var(--pc-ink);
    text-decoration: none;
}

.pc-contact__card a:hover { color: var(--pc-pink); }

.pc-contact__cardNote {
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--pc-muted);
}

/* --------------------------------------------------------------------------
   4. Najczęstsze pytania
   -------------------------------------------------------------------------- */

.pc-contact__faq {
    padding: 18px;
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-r-lg);
    background: var(--pc-surface);
}

.pc-contact__faqHead {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pc-contact__faqHead h2 {
    margin: 0;
    font-family: var(--pc-font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--pc-ink);
}

.pc-contact__faqGrid {
    display: grid;
    gap: var(--pc-block-gap);
}

.pc-contact__faqCard {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-r-lg);
    background: var(--pc-surface-soft);
}

.pc-contact__faqIcon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--pc-pink-50);
    color: var(--pc-pink);
}

.pc-contact__faqTitle {
    margin: 0;
    font-family: var(--pc-font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--pc-ink);
}

.pc-contact__faqText {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--pc-body);
}

.pc-contact__faqLink {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pc-pink);
}

/* --------------------------------------------------------------------------
   5. Szerokie ekrany
   -------------------------------------------------------------------------- */

@media (min-width: 700px) {
    .pc-contact__row   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-contact__faqGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pc-contact__heroTitle { font-size: 38px; }
}

@media (min-width: 1024px) {
    .pc-contact {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }

    .pc-contact__hero  { min-height: 100%; padding: 30px; }
    .pc-contact__panel { padding: 28px; }
    .pc-contact__heroTitle { font-size: 42px; }
}
