/* =========================================
   PROFIL V2 — Design 2026-04
   Konwersyjny szablon profilu (single-v2.php)
   Klasy pv2-* mapowane na design z mockupu
   ========================================= */

:root {
    --pv2-primary: #ff6b00;
    --pv2-primary-hover: #e05e00;
    --pv2-text-dark: #333333;
    --pv2-text-light: #666666;
    --pv2-border: #e1e1e1;
    --pv2-radius: 8px;
    --pv2-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ---- Reset box-sizing ---- */
.pv2-profile *,
.pv2-profile *::before,
.pv2-profile *::after {
    box-sizing: border-box;
}

/* ---- Full-width layout (no sidebar) ----
   Override responsive.css ktore ustawia #main-content na 65%/100%. */
body.pv2-variant #content #main-content,
body.pv2-variant #content > .container > #main-content {
    width: 100% !important;
    float: none !important;
    max-width: 1200px;
    margin: 0 auto !important;
    /* adding: 0 20px; */
}
body.pv2-variant #content #sidebar {
    display: none !important;
}
body.pv2-variant #content > .container {
    max-width: 1240px;
}

body.pv2-variant .title-two h1 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.pv2-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: var(--pv2-radius);
    box-shadow: var(--pv2-shadow);
    margin: 40px 0;
    align-items: start;
}

.pv2-photo-col a {
    display: block;
    border-radius: var(--pv2-radius);
    overflow: hidden;
}

.pv2-main-photo,
.pv2-photo-col img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--pv2-radius);
    object-fit: cover;
}

.pv2-info-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.pv2-verified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    width: fit-content;
    border: none;
}
.pv2-verified svg {
    flex-shrink: 0;
}

.pv2-profile .pv2-data {
    display: grid;
    grid-template-columns: 40% 1fr;
    column-gap: 0;
    row-gap: 0;
    margin: 0 0 30px 0;
    padding: 0;
}

.pv2-profile .pv2-data dt,
.pv2-profile .pv2-data dd {
    padding: 10px 0;
    border-bottom: 1px solid var(--pv2-border);
    margin: 0;
    align-self: center;
}

.pv2-profile .pv2-data dt {
    color: var(--pv2-text-light);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.pv2-profile .pv2-data dd {
    font-size: 15px;
    font-weight: 500;
    color: var(--pv2-text-dark);
}

.pv2-cta-box {
    background: #fff8f3;
    border: 1px solid #ffe0cc;
    padding: 30px;
    border-radius: var(--pv2-radius);
    text-align: center;
    box-shadow: none;
}

.pv2-cta-box h4 {
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    color: var(--pv2-text-dark);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.pv2-cta-box p {
    font-size: 13px;
    color: var(--pv2-text-light);
    margin: 0 0 20px 0;
    line-height: 1.55;
}

.pv2-cta-box .pv2-guarantee {
    font-size: 11px;
    color: #999;
    margin: 5px 0 0 0;
}

.pv2-btn-primary {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: var(--pv2-primary);
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.3s,
        transform 0.1s;
    box-shadow: none;
    font-family: inherit;
}

.pv2-btn-primary:hover {
    background: var(--pv2-primary-hover);
    color: #ffffff !important;
    text-decoration: none;
    transform: none;
}

.pv2-btn-primary:active {
    transform: scale(0.98);
}

.pv2-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
    padding-top: 0;
    border-top: none;
    font-size: 14px;
    color: var(--pv2-text-dark);
    flex-wrap: wrap;
}

.pv2-phone-link a {
    color: var(--pv2-primary);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

.pv2-phone-link a:hover {
    text-decoration: underline;
}

.pv2-trust-bar {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 30px 0;
    margin: 0 0 50px;
    border-top: 1px solid var(--pv2-border);
    border-bottom: 1px solid var(--pv2-border);
}

.pv2-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--pv2-text-light);
    font-size: 14px;
    font-weight: 500;
}

.pv2-trust-item svg {
    color: var(--pv2-primary);
    flex-shrink: 0;
}

.pv2-gallery-section {
    margin: 0 0 60px;
}

.pv2-profile .pv2-gallery-title {
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    color: var(--pv2-text-dark);
    text-align: center;
    margin: 0 0 30px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pv2-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
}

.pv2-gallery a,
.pv2-gallery .pv2-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: var(--pv2-radius);
    box-shadow: var(--pv2-shadow);
    transition: transform 0.3s;
    cursor: pointer;
    background: #f3f3f3;
    aspect-ratio: 1 / 1;
}

.pv2-gallery a:hover,
.pv2-gallery .pv2-gallery-item:hover {
    transform: scale(1.04);
}

.pv2-gallery img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: var(--pv2-radius) !important;
    margin: 0 !important;
}

.pv2-gallery p {
    margin: 0 !important;
}

.pv2-form-section {
    position: relative;
    margin: 0 auto 60px;
    padding: 0;
    background: none;
    max-width: 700px;
}

.pv2-form-card {
    background: #f9f7f7;
    border-radius: var(--pv2-radius);
    padding: 40px;
    box-shadow: var(--pv2-shadow);
    border: none;
    max-width: 700px;
    margin: 0 auto;
    overflow: visible;
}

.pv2-form-card::before {
    display: none;
}

.pv2-form-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    text-align: left;
}

.pv2-form-avatar {
    flex: 0 0 60px;
}

.pv2-form-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: none;
    display: block;
}

.pv2-form-header-text {
    flex: 1;
    min-width: 0;
}

.pv2-form-header h3 {
    font-family: inherit;
    font-size: 20px;
    font-weight: 600;
    color: var(--pv2-text-dark);
    margin: 0 0 5px 0;
    padding: 0;
    line-height: 1.3;
}

.pv2-form-header p {
    font-size: 13px;
    color: var(--pv2-text-light);
    margin: 0;
    line-height: 1.5;
}

.pv2-cf7-wrapper p {
    margin: 0 0 20px 0;
}

.pv2-cf7-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--pv2-text-light);
    font-weight: 400;
}

.pv2-cf7-wrapper input[type="text"],
.pv2-cf7-wrapper input[type="email"],
.pv2-cf7-wrapper input[type="tel"],
.pv2-cf7-wrapper input[type="url"],
.pv2-cf7-wrapper input[type="number"],
.pv2-cf7-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--pv2-border);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.3s;
    box-shadow: none;
}

.pv2-cf7-wrapper input[type="text"]:focus,
.pv2-cf7-wrapper input[type="email"]:focus,
.pv2-cf7-wrapper input[type="tel"]:focus,
.pv2-cf7-wrapper input[type="url"]:focus,
.pv2-cf7-wrapper input[type="number"]:focus,
.pv2-cf7-wrapper textarea:focus {
    outline: none;
    border-color: var(--pv2-primary);
    box-shadow: none;
}

.pv2-cf7-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.pv2-cf7-wrapper input[type="submit"] {
    background: var(--pv2-primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: none;
    transition:
        background 0.3s,
        transform 0.1s;
    font-family: inherit;
    width: auto;
}

.pv2-cf7-wrapper input[type="submit"]:hover {
    background: var(--pv2-primary-hover);
    transform: none;
}

.pv2-cf7-wrapper input[type="submit"]:active {
    transform: scale(0.98);
}

.wpcf7 .wpcf7-submit {
    margin-right: 0;
    margin-left: auto;
    float: none;
    display: inline-block;
}
.wpcf7 p:has(> .wpcf7-submit) {
    text-align: right;
    display: block;
}

.pv2-form-success {
    text-align: center;
    padding: 35px 25px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    margin: 10px 0;
    animation: pv2FadeIn 0.4s ease-out;
}

.pv2-form-success-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 30px;
    margin: 0 auto 15px auto;
    font-weight: bold;
}

.pv2-form-success h4 {
    margin: 0 0 10px 0;
    color: #15803d;
    font-size: 20px;
    font-weight: 600;
}

.pv2-form-success p {
    margin: 0;
    color: #166534;
    font-size: 15px;
    line-height: 1.5;
}

@keyframes pv2FadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pv2-form-footer {
    text-align: center;
    margin-top: 15px;
}

.pv2-form-footer p {
    font-size: 11px;
    color: #999;
    margin: 15px 0 0 0;
}

.pv2-similar-section {
    margin-bottom: 40px;
}

.pv2-profile .pv2-similar-section h3 {
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    color: var(--pv2-text-dark);
    margin: 0 0 30px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pv2-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pv2-similar-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.pv2-similar-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.pv2-similar-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--pv2-radius);
    box-shadow: var(--pv2-shadow);
    margin-bottom: 15px;
    display: block;
}

.pv2-similar-card .pv2-similar-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--pv2-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.pv2-similar-card .pv2-similar-age {
    font-size: 13px;
    color: var(--pv2-text-light);
}

/* ---- Nawigacja prev/next ---- */
.pv2-navigation {
    display: flex;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid var(--pv2-border);
    margin-top: 20px;
}

.pv2-navigation a {
    color: var(--pv2-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.pv2-navigation a:hover {
    text-decoration: underline;
}

/* ---- Sticky CTA na mobile ---- */
.pv2-sticky-cta {
    display: none;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 992px) {
    .pv2-similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pv2-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
        margin: 20px 0;
    }

    .pv2-trust-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        margin-bottom: 30px;
    }

    .pv2-form-card {
        padding: 20px;
    }

    .pv2-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .pv2-form-header {
        flex-direction: row;
        text-align: left;
        gap: 12px;
        margin-bottom: 24px;
    }

    .pv2-form-header h3 {
        font-size: 18px;
    }

    .pv2-similar-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }

    .pv2-profile .pv2-similar-section h3,
    .pv2-profile .pv2-gallery-title {
        font-size: 18px;
    }

    .pv2-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background: #ffffff;
        padding: 12px 16px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
        text-align: center;
    }

    .pv2-sticky-cta .pv2-btn-primary {
        padding: 14px 24px;
        font-size: 14px;
        max-width: 400px;
    }

    body.pv2-variant {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .pv2-profile .pv2-data {
        column-gap: 16px;
    }

    .pv2-profile .pv2-data dt {
        font-size: 11px;
    }

    .pv2-profile .pv2-data dd {
        font-size: 14px;
    }

    .pv2-cta-box {
        padding: 20px;
    }

    .pv2-cta-box h4 {
        font-size: 18px;
    }

    .pv2-form-card {
        padding: 18px;
    }
}
