/* 2.17.6 — Kontakt page and the shared contact form card (also on Oferta dla firm). */

/* ---------- Kontakt: left column ---------- */
.gnn-pdf-contact .gnn-pdf-contact-copy h1 {
    margin-bottom: 20px;
    color: #111111;
    font-size: 50px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.gnn-pdf-contact .gnn-pdf-contact-lead,
.gnn-pdf-contact .gnn-pdf-contact-copy > p {
    color: #2d2525;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
}

.gnn-pdf-contact .gnn-pdf-contact-copy > p:nth-of-type(2) {
    margin-top: 26px;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 16px;
}

.gnn-contact-cards {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.gnn-contact-card {
    display: flex;
    padding: 16px 18px 16px 16px;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(86, 151, 136, 0.35);
    border-radius: 16px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(45, 37, 37, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gnn-contact-card:hover,
.gnn-contact-card:focus-visible {
    border-color: var(--gnn-a11y-sage, #498074);
    box-shadow: 0 18px 36px rgba(45, 37, 37, 0.1);
    transform: translateY(-2px);
}

.gnn-contact-card__icon {
    display: inline-flex;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e3eee9;
}

.gnn-contact-card__icon img {
    width: 22px;
    height: 22px;
}

.gnn-contact-card__copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.gnn-contact-card__copy small {
    color: #6b6461;
    font-size: 13px;
    font-weight: 500;
}

.gnn-contact-card__copy strong {
    color: #111111;
    font-size: 19px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.gnn-contact-card__arrow {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(86, 151, 136, 0.4);
    border-radius: 50%;
    color: var(--gnn-a11y-sage-text, #467a6e);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.gnn-contact-card:hover .gnn-contact-card__arrow,
.gnn-contact-card:focus-visible .gnn-contact-card__arrow {
    background: var(--gnn-a11y-sage, #498074);
    color: #ffffff;
}

.gnn-contact-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.gnn-contact-socials span {
    margin-right: 4px;
    color: #2d2525;
    font-size: 15px;
    font-weight: 500;
}

.gnn-contact-socials a {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(86, 151, 136, 0.35);
    border-radius: 50%;
    background: #ffffff;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.gnn-contact-socials a:hover,
.gnn-contact-socials a:focus-visible {
    border-color: var(--gnn-a11y-sage, #498074);
    transform: translateY(-2px);
}

.gnn-contact-socials img {
    width: 20px;
    height: 20px;
}

/* ---------- Form card (Kontakt + Oferta dla firm) ---------- */
.gnn-pdf-form-card {
    padding: 36px 36px 30px;
    border-color: rgba(86, 151, 136, 0.55);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(45, 37, 37, 0.08);
}

.gnn-pdf-form-card h2 {
    margin-bottom: 8px;
    color: #111111;
    font-size: 34px;
}

.gnn-pdf-form-card h2::after {
    content: "Odpowiem najszybciej, jak to możliwe.";
    display: block;
    margin-top: 8px;
    margin-bottom: 18px;
    color: #6b6461;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
}

.gnn-pdf-form-card .gnn-cf7-grid {
    gap: 14px;
}

.gnn-pdf-form-card .gnn-cf7-field {
    flex-basis: calc(50% - 7px);
}

.gnn-pdf-form-card .gnn-cf7-field--full {
    flex-basis: 100%;
}

.gnn-pdf-form-card .gnn-cf7-field p {
    margin: 0;
}

.gnn-pdf-form-card input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.gnn-pdf-form-card textarea,
.gnn-pdf-form-card select {
    min-height: 54px;
    padding: 14px 20px;
    border-color: rgba(86, 151, 136, 0.55);
    background: #fffdfb;
    font-size: 16px;
}

.gnn-pdf-form-card textarea {
    min-height: 140px;
    padding: 16px 20px;
    border-radius: 20px;
}

.gnn-pdf-form-card input::placeholder,
.gnn-pdf-form-card textarea::placeholder {
    color: #8a8380;
}

.gnn-pdf-form-card input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.gnn-pdf-form-card textarea:focus {
    border-color: var(--gnn-a11y-sage, #498074);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(86, 151, 136, 0.14);
}

/* Consent: a real 22px checkbox in the site's green, readable 14px text. */
.gnn-pdf-form-card .gnn-cf7-consent {
    min-height: 0;
    margin-top: 2px;
}

.gnn-pdf-form-card .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.gnn-pdf-form-card .wpcf7-acceptance input[type="checkbox"] {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    border: 1.5px solid var(--gnn-a11y-sage, #498074);
    border-radius: 7px;
    background: #ffffff;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.gnn-pdf-form-card .wpcf7-acceptance input[type="checkbox"]:checked {
    background: var(--gnn-a11y-sage, #498074) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.gnn-pdf-form-card .wpcf7-acceptance input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(86, 151, 136, 0.2);
}

.gnn-pdf-form-card .wpcf7-list-item-label {
    color: #2d2525;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.gnn-pdf-form-card .wpcf7-acceptance a,
.gnn-pdf-form-card .gnn-cf7-note a {
    color: var(--gnn-a11y-sage-hover, #3d7065);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Submit: full width, site arrow drawn in CSS (no glyph). */
.gnn-pdf-form-card .gnn-cf7-submit {
    margin-top: 4px;
}

.gnn-pdf-form-card input[type="submit"],
.gnn-pdf-form-card button[type="submit"] {
    width: 100%;
    min-height: 54px;
    padding: 0 48px 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--gnn-a11y-sage, #498074) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") calc(50% + 92px) center / 16px no-repeat;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(65, 119, 107, 0.2);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.gnn-pdf-form-card input[type="submit"]:hover,
.gnn-pdf-form-card input[type="submit"]:focus-visible {
    background-color: var(--gnn-a11y-sage-hover, #3d7065);
    transform: translateY(-2px);
}

.gnn-pdf-form-card .gnn-cf7-note {
    flex: 0 0 100%;
    margin: 2px 0 0;
    color: #6b6461;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
}

.gnn-pdf-form-card .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
}

.gnn-pdf-form-card .wpcf7-not-valid-tip {
    margin-top: 6px;
    padding-left: 18px;
    font-size: 13px;
}

@media (max-width: 767px) {
    .gnn-pdf-contact .gnn-pdf-contact-copy h1 {
        font-size: 34px;
    }

    .gnn-pdf-contact .gnn-pdf-contact-lead,
    .gnn-pdf-contact .gnn-pdf-contact-copy > p {
        font-size: 16px;
    }

    .gnn-contact-card__copy strong {
        font-size: 16px;
    }

    .gnn-pdf-form-card {
        padding: 26px 20px 22px;
    }

    .gnn-pdf-form-card h2 {
        font-size: 28px;
    }

    .gnn-pdf-form-card .gnn-cf7-field {
        flex-basis: 100%;
    }
}

/* Phones: the e-mail address fits on one line instead of breaking inside the domain. */
@media (max-width: 767px) {
    .gnn-contact-card {
        padding: 14px 14px 14px 12px;
        gap: 12px;
    }

    .gnn-contact-card__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }

    .gnn-contact-card__arrow {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .gnn-contact-card__copy strong {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .gnn-contact-card__copy strong {
        font-size: 14px;
    }

    .gnn-contact-card__arrow {
        display: none;
    }
}

/* Small laptops / tablets landscape: the form column was only ~370px, so fields and copy stack. */
@media (min-width: 901px) and (max-width: 1100px) {
    .gnn-pdf-contact .gnn-pdf-contact-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 34px;
        min-height: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .gnn-pdf-contact .gnn-pdf-contact-copy,
    .gnn-pdf-contact .gnn-pdf-contact-layout > .gnn-pdf-form-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 760px;
    }
}

/* Oferta dla firm: the section's 570px paragraph limit also caught CF7's field wrappers, so on
   tablets name / topic / message stayed 570px while the e-mail + company row used the full card. */
.gnn-pdf-company-contact .gnn-pdf-form-card p {
    max-width: none;
}
