/* ===========================================
   CENNIK PAGE (/cennik)
   Style specyficzne dla strony cennika: layout, selektor typu konta,
   panel kandydata (darmowe funkcje + opcjonalne dodatki) oraz modale.
   Sekcje planów rekruterskich korzystają z guide-pages.css,
   a sekcja zespołowa z team.css.
   =========================================== */

/* === LAYOUT === */
.pricing-page {
    max-width: 1180px;
    margin: 2rem auto;
    padding: 0 20px;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-hero h1 {
    color: #003153;
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.pricing-hero p {
    color: #55627a;
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === REVEAL ANIMACJA (opcjonalna, bez JS działa jako statyczna) === */
.pricing-reveal {
    opacity: 1;
}

/* === SELEKTOR TYPU KONTA === */
.account-type-selector {
    margin-bottom: 2.5rem;
}

.account-type-title {
    text-align: center;
    color: #003153;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 1.75rem;
}

.account-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.account-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    background: #fff;
    border: 2px solid #e2e6ec;
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.account-type-card:hover {
    border-color: #90b8dd;
    box-shadow: 0 8px 24px rgba(0, 49, 83, 0.1);
    transform: translateY(-3px);
}

.account-type-card:focus-visible {
    outline: 2px solid #145B8A;
    outline-offset: 2px;
}

.account-type-card.is-active {
    border-color: #2f7fe0;
    box-shadow: 0 10px 28px rgba(47, 127, 224, 0.18);
}

.account-type-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eef4fb;
    color: #0B4A73;
    margin-bottom: 0.25rem;
}

.account-type-card.is-active .account-type-icon {
    background: #003153;
    color: #fff;
}

.account-type-name {
    color: #003153;
    font-size: 20px;
    font-weight: 700;
}

.account-type-desc {
    color: #6b7688;
    font-size: 14px;
    line-height: 1.5;
}

.account-type-tag {
    margin-top: 0.5rem;
    display: inline-block;
    background: #e8f5ec;
    color: #1e7c46;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* === PANELE CENOWE === */
.pricing-panel {
    margin-top: 1rem;
    animation: cennikPanelFade 0.4s ease;
}

.pricing-panel[hidden] {
    display: none;
}

@keyframes cennikPanelFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.pricing-panel-inner {
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: 0 12px 32px rgba(0, 49, 83, 0.06);
}

.pricing-panel-inner--wide {
    padding: 2.25rem 1.5rem;
}

.pricing-panel-title {
    text-align: center;
    color: #003153;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.pricing-panel-subtitle {
    text-align: center;
    color: #55627a;
    font-size: 16px;
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* === DARMOWE FUNKCJE (kandydat / rekruter) === */
.free-forever-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.free-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f6fbff;
    border: 1px solid #dcebf8;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.free-item--highlight {
    background: #fff8ec;
    border-color: #f6dfae;
}

.free-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #1e7c46;
    color: #fff;
}

.free-item--highlight .free-item-icon {
    background: #F39C12;
}

.free-item-body h3 {
    color: #003153;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 2px;
}

.free-item-price {
    color: #1e7c46;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.free-item--highlight .free-item-price {
    color: #c67c07;
}

.free-forever-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: 1rem 1.5rem;
    background: #eef7f1;
    border: 1px solid #cfe8d8;
    border-radius: 12px;
    color: #1e7c46;
    font-size: 15px;
    text-align: center;
}

.free-forever-banner svg {
    flex-shrink: 0;
}

.candidate-cta {
    text-align: center;
    margin-bottom: 2.5rem;
}

.candidate-cta .btn-primary {
    display: inline-block;
    background: #F39C12;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    padding: 0.875rem 2.5rem;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.candidate-cta .btn-primary:hover {
    background: #e08e0b;
    transform: translateY(-1px);
}

/* === OPCJONALNE DODATKI (kandydat) === */
.addons-section {
    border-top: 2px solid #eef1f5;
    padding-top: 2rem;
}

.addons-title {
    text-align: center;
    color: #003153;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.addons-intro {
    text-align: center;
    color: #6b7688;
    font-size: 15px;
    max-width: 680px;
    margin: 0 auto 1.75rem;
    line-height: 1.6;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.addon-card {
    position: relative;
    background: #fff;
    border: 2px solid #e6eaf0;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.addon-card--featured {
    border-color: #F39C12;
    box-shadow: 0 8px 24px rgba(243, 156, 18, 0.12);
}

.addon-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #F39C12;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.addon-card-head {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.addon-card-head h4 {
    color: #003153;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
}

.addon-from {
    color: #145B8A;
    font-size: 14px;
}

.addon-from strong {
    font-size: 18px;
    color: #003153;
}

.addon-desc {
    color: #6b7688;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 1rem;
    flex-grow: 1;
}

.addon-price-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0 0;
    border-top: 1px dashed #e0e6ee;
}

.addon-price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #46536b;
    padding: 4px 0;
}

.addon-price-list li span:last-child {
    font-weight: 700;
    color: #003153;
}

.addons-note {
    text-align: center;
    color: #8a93a5;
    font-size: 13px;
    margin: 1.75rem auto 0;
    max-width: 680px;
    line-height: 1.6;
}

/* === REKRUTER: nagłówki i toggle === */
.recruiter-plans-heading {
    text-align: center;
    color: #003153;
    font-size: 24px;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

/* Nadpisanie: guide-pages.css ustawia .plan-picker-grid { display:grid },
   co nadpisuje domyślne [hidden]{display:none}. Bez tego wszystkie okresy
   są widoczne naraz, a przełącznik plan-toggle nie ma efektu. */
.plan-picker-grid[hidden] {
    display: none;
}

.plan-picker-price-tax {
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.plan-picker-empty {
    text-align: center;
    color: #6b7688;
    font-size: 15px;
    margin: 1rem auto 0;
    max-width: 560px;
    line-height: 1.6;
}

.plan-picker-empty a {
    color: #145B8A;
    font-weight: 600;
}

/* === ZESPÓŁ: notka nad przelącznikiem VAT === */
.team-panel-note {
    text-align: center;
    font-weight: 700;
    color: #003153;
    margin: 0 auto 1rem;
    max-width: 640px;
}

.price-currency--spaced {
    margin-bottom: 0.75rem;
}

.panel-more-link {
    text-align: center;
    margin: 2rem 0 0;
}

.panel-more-link a {
    color: #145B8A;
    font-weight: 600;
    text-decoration: none;
}

.panel-more-link a:hover {
    text-decoration: underline;
}

/* === MODAL INFORMACYJNY (aktywacja dostępu) === */
.cennik-info-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.cennik-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.cennik-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 420px;
    width: calc(100% - 40px);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.cennik-modal-content h3 {
    color: #003153;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.cennik-modal-content p {
    color: #55627a;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.cennik-modal-content .btn-primary {
    display: inline-block;
    background: #003153;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 0.7rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cennik-modal-content .btn-primary:hover {
    background: #012a47;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .pricing-page {
        margin: 1.5rem auto;
    }

    .pricing-hero h1 {
        font-size: 34px;
    }

    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-panel-inner {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .pricing-page {
        margin: 1.25rem auto;
        padding: 0 15px;
    }

    .pricing-hero {
        margin-bottom: 2rem;
    }

    .pricing-hero h1 {
        font-size: 28px;
    }

    .pricing-hero p {
        font-size: 16px;
    }

    .account-type-title {
        font-size: 22px;
    }

    .account-type-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .account-type-card {
        flex-direction: row;
        flex-wrap: wrap;
        text-align: left;
        align-items: center;
        padding: 1.25rem;
    }

    .account-type-icon {
        margin-bottom: 0;
    }

    .account-type-name {
        font-size: 18px;
    }

    .account-type-desc {
        flex-basis: 100%;
    }

    .account-type-tag {
        margin-top: 0;
    }

    .pricing-panel-inner {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .pricing-panel-inner--wide {
        padding: 1.5rem 1rem;
    }

    .pricing-panel-title {
        font-size: 24px;
    }

    .free-forever-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-panel-note {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .pricing-page {
        margin: 0.9375rem auto;
        padding: 0 12px;
    }

    .pricing-hero h1 {
        font-size: 25px;
    }

    .addons-grid {
        grid-template-columns: 1fr;
    }

    .pricing-panel-inner {
        padding: 1.25rem;
    }

    .free-item {
        padding: 1rem 1.125rem;
    }

    .candidate-cta .btn-primary {
        display: block;
        width: 100%;
        padding: 0.875rem 1rem;
    }

    .addon-card--featured {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-page {
        margin: 0.625rem auto;
        padding: 0 10px;
    }

    .pricing-hero h1 {
        font-size: 23px;
    }

    .account-type-title {
        font-size: 20px;
    }

    .account-type-name {
        font-size: 17px;
    }

    .pricing-panel-title {
        font-size: 21px;
    }

    .addons-title {
        font-size: 20px;
    }

    .free-forever-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
