/* =========================================================
   KONTAKT - UKŁAD GŁÓWNY
   ========================================================= */

.contact-content {
    width: 100%;
    background: #ffffff;
}

.contact-content .blog-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 0 100px;
}

.contact-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(320px, 1fr);
    gap: 48px;
    align-items: start;
}

.contact-card,
.contact-info {
    min-width: 0;
}

/* =========================================================
   KONTAKT - NAGŁÓWKI
   ========================================================= */

.contact-card-header {
    margin-bottom: 32px;
}

.contact-card-eyebrow,
.contact-info-eyebrow {
    margin: 0 0 10px;
    color: #c62032;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-card-title,
.contact-info-title {
    margin: 0 0 12px;
    color: #0b1f3a;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.contact-card-intro,
.contact-info-text {
    margin: 0;
    color: #34465b;
    font-size: 0.96rem;
    line-height: 1.65;
}

/* =========================================================
   KONTAKT - POLA FORMULARZA
   ========================================================= */

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
}

.contact-field {
    margin-bottom: 24px;
}

.contact-field label {
    display: block;
    margin-bottom: 8px;
    color: #0b1f3a;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
}

.contact-optional {
    margin-left: 4px;
    color: #637386;
    font-size: 0.78rem;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="file"],
.contact-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    color: #0b1f3a;
    background: #ffffff;
    border: 1px solid #d8e1ea;
    border-radius: 4px;
    font: inherit;
    line-height: 1.5;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

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

.contact-form input[type="file"] {
    padding: 10px;
    background: #f7f9fb;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #163b65;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 59, 101, 0.12);
}

.contact-field-help {
    margin: 8px 0 0;
    color: #637386;
    font-size: 0.8rem;
    line-height: 1.55;
}

/* =========================================================
   KONTAKT - ANTYSPAM
   ========================================================= */

.contact-math-field {
    max-width: 360px;
}

.contact-math-field input {
    max-width: 140px;
}

.contact-math-result {
    margin: 8px 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
}

.contact-math-result--error {
    color: #a92020;
}

.contact-math-result--success {
    color: #176438;
}


/* =========================================================
   KONTAKT - ZGODA / POLITYKA PRYWATNOŚCI
   ========================================================= */

.contact-privacy {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
    margin: 8px 0 30px;
}

.contact-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #0b1f3a;
    cursor: pointer;
}

.contact-privacy label {
    margin: 0;
    color: #34465b;
    font-size: 0.86rem;
    line-height: 1.6;
    cursor: pointer;
}

.contact-privacy label > span[aria-hidden="true"] {
    color: #c62032;
    font-weight: 700;
}

.contact-privacy a {
    color: #163b65;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(22, 59, 101, 0.35);
    text-underline-offset: 3px;
}

.contact-privacy a:hover,
.contact-privacy a:focus-visible {
    color: #c62032;
    text-decoration-color: #c62032;
}


/* =========================================================
   KONTAKT - PRZYCISK
   ========================================================= */

.contact-form-actions {
    display: flex;
    align-items: center;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 28px;
    color: #ffffff;
    background: #c62032;
    border: 1px solid #c62032;
    border-radius: 4px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.contact-submit:hover {
    background: #a91b2a;
    border-color: #a91b2a;
}

.contact-submit:focus-visible {
    outline: 3px solid rgba(198, 32, 50, 0.22);
    outline-offset: 4px;
}

.contact-submit:active {
    transform: translateY(1px);
}

/* =========================================================
   KONTAKT - WALIDACJA
   ========================================================= */

.contact-field-error {
    margin: 8px 0 0;
    color: #a92020;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
}

.contact-privacy .contact-field-error {
    grid-column: 1 / -1;
    margin: 0;
    padding-left: 32px;
}

.contact-form [aria-invalid="true"] {
    border-color: #c62032;
    box-shadow: 0 0 0 3px rgba(198, 32, 50, 0.08);
}

.contact-privacy input[aria-invalid="true"] {
    outline: 2px solid #c62032;
    outline-offset: 2px;
}

/* =========================================================
   KONTAKT - PRAWA KOLUMNA
   ========================================================= */

.contact-info {
    position: relative;
    padding: 36px 34px 34px;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #0b1f3a 0%,
            #163b65 100%
        );
    border-radius: 4px;
    overflow: hidden;
}

/* Czerwony akcent */
.contact-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 4px;
    background: #c62032;
}

.contact-info-eyebrow {
    margin: 0 0 12px;
    color: #e7eef6;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-info-title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.contact-info-text {
    margin: 0;
    color: #e7eef6;
    font-size: 0.94rem;
    line-height: 1.7;
}

.contact-info-divider {
    width: 48px;
    height: 2px;
    margin: 30px 0;
    background: #c62032;
}

.contact-info-quote {
    margin: 0;
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.contact-info-caption {
    margin: 14px 0 0;
    color: #b9c9da;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* =========================================================
   KONTAKT - INFORMACJA WAŻNE
   ========================================================= */

.contact-info-note {
    margin-top: 36px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

.contact-info-note strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-info-note p {
    margin: 0;
    color: #d4dfeb;
    font-size: 0.82rem;
    line-height: 1.65;
}