/* Tandartsenpraktijk Keller – update 2026 */
.tpk-call-button,
.tpk-tarieven-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    background: #fca710;
    color: #4c4c47 !important;
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 2px;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.tpk-call-button:hover,
.tpk-call-button:focus-visible,
.tpk-tarieven-button:hover,
.tpk-tarieven-button:focus-visible {
    background: #fff;
    color: #4c4c47 !important;
    box-shadow: 0 5px 20px rgba(0,0,0,.18);
    transform: translateY(-1px);
}
.tpk-payt-link {
    color: #fca710 !important;
    text-decoration: underline !important;
}

.tpk-team-wrap {
    max-width: 1180px;
    margin: 60px auto 0;
    padding: 48px 50px 55px;
    background: #4c4c47;
    border-left: 10px solid #fca710;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.tpk-team-group + .tpk-team-group {
    margin-top: 48px;
}
.tpk-team-group > h2 {
    margin: 0 0 24px;
    color: #fca710;
    font-size: 28px;
    line-height: 1.25;
    text-align: center;
}
.tpk-team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.tpk-team-card {
    overflow: hidden;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.12);
    min-width: 0;
}
.tpk-team-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    background: #f2f2f0;
}
.tpk-team-photo--placeholder {
    position: relative;
    background: #f2f2f0;
}
.tpk-team-photo--placeholder::before {
    content: "";
    position: absolute;
    inset: 22%;
    background: url("/wp-content/uploads/2026/09/logo-rozetka-szary-ciemny.jpg") center / contain no-repeat;
    opacity: .72;
}
.tpk-team-card-body {
    padding: 18px 20px 20px;
    text-align: center;
}
.tpk-team-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 19px;
    line-height: 1.3;
}
.tpk-team-function,
.tpk-team-details {
    margin: 0;
    color: #fff;
}
.tpk-team-function {
    font-weight: 600;
    color: #fca710;
}
.tpk-team-details {
    margin-top: 5px;
    font-size: 13px;
    opacity: .84;
}

@media (max-width: 900px) {
    .tpk-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .tpk-team-wrap {
        margin-top: 30px;
        padding: 30px 20px 35px;
        border-left-width: 6px;
    }
    .tpk-team-group + .tpk-team-group {
        margin-top: 38px;
    }
    .tpk-team-group > h2 {
        font-size: 23px;
    }
    .tpk-team-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .tpk-call-button,
    .tpk-tarieven-button {
        width: 100%;
        max-width: 320px;
    }
}

/* v1.1 – pojedyncza semantyczna wersja treści Home + podstrony informacyjne */
.tpk-section-heading,
.tpk-page-heading,
.tpk-subheading,
.tpk-home-info-title {
    margin-top: 0;
}
.tpk-section-heading {
    color: #fca710;
    font-size: 28px;
    line-height: 1.3;
    text-align: center;
}
.tpk-home-info-title {
    margin: 0;
    padding: 9px 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 1.4;
    text-align: center;
}
.tpk-page-heading {
    color: #fca710;
    font-size: 24px;
    line-height: 1.3;
}
.tpk-subheading {
    margin: 26px 0 10px;
    color: #fca710;
    font-size: 19px;
    line-height: 1.35;
}
.tpk-inline-link {
    color: #fca710 !important;
    text-decoration: underline !important;
}
.tpk-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    background: #fca710;
    color: #4c4c47 !important;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
}
.tpk-secondary-button:hover,
.tpk-secondary-button:focus-visible {
    background: #fff;
    color: #4c4c47 !important;
}
.tpk-small-note {
    margin-top: 24px;
    font-size: 13px;
    opacity: .8;
}

@media (max-width: 767px) {
    .tpk-home-info .vc_column_container {
        margin-bottom: 34px;
    }
    .tpk-home-info .vc_column_container:last-child {
        margin-bottom: 0;
    }
    .tpk-home-info .cz_title {
        width: 100% !important;
    }
    .tpk-section-heading {
        font-size: 23px;
    }
    .tpk-page-heading {
        font-size: 23px;
    }
    .tpk-secondary-button {
        width: 100%;
        max-width: 320px;
    }
}

/* v1.2 – niezależne od cz_* sekcje treści */
.tpk-content-shell {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
    padding: 50px;
    background: #4c4c47;
    color: #fff;
    border-left: 10px solid #fca710;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.tpk-content-shell.tpk-page-betalen,
.tpk-content-shell.tpk-page-klachten,
.tpk-content-shell.tpk-page-techniekkosten {
    margin-top: -190px;
    margin-bottom: 80px;
}
.tpk-page-tarieven {
    margin-top: 60px;
    margin-bottom: 80px;
}
.tpk-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 46px;
}
.tpk-content-grid--single {
    grid-template-columns: minmax(0, 1fr);
}
.tpk-content-shell p,
.tpk-content-shell li {
    color: #fff;
}
.tpk-content-shell ul,
.tpk-content-shell ol {
    margin: 0 0 18px 1.25em;
}
.tpk-content-shell li + li {
    margin-top: 7px;
}
.tpk-content-shell .tpk-page-heading {
    margin: 0 0 22px;
    color: #fca710;
    font-size: 28px;
    line-height: 1.25;
}
.tpk-content-shell .tpk-subheading--first {
    margin-top: 0;
}
.tpk-team-page-heading {
    width: min(1180px, calc(100% - 40px));
    margin: 45px auto 0;
    text-align: center;
}
.tpk-team-page-heading h1 {
    margin: 0;
    color: #4c4c47;
    font-size: 32px;
    line-height: 1.25;
}

/* CF7 bez zależności od selektora formularza w XTRA. */
.wpcf7.tpk-cf7,
.tpk-cf7 {
    width: 100%;
}
.tpk-cf7 label {
    display: block;
    margin-bottom: 11px;
}
.tpk-cf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.tpk-cf7 textarea,
.tpk-cf7 select {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin-top: 5px;
    padding: 10px 12px;
    color: #fff;
    background: #4c4c47;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 0;
}
.tpk-cf7 textarea {
    min-height: 135px;
    resize: vertical;
}
.tpk-cf7 input[type="checkbox"],
.tpk-cf7 input[type="radio"] {
    width: auto;
}
.tpk-cf7 input[type="submit"] {
    min-height: 44px;
    padding: 10px 20px;
    color: #fca710;
    background: #4c4c47;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font-weight: 600;
}
.tpk-cf7 input[type="submit"]:hover,
.tpk-cf7 input[type="submit"]:focus-visible {
    color: #4c4c47;
    background: #fff;
}
.tpk-cf7 .wpcf7-list-item {
    margin-left: 0;
    margin-right: 12px;
}

@media (max-width: 767px) {
    .tpk-content-shell {
        width: calc(100% - 24px);
        padding: 28px 20px 32px;
        border-left-width: 6px;
    }
    .tpk-content-shell.tpk-page-betalen,
    .tpk-content-shell.tpk-page-klachten,
    .tpk-content-shell.tpk-page-techniekkosten {
        margin-top: -40px;
        margin-bottom: 45px;
    }
    .tpk-page-tarieven {
        margin-top: 35px;
        margin-bottom: 45px;
    }
    .tpk-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .tpk-content-shell .tpk-page-heading {
        font-size: 24px;
    }
    .tpk-team-page-heading {
        width: calc(100% - 24px);
        margin-top: 30px;
    }
    .tpk-team-page-heading h1 {
        font-size: 25px;
    }
}

.tpk-team-page-heading + .tpk-team-wrap { margin-top: 24px; }
@media (max-width: 767px) { .tpk-team-page-heading + .tpk-team-wrap { margin-top: 20px; } }

/* v1.3 – poprawki po uwagach klienta */
.tpk-iban {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: #fff;
    font-size: 16px;
}
.tpk-techniek-download-col {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tpk-techniek-download {
    margin: 0;
    text-align: center;
}
.tpk-techniek-filename {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: 13px;
    opacity: .82;
    overflow-wrap: anywhere;
}
.tpk-inschrijving-fallback {
    box-sizing: border-box;
    width: min(1180px, calc(100% - 40px));
    margin: 40px auto 80px;
    padding: 42px 50px;
    background: #4c4c47;
    color: #fff;
    border-left: 10px solid #fca710;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.tpk-inschrijving-fallback label,
.tpk-inschrijving-fallback .wpcf7-list-item-label,
.tpk-inschrijving-fallback p {
    color: #fff;
}
.tpk-inschrijving-fallback a {
    color: #fca710;
}

@media (max-width: 767px) {
    .tpk-techniek-download-col {
        justify-content: flex-start;
    }
    .tpk-techniek-download {
        text-align: left;
    }
    .tpk-inschrijving-fallback {
        margin-top: 25px;
        padding: 28px 20px 32px;
        border-left-width: 6px;
    }
}


/* v1.3.1 – Home bez elementów PRO Codevz Plus */
.tpk-home-content {
    width: min(1180px, calc(100% - 40px));
    margin: 55px auto 90px;
    color: #4c4c47;
}
.tpk-home-practice {
    max-width: 820px;
    margin: 0 auto 55px;
    text-align: center;
}
.tpk-home-practice h2,
.tpk-home-rootcanal h2 {
    margin: 0 0 18px;
    color: #fca710;
    font-size: 28px;
    line-height: 1.25;
}
.tpk-home-practice p,
.tpk-home-rootcanal p,
.tpk-home-info-card p {
    font-size: 16px;
    line-height: 1.75;
}
.tpk-home-rootcanal {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 50px;
    padding: 48px 58px;
    background: #4c4c47;
    border-left: 9px solid #fca710;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.tpk-home-rootcanal h2,
.tpk-home-rootcanal p {
    color: #fff;
}
.tpk-home-rootcanal h2 {
    color: #fca710;
}
.tpk-home-rootcanal p:last-child {
    margin-bottom: 0;
}
.tpk-home-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    margin-top: 80px;
}
.tpk-home-info-card {
    text-align: center;
}
.tpk-home-info-card h2 {
    margin: 0 0 28px;
    padding: 12px 18px;
    color: #fff;
    background: #4c4c47;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 3px;
    font-weight: 500;
}
.tpk-home-info-card p {
    margin-bottom: 18px;
}
@media (max-width: 767px) {
    .tpk-home-content {
        width: calc(100% - 24px);
        margin: 34px auto 55px;
    }
    .tpk-home-practice {
        margin-bottom: 34px;
        text-align: left;
    }
    .tpk-home-practice h2,
    .tpk-home-rootcanal h2 {
        font-size: 23px;
    }
    .tpk-home-practice p,
    .tpk-home-rootcanal p,
    .tpk-home-info-card p {
        font-size: 15px;
        line-height: 1.65;
    }
    .tpk-home-rootcanal {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 30px 24px;
        border-left-width: 6px;
    }
    .tpk-home-info-grid {
        grid-template-columns: 1fr;
        gap: 34px;
        margin-top: 48px;
    }
    .tpk-home-info-card h2 {
        margin-bottom: 18px;
    }
}

/* v1.3.2 – niezależny Contact/Route (bez elementów PRO XTRA/Codevz) */
.tpk-contact-page {
    max-width: 1100px;
    margin: 52px auto 80px;
    padding: 0 24px;
}
.tpk-contact-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}
.tpk-contact-detail {
    display: flex;
    min-height: 128px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none !important;
    color: #fff !important;
    background: #4c4c47;
    border-top: 4px solid #fca710;
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
    transition: transform .18s ease, box-shadow .18s ease;
}
.tpk-contact-detail:hover,
.tpk-contact-detail:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.tpk-contact-detail-label {
    color: #fca710;
    font-weight: 700;
    font-size: 17px;
}
.tpk-contact-detail strong {
    color: #fff;
    font-size: 17px;
    line-height: 1.45;
}
.tpk-contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: #fca710;
    box-shadow: 0 10px 32px rgba(0,0,0,.17);
}
.tpk-contact-form-wrap,
.tpk-contact-map-wrap {
    min-width: 0;
    padding: 42px;
}
.tpk-contact-form-wrap h2 {
    margin-top: 0;
    color: #4c4c47;
    font-size: 25px;
    line-height: 1.3;
}
.tpk-contact-form-wrap .wpcf7-form p {
    margin-bottom: 12px;
}
.tpk-contact-form-wrap .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    box-sizing: border-box;
}
.tpk-contact-form-wrap input[type="text"],
.tpk-contact-form-wrap input[type="email"],
.tpk-contact-form-wrap input[type="tel"],
.tpk-contact-form-wrap textarea,
.tpk-contact-form-wrap select {
    color: #fff;
    background: #4c4c47;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 0;
}
.tpk-contact-form-wrap .wpcf7-submit {
    padding: 13px 24px;
    color: #fca710;
    background: #4c4c47;
    border: 0;
    border-radius: 0;
    font-weight: 700;
    cursor: pointer;
}
.tpk-contact-map-wrap {
    display: flex;
    flex-direction: column;
}
.tpk-contact-map {
    display: block;
    width: 100%;
    min-height: 445px;
    flex: 1 1 auto;
    border: 0;
}
.tpk-route-button {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 18px;
    color: #fca710 !important;
    background: #4c4c47;
    text-decoration: none !important;
    font-weight: 700;
}

/* Placeholder zespołu: jedyna osoba bez zdjęcia pozostaje z logo praktyki. */
.tpk-team-photo--placeholder::before { display: none !important; }
.tpk-team-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tpk-team-photo--placeholder img {
    display: block;
    width: 42%;
    height: auto;
    max-height: 42%;
    object-fit: contain;
    opacity: .58;
}

@media (max-width: 900px) {
    .tpk-contact-details {
        grid-template-columns: 1fr;
    }
    .tpk-contact-panel {
        grid-template-columns: 1fr;
    }
    .tpk-contact-map-wrap {
        padding-top: 0;
    }
}
@media (max-width: 767px) {
    .tpk-contact-page {
        margin: 32px auto 52px;
        padding: 0 16px;
    }
    .tpk-contact-detail {
        min-height: 104px;
        padding: 20px 16px;
    }
    .tpk-contact-form-wrap,
    .tpk-contact-map-wrap {
        padding: 26px 20px;
    }
    .tpk-contact-map-wrap {
        padding-top: 0;
    }
    .tpk-contact-map {
        min-height: 340px;
    }
}


/* v1.3.4 – korekta Techniekkosten + pozostałość PRO na Contact/Route */
.tpk-content-shell.tpk-page-techniekkosten {
    margin-top: 60px !important;
    margin-bottom: 80px;
}
@media (max-width: 767px) {
    .tpk-content-shell.tpk-page-techniekkosten {
        margin-top: 32px !important;
        margin-bottom: 50px;
    }
}

/* v1.3.6 – korekta pionowego startu podstron */
/* Techniekkosten: mały, naturalny odstęp pod głównym menu. */
.tpk-content-shell.tpk-page-techniekkosten {
    margin-top: 24px !important;
    margin-bottom: 60px !important;
}

/* Betalen/Klachten zachowują nakładkę na zdjęcie hero; pozycję viewportu naprawia tpk-layout.js. */
.tpk-content-shell.tpk-page-betalen,
.tpk-content-shell.tpk-page-klachten {
    margin-bottom: 80px;
}

@media (max-width: 767px) {
    .tpk-content-shell.tpk-page-techniekkosten {
        margin-top: 18px !important;
        margin-bottom: 42px !important;
    }
}

/* v1.3.10 – selektory sekcji są ograniczone do .tpk-content-shell.
   Dzięki temu ujemne marginesy paneli Betalen/Klachten nie mogą już przesuwać całego <body>. */
