/*
 * Pricing page styles for the TalDav / WP Care portfolio website.
 */

.taldav-calculator-block,
.taldav-calculator-block * {
    box-sizing: border-box;
}

html.taldav-calculator-open {
    overflow: hidden;
}

.taldav-calculator-modal[hidden],
.taldav-calculator-discount[hidden] {
    display: none;
}

.taldav-calculator-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 99999;
}

.taldav-calculator-backdrop {
    background: rgba(4, 12, 24, 0.68);
    inset: 0;
    position: absolute;
}

.taldav-calculator-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(4, 12, 24, 0.3);
    color: #111827;
    max-height: calc(100vh - 48px);
    max-width: 760px;
    overflow: auto;
    padding: 32px;
    position: relative;
    width: min(100%, 760px);
}

.taldav-calculator-close {
    align-items: center;
    background: #0b9bdc;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 28px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 42px;
}

.taldav-calculator-header {
    padding-right: 52px;
}

.taldav-calculator-kicker {
    color: #0b9bdc;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.taldav-calculator-header h3 {
    font-size: 32px;
    line-height: 1.15;
    margin: 0 0 10px;
}

.taldav-calculator-header p {
    color: #5f6b7a;
    line-height: 1.55;
    margin: 0 0 22px;
}

.taldav-calculator-options {
    display: grid;
    gap: 12px;
}

.taldav-calculator-option {
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    gap: 14px;
    grid-template-columns: auto 1fr auto;
    padding: 16px;
}

.taldav-calculator-option.is-selected {
    border-color: #0b9bdc;
    box-shadow: 0 0 0 3px rgba(11, 155, 220, 0.12);
}

.taldav-calculator-option input {
    height: 20px;
    width: 20px;
}

.taldav-calculator-option strong {
    display: block;
    font-size: 16px;
    line-height: 1.35;
}

.taldav-calculator-option small {
    color: #6b7280;
    display: block;
    font-size: 14px;
    line-height: 1.45;
    margin-top: 2px;
}

.taldav-calculator-option b {
    color: #0b9bdc;
    font-size: 18px;
}

.taldav-calculator-discount,
.taldav-calculator-result {
    align-items: center;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding: 16px 18px;
}

.taldav-calculator-discount {
    background: #eef8fd;
    color: #0b3551;
}

.taldav-calculator-result {
    background: #07111f;
    color: #fff;
    margin-top: 10px;
}

.taldav-calculator-result span,
.taldav-calculator-discount span {
    color: inherit;
}

.taldav-calculator-result strong {
    font-size: 28px;
}

.taldav-calculator-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.taldav-calculator-primary {
    background: #0b9bdc;
    border: 0;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    padding: 16px 28px;
    text-align: center;
    text-decoration: none;
}

.taldav-calculator-primary:hover,
.taldav-calculator-primary:focus {
    background: #087fb5;
    color: #fff;
}

@media (max-width: 640px) {
    .taldav-calculator-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .taldav-calculator-dialog {
        max-height: calc(100vh - 24px);
        padding: 24px 18px;
    }

    .taldav-calculator-header h3 {
        font-size: 25px;
    }

    .taldav-calculator-option {
        grid-template-columns: auto 1fr;
    }

    .taldav-calculator-option b {
        grid-column: 2;
    }

    .taldav-calculator-discount,
    .taldav-calculator-result {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

.taldav-calculator-choice-group + .taldav-calculator-choice-group {
    margin-top: 20px;
}

.taldav-calculator-section-title {
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    margin: 0 0 12px;
}

/* Pricing page content blocks */

.pricing-accordion {
    margin-bottom: 18px;
    border: 1px solid #dce7f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(24, 43, 69, 0.07);
    overflow: hidden;
}

.pricing-accordion summary {
    padding: 25px 28px;
    color: #182b45;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.pricing-accordion summary:hover {
    background: #f5fbfe;
}

.pricing-accordion[open] {
    border-color: #0798df;
    box-shadow: 0 12px 34px rgba(7, 152, 223, 0.12);
}

.pricing-accordion[open] summary {
    border-bottom: 1px solid #e3edf4;
    background: #f5fbfe;
}

.pricing-accordion > :not(summary) {
    margin-right: 28px;
    margin-left: 28px;
}

.pricing-accordion > :last-child {
    margin-bottom: 28px;
}

.pricing-eyebrow {
    margin-bottom: 10px;
    color: #0798df;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wp-care-pricing-title {
    margin-bottom: 16px;
    color: #182b45;
    font-size: 38px;
    line-height: 1.2;
}

/* Pricing card note */
.pricing-accordion .plan-note {
    position: relative;
    margin-top: 24px;
    padding: 15px 18px 15px 46px;
    border: 1px solid rgba(9, 153, 220, 0.22);
    border-radius: 12px;
    background: rgba(9, 153, 220, 0.07);
    color: #44546a;
    font-size: 14px;
    line-height: 1.65;
}

.pricing-accordion .plan-note::before {
    content: "\f05a";
    position: absolute;
    top: 17px;
    left: 18px;
    color: #0798df;
    font-family: "Font Awesome 5 Free";
    font-size: 17px;
    font-weight: 900;
}

.pricing-accordion .plan-note p {
    margin: 0;
}

.pricing-accordion .plan-note strong {
    color: #172c49;
    font-weight: 700;
}

@media (max-width: 575px) {
    .pricing-accordion .plan-note {
        padding: 14px 15px 14px 42px;
        font-size: 13px;
    }

    .pricing-accordion .plan-note::before {
        left: 15px;
    }
}

/* Pricing plan lists */
.pricing-accordion ul.plan-list {
    display: grid !important;
    gap: 10px !important;
    margin: 18px 28px 28px !important;
    padding: 0 !important;
    list-style: none !important;
}

.pricing-accordion ul.plan-list > li {
    position: relative !important;
    margin: 0 !important;
    padding: 1px 0 1px 35px !important;
    list-style: none !important;
    color: #44546a;
    font-size: 16px;
    line-height: 1.55;
}

.pricing-accordion ul.plan-list > li::marker {
    content: "" !important;
}

/* Included: blue check */
.pricing-accordion ul.plan-list-included > li::before {
    content: "✓";
    position: absolute;
    top: 2px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: rgba(7, 152, 223, 0.12);
    color: #0798df;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* Excluded: neutral minus */
.pricing-accordion ul.plan-list-excluded > li::before {
    content: "−";
    position: absolute;
    top: 2px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #e9eef3;
    color: #667386;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.pricing-accordion ul.plan-list-excluded > li {
    color: #667386;
}

@media (max-width: 575px) {
    .pricing-accordion ul.plan-list {
        gap: 9px !important;
        margin: 16px 14px 24px !important;
    }

    .pricing-accordion ul.plan-list > li {
        padding-left: 31px !important;
        font-size: 15px;
    }

    .pricing-accordion ul.plan-list > li::before {
        width: 21px;
        height: 21px;
        font-size: 12px;
    }
}

.pricing-accordion .builder-link {
    margin-top: 24px;
}

.pricing-accordion .builder-link a {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 8px;
    background: #0798df;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.pricing-accordion .builder-link a:hover {
    background: #087fba;
    color: #ffffff;
    transform: translateY(-1px);
}
