/**
 * Pricing Taxes configurator overrides.
 * Reuses pricing-configurator classes; taxes-specific tweaks only.
 */

/* Progress steps: clickable to go back (active + completed steps) */
.taxes-configurator .progress-steps .step.active,
.taxes-configurator .progress-steps .step.completed {
    cursor: pointer;
}

/* Card plans */
.taxes-configurator .plan-card.popular {  
    border: 2px solid #DCE9F8;
    background: linear-gradient(188deg, #93C0F3 -66.67%, #FFF 31.6%);
}

.plan-card-header-title-block {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: nowrap;
    width: 100%;
}

.taxes-configurator .plan-card-header-widget {
    border-radius: 20px;
    background: #172554;
    color: #FFF;
    padding: .4rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6rem;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Step 2 top title (hidden by default in pricing-configurator) */
.configuration__top-text--visible {
    display: block !important;
}

/* Your Plan block */

.taxes-your-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.taxes-your-plan-header-left {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.taxes-your-plan-name,
.taxes-your-plan-label {
    color: #020617;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 3.2rem;
}

.taxes-your-plan-header-right {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    white-space: nowrap;
}

.taxes-your-plan-price-amount {
    font-size: 1.8rem;
    font-weight: 600;
    color: #020617;
    line-height: 2rem;
}

.taxes-your-plan-price-period {
    font-size: 1.6rem;
    font-weight: 400;
    color: #64748B;
    line-height: 2rem;
}

.taxes-your-plan-description-container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    width: 100%;
}

.taxes-your-plan-description {
    font-size: 1.4rem;
    color: #64748B;
    line-height: 1.4;
    display: inline;
    word-wrap: break-word;
}

.taxes-your-plan-description ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
}

.taxes-your-plan-description.taxes-description-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.taxes-read-more-btn {
    min-width: 8rem;
    text-align: right;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 2rem;
    color: #FF4E32;
    transition: text-decoration 0.2s ease;
    display: inline;
    vertical-align: baseline;
    margin-left: 0.4rem;
}

.taxes-read-more-btn:hover {
    text-decoration: underline;
}

.taxes-read-more-text {
    color: #FF4E32;
}

/* Mobile: start truncated */
@media screen and (max-width: 1023px) {
    .taxes-your-plan-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .taxes-your-plan-description:not(.taxes-description-truncated) {
        display: block;
        -webkit-line-clamp: none;
    }
}

/* Desktop: start expanded */
@media screen and (min-width: 1024px) {
    .taxes-your-plan-description {
        display: block;
    }
    
    .taxes-your-plan-description.taxes-description-truncated {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media screen and (max-width: 768px) {
    .taxes-your-plan-price-amount,
    .taxes-your-plan-name,
    .taxes-your-plan-label {
        font-size: 1.6rem;
        line-height: 2.4rem;
    }
}

.option-card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.option-price-main {
    color: #020617;
    text-align: right;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 100%;
    margin-bottom: 0.4rem;
}

.option-price-unit {
    color: #64748B;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 132%; 
}

/* Discount section */
.taxes-discount-section {
    margin-top: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.4rem;
    color: #020617;
    margin-bottom: 0.5rem;
}

.checkbox-label span:not(.checkbox-custom) {
    color: #020617;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2rem;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 2px;
    border: 1px solid #E2E8F0;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-checkmark {
    display: none;
    width: 12px;
    height: 9px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border: 1px solid #2563EB;
    background: #2563EB;
    border-radius: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom .checkbox-checkmark {
    display: block;
}

/* Active state for option-card-checkbox */
.option-card-checkbox.is-checked {
    background: #DCE9F8;
}

.summary-value.summary-value--subtotal,
.summary-value.summary-value--discount,
.summary-section-title.summary-section-title--subtotal, 
.summary-section-title.summary-section-title--discount {
    color: #020617;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: 'case' on, 'cpsp' on;
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 400;
    line-height: 2rem;
}

.summary-value.summary-value--discount,
.summary-section-title.summary-section-title--discount {
    color: #2563EB;
}

/* Plan row: label can wrap */
.taxes-configurator .summary-row .summary-label {
    word-break: break-word;
}


/* Step 3 placeholder */
.taxes-step3-placeholder {
    max-width: 640px;
    margin: 0 auto 2rem;
}

.taxes-step3-placeholder h2 {
    margin-bottom: 1rem;
    color: #020617;
}

/* Form */
.message_form__field_title {
    color: #020617;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 100%;
    margin-bottom: 1.4rem;
}

.message_form_wrap {
    display: flex;
    flex-direction: row;
    gap: 1.6rem;
}

.message_form__privacy_block p {
    margin-bottom: 1rem;
}

.option-card.option-card-checkbox.option-card-checkbox__form {
    padding: 1.2rem;
    border-radius: .6rem;
}

.option-card-checkbox__form.is-checked {
    background: #DCE9F8;
}

.option-card-checkbox__form:has(#taxes-first-tax-return:checked) {
    background: #DCE9F8;
}

/* Marital status tabs (Single / Married) */
.taxes-marital-tabs {
    display: flex;
    gap: 1.6rem;
    margin-bottom: 2.4rem;
}

.taxes-marital-tab {
    flex: 1;
    padding: 1.2rem;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    border: none;
    background: #FFF;
    color: #64748B;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    border-radius: 6px;
    border: 1px solid #E2E8F0; 
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.taxes-marital-tab:hover {
    background: #F1F5F9;
    color: #020617;
}

.taxes-marital-tab.active {
    background: #020617;
    color: #fff;
}

.taxes-marital-tab:first-child {
    border-right: 1px solid #E2E8F0;
}

.taxes-marital-tab.active + .taxes-marital-tab {
    border-right-color: transparent;
}

/* Second person block – hidden when Single */
.message_form__field_second-person.taxes-second-person-hidden {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .message_form_wrap {
        flex-direction: column;
    }
}

/* Summary box: same structure as main configurator (summary-box, summary-header, summary-content) */
.taxes-tabs-hidden {
    display: none !important;
}

/* Keep price visible for selected option-items (pricing-configurator hides it) */
.taxes-configurator .option-item .option-price,
.taxes-configurator .option-item.selected .option-price {
    color: #020617 !important;
    font-size: 1.4rem !important;
    line-height: 100% !important;
}

.taxes-configurator .option-item.selected .option-price::before {
    content: none !important;
}

/* Other Documents info-only block */
.taxes-configurator .info-only-description {
    font-size: 1.4rem;
    color: #64748B;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.taxes-configurator .info-only-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: #020617;
    margin: 0 0 1rem 0;
}

.taxes-configurator .info-only-section {
    margin-top: 0;
}

.taxes-configurator .info-only-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .taxes-configurator .info-only-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .taxes-configurator .info-only-grid {
        grid-template-columns: 1fr;
    }
}

.taxes-configurator .info-only-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.taxes-configurator .info-only-item-name {
    font-size: 1.4rem;
    color: #020617;
    font-weight: 400;
    line-height: 1.4;
    flex: 1;
}

.taxes-configurator .info-only-item-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #020617;
    line-height: 100%;
    white-space: nowrap;
    flex-shrink: 0;
}

.taxes-configurator .btn:disabled,
.taxes-configurator .taxes-step1-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.customize-section:not(:last-child) {
    margin-bottom: 2rem;
}

.taxes-configurator .option-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

@media screen and (min-width: 1024px) {
    .taxes-configurator .option-list-ssb .option-item {
        display: flex;
        flex: 0 1 32.2%;
        flex-wrap: wrap;
    }

    .option-list.option-list-ssb {
        display: flex;
        flex-wrap: wrap;
    }
}


/* Sidebar */
.taxes-configurator .taxes-discount-row,
.taxes-configurator .summary-row__taxes {
    margin-bottom: 0;
}

.taxes-configurator .taxes-discount-row {
    margin-top: -0.8rem;
}

.taxes-configurator .total-row {
    margin-top: 0rem;
}

.taxes-configurator .total-value-subtext {
    display: flex;
    justify-content: flex-start;
    margin-top: 0rem;
    margin-bottom: 0rem;
}

.taxes-configurator .checkout-content {
    width: 100% !important;
}

.taxes-configurator .checkout-title {   
    text-align: center;
}


@media screen and (max-width: 1024px) {
    .taxes-configurator .mobile_sidebar .total-row,
    .taxes-configurator .mobile_sidebar .total-value-block {
        margin-bottom: 1.2rem;
    }
    .taxes-configurator .mobile_sidebar .separator-line {
        margin: 2rem 0;
    }
    .taxes-configurator .progress-steps {
        gap: 1rem;
    }
    .taxes-configurator .option-card.option-card-checkbox {
        margin-top: 2rem;
    }
    /* Показывать описание только когда секция раскрыта (есть класс .active на секции) */
    .taxes-option-section:not(.active) .info-only-description {
        display: none;
    }
    .taxes-option-section.active .info-only-description {
        display: block;
    }
}

/* Mobile: Discount section always open, no collapse */
@media screen and (max-width: 1023px) {
    .taxes-configurator .taxes-discount-section .option-card,
    .taxes-configurator .taxes-discount-section .option-card-checkbox {
        display: block !important;
    }
    .taxes-configurator .taxes-discount-section .section-header__mob-btn {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .option-card-right  {
        min-width: 10rem;
    }
    .taxes-configurator .step.active .step-text {
        font-size: 1.6rem;
    }
}