/**
 * Block Name: Calcolatore TFS
 * Description: Styling for the TFS Calculator block.
 *
 * The block uses a custom flexbox layout to avoid Bootstrap dependencies.
 * All classes are scoped with 'tfs-' prefix to prevent conflicts.
 */

/* definizione var colori tfs */

:root {
    --tfs-yellow: #E8AE36;
    --tfs-yellow-light: #FEF4E7;
    --tfs-blue: #0A7398;
    --tfs-gray: #929393;
    --tfs-gray-light: #EDF3F6;
    --tfs-white: #FFFFFF;
    --tfs-black: #252727;
    --tfs-black-40: #25272766;
}

.wpcf7-not-valid-tip {
    position: absolute;
    bottom: 0.25rem;
    left: 2rem;
    font-size: 0.8125rem;
    right: 0;
}
.wpcf7-spinner{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: auto !important;
}

.calcolatore-tfs .wpcf7-submit{
    display: none !important;
}

#btn-step-0-next{
    width: 100% !important;
}

#btn-step-0-next:disabled{

    cursor: not-allowed !important;
}

#btn-step-1-next:disabled{
    cursor: not-allowed !important;
}

/* Main Container */
.calcolatore-tfs {
    background-color: #fff;
    width: 100%;
    margin-bottom: 2rem;
    color: var(--tfs-black);
}

.bc-bg-yellow {
    padding: 0.1px 0;
}

input[type="date"] {
    padding-right: 0;
    padding-left: 0;
}

.tfs-calculator-wrapper {
    display: block;
    width: 100%;
    /* Removed max-width for full width */
    margin: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    border-left: 16px solid var(--tfs-yellow);
    min-height: 31.25rem;
    padding: 6rem 3rem;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.tfs-calculator-wrapper.step-3-active {
    background-color: var(--tfs-yellow-light);
}

/* Steps */
.tfs-step {
    animation: fadeIn 0.3s ease-in-out;
    max-width: 42.5rem;
    margin: 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headers */
.tfs-header {
    margin-bottom: 3rem;
    text-align: left;
    /* Aligned Left */
}

.tfs-header-larger {
    margin-bottom: 4rem;
}

.tfs-title,
.tfs-title-small {
    font-weight: 700;
    color: var(--tfs-black);
    margin: 0;
    line-height: 1.2;
}

.tfs-title {
    font-size: clamp(1.5rem, 2rem, 2.5rem);
}

.tfs-title-small {
    font-size: clamp(1.25rem, 1.625rem, 2rem);
}

.tfs-title-main {
    font-size: clamp(1.5rem, 1.85rem, 2.2rem);
    font-weight: 700;
    color: var(--tfs-blue);
    margin: 0;
    line-height: 1.2;
}

/* Form Fields */
.tfs-field-group {
    margin-bottom: 3rem;
    text-align: left;
    /* Aligned Left */
}

.tfs-label,
.tfs-header .grid-container label {
    display: block;
    font-weight: 700;
    font-size: clamp(0.9375rem, 1.09375rem, 1.25rem);
    margin-bottom: 1rem;
}

.tfs-helper-text {
    font-size: clamp(0.8125rem, 0.90625rem, 1rem);
    color: var(--tfs-black);
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    line-height: 1.4;
    max-width: 50rem;
    margin-left: 0;
    /* Aligned Left */
    margin-right: auto;
}

/* Inputs */
.tfs-input-row-centered {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* Ensure same height */
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
}

.tfs-input-wrapper,
.tfs-header .wpcf7-form-control-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 1rem 2rem;
    background-color: var(--tfs-gray-light);
}

.tfs-input-wrapper {
    flex: 1;
    /* Take available space */
}

/* CF7 wrapper specific overrides */
.tfs-header .wpcf7-form-control-wrap {
    margin-top: 0.5rem;
}

/* Specific fix for the wrapper inside step 1 if needed, but generic is fine */
.tfs-input-row-centered .tfs-input-wrapper {
    min-width: 0;
    /* Prevent flex overflow */
}

.tfs-input-row-centered .tfs-btn-nav {
    flex: 1;
    width: auto;
}

.tfs-input,
.tfs-header .wpcf7-form-control.wpcf7-text,
.tfs-header .wpcf7-form-control.wpcf7-email,
.tfs-header .wpcf7-form-control.wpcf7-number {
    background-color: transparent;
    width: 100% !important;
    /* Force full width, override JS */
    font-family: 'Proxima Nova', sans-serif;
    border: none;
    font-size: clamp(0.9375rem, 1.09375rem, 1.25rem);
    font-weight: 500;
    color: var(--tfs-black);
    outline: none;
    padding: 0;
}

#tfs-total-amount {
    text-align: left;
    /* Aligned Left */
}

.tfs-currency {
    font-weight: 500;
    font-family: 'Proxima Nova', sans-serif;
    color: var(--tfs-black);
    pointer-events: none;
    margin-left: 0.25rem;
    font-size: clamp(0.9375rem, 1.09375rem, 1.25rem);
}

/* Radio Buttons */
.tfs-radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
    /* Aligned Left */
}

.tfs-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: clamp(0.8125rem, 0.90625rem, 1rem);
    color: var(--tfs-black);
}

.tfs-radio-label input {
    display: none;
}

.tfs-custom-radio {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid rgba(2, 9, 9, 0.15);
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    background-color: rgba(2, 9, 9, 0.05);
    transition: all 0.2s;
}

.tfs-radio-label input:checked+.tfs-custom-radio {
    background-color: var(--tfs-blue);
    border-color: var(--tfs-blue);
}

.tfs-radio-label input:checked+.tfs-custom-radio::after {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="11" viewBox="0 0 14 11" fill="none"><path d="M4.57181 8.05481L1.37339 4.85639L0 6.22978L4.57181 10.8016L14 1.37339L12.6266 0L4.57181 8.05481Z" fill="white"/></svg>');
    position: absolute;
    color: white;
    font-size: 0.875rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Navigation Buttons  */
.tfs-nav-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 2rem;
}

.tfs-btn-nav,
.tfs-header .wpcf7-submit {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 500;
    /* Semibold */
    font-size: clamp(0.9375rem, 1rem, 1.25rem);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: 1px solid transparent;
    font-family: 'Proxima Nova', sans-serif;

    /* Ensure nice centering */
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfs-btn-nav {
    flex: 1;
}

/* CF7 submit specific overrides */
.tfs-header .wpcf7-submit {
    width: 100%;
    margin-top: 2rem;
}

.tfs-btn-nav.primary,
.tfs-header .wpcf7-submit {
    background-color: var(--tfs-blue);
    color: white;
}

.tfs-btn-nav.primary:hover,
.tfs-header .wpcf7-submit:hover {
    background-color: #086180;
}

.tfs-btn-nav.secondary {
    background-color: transparent;
    color: var(--tfs-blue);
    border-color: var(--tfs-blue);
}

.tfs-btn-nav.secondary:hover {
    background-color: var(--tfs-gray-light);
}


/* Step 2: Installments Table */

.tfs-installments-table {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 100%;
    /* Full width */
    margin: 0;
    /* Aligned Left */
}

.tfs-table-header {
    display: none;
}

.tfs-installment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.tfs-installment-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.tfs-installment-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tfs-installment-label {
    display: block;
    font-weight: 700;
    font-size: clamp(0.9375rem, 1.09375rem, 1.25rem);
    color: var(--tfs-black);
    margin: 0;
}

.tfs-installment-row .tfs-input-wrapper,
.tfs-installment-row .tfs-input-with-icon {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.tfs-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--tfs-gray-light);
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
}

.tfs-input-with-icon input {
    width: auto;
    border: none;
    background-color: transparent;
    font-size: clamp(0.9375rem, 1.09375rem, 1.25rem);
    font-weight: 500;
    color: var(--tfs-black);
}

.tfs-input-with-icon .icon-calendar {
    font-size: clamp(0.9375rem, 1.09375rem, 1.25rem);
    display: flex !important;
    margin-right: 1rem;
    align-items: center;
    opacity: 0.6;
}

.tfs-input-with-icon .icon-calendar svg {
    transform: translateY(-2px);
}

.tfs-date-input::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.tfs-btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: opacity 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfs-btn-add {
    margin-top: 1rem;
    background: none;
    border: none;
    color: var(--tfs-blue);
    font-weight: 600;
    font-size: clamp(0.875rem, 1rem, 1.125rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin-left: 0;
    /* Aligned Left */
    margin-right: auto;
}

.plus-icon {
    font-size: clamp(1.25rem, 1.5625rem, 1.875rem);
    line-height: 1;
}

/* Step 3: Results */
.tfs-result-card {
    background-color: var(--tfs-yellow-light);
    border: 1px solid var(--tfs-blue);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 4rem;
    max-width: 100%;
    /* Full width */
    margin-left: 0;
    /* Aligned Left */
    margin-right: 0;
    position: relative;
}

.tfs-card-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.5px solid var(--tfs-black-40);
}

.tfs-card-icon {
    color: var(--tfs-blue);
    background-color: var(--tfs-blue);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
}

.tfs-card-icon svg {
    stroke: white;
    fill: white;
}

.tfs-card-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.tfs-card-label {
    font-size: clamp(0.9375rem, 1.09375rem, 1.25rem);
    color: var(--tfs-black);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.tfs-card-amount {
    font-size: clamp(1.875rem, 2.625rem, 3.375rem);
    font-weight: 600;
    color: var(--tfs-black);
    line-height: 0.9;
    font-family: 'Proxima Nova', sans-serif;
}

.tfs-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tfs-taeg-label {
    font-weight: 700;
    color: var(--tfs-blue);
    font-size: clamp(0.9375rem, 1.09375rem, 1.25rem);
}

.tfs-taeg-value {
    font-weight: 700;
    color: var(--tfs-blue);
    font-size: clamp(0.9375rem, 1.09375rem, 1.25rem);
}

/* Breakdown List */
.tfs-breakdown-container {
    max-width: 100%;
    /* Full width */
    margin: 0;
}

.tfs-breakdown-list {
    margin: auto;
    max-width: 25rem;
}

.tfs-email-message {
    margin-bottom: 1.25rem;
    text-align: left;
    color: var(--tfs-black);
    font-size: 0.95em;
}

.tfs-email-message p {
    margin: 0;
}

.tfs-breakdown-item .tfs-email-message {
    margin-top: 0;
    margin-bottom: 0;
}

.tfs-proceed-message {
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: left;
    color: var(--tfs-blue);
    font-size: clamp(1rem, 1.25rem, 1.5rem);
    font-weight: 700;
    width: 100%;
}

.tfs-proceed-message p {
    margin: 0;
    margin-bottom: 1.5rem;
}

.tfs-proceed-message .tfs-btn-nav {
    margin-top: 0;
}

#btn-consulente {
    width: 100%;
}

.tfs-breakdown-item {
    margin-bottom: 2rem;
}

.tfs-breakdown-item:last-child {
    margin-bottom: 4rem;
}

.tfs-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.item-title {
    font-weight: 700;
    color: var(--tfs-blue);
    font-size: clamp(0.9375rem, 1.09375rem, 1.25rem);
}

.item-date {
    font-weight: 700;
    color: var(--tfs-blue);
    font-size: clamp(0.9375rem, 1.09375rem, 1.25rem);
}

.tfs-item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 0.5px solid var(--tfs-black-40);
    font-size: clamp(0.8125rem, 0.90625rem, 1rem);
    color: var(--tfs-black);
}

.tfs-item-row:last-child {
    border-bottom: none;
}

.fw-bold {
    font-weight: 700;
}

/* Footer Notes */
.tfs-footer-notes {
    margin-top: 3rem;
    text-align: left;
    /* Aligned Left */
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.tfs-footer-notes h4 {
    font-size: clamp(1rem, 1.25rem, 1.5rem);
    font-weight: 700;
    color: var(--tfs-black);
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: normal;
}

.tfs-footer-notes p {
    font-size: clamp(0.8125rem, 0.90625rem, 1rem);
    color: var(--tfs-black);
    opacity: 0.7;
    line-height: 1.3;
}


/* Responsive */
/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Container Spacing */
    .tfs-calculator-wrapper {
        padding: 4.5rem 2.5rem;
    }

    .tfs-header {
        margin-bottom: 2.5rem;
    }

    .tfs-header-larger {
        margin-bottom: 3.5rem;
    }

    .tfs-field-group {
        margin-bottom: 2.5rem;
    }

    /* Typography - Body Text */
    .tfs-label,
    .tfs-header .grid-container label,
    .tfs-installment-label {
        margin-bottom: 0.875rem;
    }

    .tfs-helper-text {
        margin-bottom: 1.75rem;
    }

    .tfs-btn-nav,
    .tfs-header .wpcf7-submit {
        padding: 0.875rem 1.75rem;
    }

    /* Typography - Special Elements */
    .tfs-proceed-message {
        margin-top: 2.5rem;
        margin-bottom: 2.5rem;
    }

    .tfs-proceed-message p {
        margin-bottom: 1.25rem;
    }

    .tfs-email-message {
        margin-bottom: 1.125rem;
    }

    .tfs-footer-notes {
        margin-top: 2.5rem;
    }

    /* Component Spacing */
    .tfs-input-row-centered {
        gap: 1.75rem;
    }

    .tfs-input-wrapper,
    .tfs-header .wpcf7-form-control-wrap,
    .tfs-input-with-icon {
        padding: 0.875rem 1.75rem;
    }

    .tfs-radio-group {
        gap: 1.75rem;
    }

    .tfs-nav-actions {
        gap: 1.75rem;
    }

    /* Card & Result Spacing */
    .tfs-result-card {
        padding: 1.75rem;
        margin-bottom: 3.5rem;
    }

    .tfs-card-header {
        gap: 1.25rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .tfs-installments-table {
        gap: 1.75rem;
    }

    .tfs-installment-row {
        gap: 1.75rem;
    }

    /* Breakdown Items */
    .tfs-breakdown-item {
        margin-bottom: 1.75rem;
    }

    .tfs-breakdown-item:last-child {
        margin-bottom: 3.5rem;
    }

    .tfs-item-header {
        margin-bottom: 0.625rem;
    }


    /* Grid & Layout Spacing */
    .grid-container {
        row-gap: 1.75rem;
        column-gap: 1.75rem;
        margin-top: 3.5rem;
    }
}

/* Mobile: < 768px */
@media (max-width: 767px) {
    /* Container Spacing */
    .tfs-calculator-wrapper {
        padding: 3rem 1.5rem;
        border-left: 8px solid var(--tfs-yellow);
    }

    .tfs-header {
        margin-bottom: 2rem;
    }

    .tfs-header-larger {
        margin-bottom: 3rem;
    }

    .tfs-field-group {
        margin-bottom: 2rem;
    }

    /* Typography - Body Text */
    .tfs-label,
    .tfs-header .grid-container label,
    .tfs-installment-label {
        margin-bottom: 0.75rem;
    }

    .tfs-helper-text {
        margin-bottom: 1rem;
    }

    .tfs-btn-nav,
    .tfs-header .wpcf7-submit {
        padding: 0.75rem 1.5rem;
    }

    .tfs-proceed-message {
        font-size: 1.2rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .tfs-proceed-message p {
        margin-bottom: 1rem;
    }

    .tfs-email-message {
        margin-bottom: 1rem;
    }

    .tfs-footer-notes {
        margin-top: 2rem;
    }

    .tfs-footer-notes p {
        font-size: 0.875rem;
    }

    /* Component Spacing */
    .tfs-input-row-centered {
        flex-direction: column;
        gap: 1rem;
    }

    .tfs-input-wrapper,
    .tfs-header .wpcf7-form-control-wrap,
    .tfs-input-with-icon {
        padding: 0.75rem 1.5rem;
    }

    .tfs-radio-group {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        /* Aligned Left */
    }

    /*
    .tfs-input-row-centered {
        flex-direction: column;
        align-items: flex-start;
        
    }
*/
    .tfs-nav-actions {
        gap: 1rem;
        flex-direction: column;
    }

    /* Card & Result Spacing */
    .tfs-result-card {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .tfs-card-header {
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        align-items: center;
    }

    .tfs-installments-table {
        gap: 1.5rem;
    }

    .tfs-installment-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .tfs-btn-delete {
        position: absolute;
        top: 1.5rem;
        right: 1.2rem;
    }

    /* Breakdown Items */
    .tfs-breakdown-item {
        margin-bottom: 1.5rem;
    }

    .tfs-breakdown-item:last-child {
        margin-bottom: 3rem;
    }

    .tfs-item-header {
        margin-bottom: 0.5625rem;
    }

    /* Grid & Layout Spacing */
    .grid-container,
    .tfs-header .grid-container {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 1rem;
        margin-top: 3rem;
    }
    
    .tfs-header .wpcf7-form-control-wrap {
        margin-top: 0.5rem;
    }

    .tfs-card-icon {
        width: auto;
        height: auto;
        aspect-ratio: 1/1;
        padding: 1rem;
        /* order: 2; */
    }

    .tfs-card-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .tfs-card-header {
        align-items: center;
    }
}

/* Small Mobile: < 520px */
@media (max-width: 520px) {
    /* Container Spacing */
    .tfs-calculator-wrapper {
        padding: 2rem 1rem;
    }

    .tfs-header {
        margin-bottom: 1.5rem;
    }

    .tfs-header-larger {
        margin-bottom: 2.5rem;
    }

    .tfs-field-group {
        margin-bottom: 1.5rem;
    }

    /* Typography - Body Text */
    .tfs-label,
    .tfs-header .grid-container label,
    .tfs-installment-label {
        margin-bottom: 0.625rem;
    }

    .tfs-helper-text {
        margin-bottom: 0.875rem;
    }

    .tfs-btn-nav,
    .tfs-header .wpcf7-submit {
        padding: 0.625rem 1.25rem;
    }

    /* Typography - Special Elements */
    .tfs-proceed-message {
        margin-top: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .tfs-proceed-message p {
        margin-bottom: 0.875rem;
    }

    .tfs-email-message {
        margin-bottom: 0.875rem;
    }

    .tfs-footer-notes {
        margin-top: 1.75rem;
    }

    /* Component Spacing */
    .tfs-input-row-centered {
        gap: 0.875rem;
    }

    .tfs-input-wrapper,
    .tfs-header .wpcf7-form-control-wrap,
    .tfs-input-with-icon {
        padding: 0.625rem 1.25rem;
    }

    .tfs-radio-group {
        gap: 0.875rem;
    }

    .tfs-nav-actions {
        gap: 0.875rem;
    }

    /* Card & Result Spacing */
    .tfs-result-card {
        padding: 1.25rem;
        margin-bottom: 2.5rem;
    }

    .tfs-card-header {
        gap: 0.875rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.875rem;
        flex-direction: column;
        align-items: start;
    }

    .tfs-card-icon {
        order: 0;
    }

    .tfs-installments-table {
        gap: 1.25rem;
    }

    .tfs-installment-row {
        gap: 1.25rem;
    }

    /* Breakdown Items */
    .tfs-breakdown-item {
        margin-bottom: 1.25rem;
    }

    .tfs-breakdown-item:last-child {
        margin-bottom: 2.5rem;
    }

    .tfs-item-header {
        margin-bottom: 0.5rem;
    }

    /* Grid & Layout Spacing */
    .grid-container {
        row-gap: 0.875rem;
        margin-top: 2.5rem;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    row-gap: 2rem;
    column-gap: 2rem;  
    margin-top: 4rem;
}

.policies{
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* CF7 labels override margin-bottom */
.tfs-header .grid-container label {
    margin-bottom: 0;
}

/* Remove background styling from acceptance field wrappers */
.tfs-header .wpcf7-form-control-wrap .wpcf7-acceptance {
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.tfs-header .wpcf7-form-control-wrap:has(.wpcf7-acceptance) {
    background-color: transparent;
    padding: 0;
    margin-top: 0;
}

.tfs-header .wpcf7-form input,
.tfs-header .wpcf7-form select {
    margin-bottom: 0;
}

.tfs-header .wpcf7-acceptance .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 1rem;
    color: var(--tfs-black);
    line-height: 1.5;
    margin: 0;
}

.tfs-header .wpcf7-acceptance .wpcf7-list-item input[type="checkbox"] {
    display: none;
}

.tfs-header .wpcf7-acceptance .wpcf7-list-item-label {
    padding-left: 2rem;
}

.tfs-header .wpcf7-acceptance .wpcf7-list-item-label::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid rgba(2, 9, 9, 0.15);
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 0.125rem;
    background-color: rgba(2, 9, 9, 0.05);
    transition: all 0.2s;
}

.tfs-header .wpcf7-acceptance .wpcf7-list-item input[type="checkbox"]:checked ~ .wpcf7-list-item-label::before {
    background-color: var(--tfs-blue);
    border-color: var(--tfs-blue);
}

.tfs-header .wpcf7-acceptance .wpcf7-list-item input[type="checkbox"]:checked ~ .wpcf7-list-item-label::after {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="11" viewBox="0 0 14 11" fill="none"><path d="M4.57181 8.05481L1.37339 4.85639L0 6.22978L4.57181 10.8016L14 1.37339L12.6266 0L4.57181 8.05481Z" fill="white"/></svg>');
    position: absolute;
    left: 0.1875rem;
    top: 0;
}



#tfs-list.wp-block-list li a {
    text-decoration: none;
}

#tfs-list.wp-block-list li a:hover {
    text-decoration: underline;
}

h5 {
    margin-bottom: 0.5rem;
}

h5.blue-color,
span.blue-color {
    color: var(--tfs-blue);
}

#tfs-list.wp-block-list {
    list-style: none;
    padding-left: 0;
}

#tfs-list.wp-block-list li {
    display: block;
    margin-bottom: 1.25rem;
    padding-left: 0;
}

#tfs-list.wp-block-list li::before {
    background-color: var(--bs-yellow);
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    vertical-align: center;
}

#tfs-list.wp-block-list li:nth-child(1)::before {
    content: '1';
}

#tfs-list.wp-block-list li:nth-child(2)::before {
    content: '2';
}

#tfs-list.wp-block-list li:nth-child(3)::before {
    content: '3';
}

#tfs-list.wp-block-list li:nth-child(4)::before {
    content: '4';
}

#tfs-list.wp-block-list li:nth-child(5)::before {
    content: '5';
}

#tfs-list.wp-block-list li:nth-child(6)::before {
    content: '6';
}

#tfs-list.wp-block-list li:nth-child(7)::before {
    content: '7';
}

#tfs-list.wp-block-list li:nth-child(8)::before {
    content: '8';
}

#tfs-list.wp-block-list li:nth-child(9)::before {
    content: '9';
}

#tfs-list.wp-block-list li:nth-child(10)::before {
    content: '10';
}

.wp-block-columns.is-layout-flex.wp-container-core-columns-is-layout-9d6595d7.wp-block-columns-is-layout-flex {
    gap: 0;
}

h2.wp-block-heading.heading-2-margin-top-medium{
    margin-top: 5rem;
    margin-bottom: 2rem;
}

h2.wp-block-heading.bc-title.yellow{
    margin-top: 7.25rem;
    margin-bottom: 2rem;
}   

#tfs-list.wp-block-list{
    margin-top: 2rem;
}

.tfs-calculator-wrapper.tfs-wizard-mode{
    margin-top: 11.25rem;
}

/* Checkbox styling for installment rows - matching CF7 style */

.tfs-installment-checkbox label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 1rem;
    color: var(--tfs-black);
    line-height: 1.5;
    margin: 0;
}

.tfs-installment-checkbox input[type="checkbox"] {
    display: none;
}

.tfs-checkbox-label-text {
    padding-left: 2rem;
    position: relative;
}

.tfs-checkbox-label-text::before {
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid rgba(2, 9, 9, 0.15);
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: 0.125rem;
    background-color: rgba(2, 9, 9, 0.05);
    transition: all 0.2s;
}

.tfs-installment-checkbox input[type="checkbox"]:checked ~ .tfs-checkbox-label-text::before {
    background-color: var(--tfs-blue);
    border-color: var(--tfs-blue);
}

.tfs-installment-checkbox input[type="checkbox"]:checked ~ .tfs-checkbox-label-text::after {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="11" viewBox="0 0 14 11" fill="none"><path d="M4.57181 8.05481L1.37339 4.85639L0 6.22978L4.57181 10.8016L14 1.37339L12.6266 0L4.57181 8.05481Z" fill="white"/></svg>');
    position: absolute;
    left: 0.1875rem;
    top: 0.125rem;
}

