.calculator-form .form-title {
    padding: 32px 0 24px 0;
}

.calculator-form .form-title h1 {
    margin-bottom: 0;
}

.calculator-form .webform-wrapper .webforms-view {
    padding: 8px 16px 16px 16px;
}

.seller-netsheet-form .webform-wrapper .webforms-view {
    padding: 8px 0 16px 0;
}

.calculator-form .form-item-mobile-home {
    display: flex;
    align-items: center;
    gap: 8px;
}

.webform-wrapper .form-field {
    position: relative;
}

.error {
    position: absolute;
    margin-top: 6px;
    left: 0;
    bottom: -53px;
    background: #fff;
    color: #000;
    padding: 6px 10px 6px 32px;
    border-radius: 4px;
    font-size: 0.875rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 1px solid #ccc;
    z-index: 10;
    min-width: 180px;
}

.error.rc {
    bottom: -37px;
}

.error::before {
    content: "⚠️";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #e67e00;
    /* orange warning color */
}

.error::after {
    content: "";
    position: absolute;
    top: -12px;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.15));
}

.results-wrapper {
    max-width: 564px !important;
    padding: 24px 16px !important;
    padding-bottom: 40px !important;
}

.seller-netsheet-form .results-wrapper {
    padding: 24px 0 !important;
    max-width: 500px !important;
    margin: 0;
    @media (max-width: 991px) {
        margin: auto;
    }
}

.calculator-results {
    padding: 24px !important;
    border-radius: 4px;
    background-color: #fff;
}

.calculator-results h4 {
    margin-bottom: 24px;
}

.calculator-results hr {
    border: none;
    border-bottom: 1px dashed #000;
    opacity: 0.5;
}

.calculator-results hr.dark {
    border-bottom: 1px solid #000;
    opacity: 1;
}

.calculator-results .result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calculator-results .result-label,
.calculator-results .result-value {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    color: #494A51;
}

.calculator-results  span:nth-child(2) {
    text-align: right;
}

.calculator-results .result-row.total .result-label,
.calculator-results .result-row.total span {
    font-weight: 800;
}

.calculator-disclaimer {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    color: #000;
    padding-bottom: 72px !important;
}

.calculator-disclaimer p:last-child {
    margin-bottom: 0;
}

.seller-netsheet-form .webform-wrapper {
    flex-direction: row;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.scenarios-grid {
    display: grid;
    gap: 1rem;

    /* space between scenarios */
    @media (max-width: 991px) {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
}

.scenarios-grid.count-1 {
    grid-template-columns: 1fr;
    width: 500px;
}

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

.scenarios-grid.container.count-2.has-add-scenario {
    padding-right: 140px;
    @media (max-width: 991px) {
        padding-right: 0;
    }
}

.scenarios-grid.count-3 {
    grid-template-columns: repeat(3, 1fr);
}

.seller-netsheet-form .scenario-block {
    width: 100%;
    /* max-width: 375px;
    margin-right: 30px; */
}

.seller-netsheet-form .seller-results {
    display: flex;
    position: relative;

    @media (max-width: 991px) {
        flex-direction: column;
    }
}

.btn-calcan {
    display: flex;
    align-items: center;
    justify-content: center;
    .btn {
        margin-left: 0;
    }
    @media (max-width: 500px) {
        .btn {
            min-width: 120px;
            margin-left: 0;
        }
    }
}

.btn-calcan .btn-cancel {
    margin-top: 16px;
}

.seller-netsheet-form .calculator-results .results-header {
    background-color: #007ab9;
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin: -24px;
    margin-bottom: 24px;
    padding: 8px 20px;
    align-items: center;
}

.seller-netsheet-form .calculator-results .results-header i {
    cursor: pointer;
}

.seller-netsheet-form .calculator-results .results-header i.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}
.seller-netsheet-form .seller-results .add-scenario-btn {
    padding: 0;
    width: max-content;
    min-width: auto;
    color: #fff;
}

.seller-netsheet-form .seller-results .add-scenario-btn:hover {
    color: #007ab9;
    border: 1px solid #007ab9;
}

.seller-netsheet-form .seller-results .add-scenario-btn .btn__label {
    padding: 12px;
}

.seller-netsheet-form .seller-results .form-actions {
    order: 2;
    position: absolute;
    right: -132px;
    top: 24px;

    @media (max-width: 991px) {
        position: relative;
        right: auto;
        top: auto;
        margin-bottom: 30px;
    }
}

.seller-netsheet-form .seller-results .calculator-btn {
    gap: 16px;
}

.seller-netsheet-form .seller-results .calculator-btn .btn, .seller-netsheet-btn-container .btn {
    min-width: auto !important;
    width: 45% !important;
    margin: 0;
}

.seller-netsheet-form .miscellaneous-wrapper .misc-row {
    display: flex;
    gap: 15px;
}

.seller-netsheet-form .miscellaneous-wrapper .form-type-select,
.seller-netsheet-form .miscellaneous-wrapper .form-item-type {
    width: calc(100% - 113px);
    margin-top: 0;
}

.seller-netsheet-form .miscellaneous-wrapper .form-item-amount,
.seller-netsheet-form .miscellaneous-wrapper .form-type-number {
    width: 25%;
    margin-top: 0;
}

.seller-netsheet-form .commission-wrapper {
    display: flex;
    gap: 15px;
}

.seller-netsheet-form .form-item-realtor-commission {
    width: calc(100% - 122px);
    margin: 0;
}

.seller-netsheet-form #edit-commission-type {
    width: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.seller-netsheet-form #edit-commission-type .form-item{
    margin: 0;
}

/* Hide default radio */
.seller-netsheet-form #edit-commission-type input[type="radio"] {
    display: none;
}

/* Style the labels as toggle buttons */
.seller-netsheet-form #edit-commission-type label {
    display: inline-block;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #444;
    transition: all 0.2s ease;
    width: 50px;
    text-align: center;
}

/* Left button rounded left side */
.seller-netsheet-form #edit-commission-type .form-type-radio:first-child label {
    border-radius: 8px 0 0 8px;
}

/* Right button rounded right side */
.seller-netsheet-form #edit-commission-type .form-type-radio:last-child label {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

/* Selected */
.seller-netsheet-form #edit-commission-type input[type="radio"]:checked+label {
    background: #007ab9;
    color: #fff;
    border-color: #007ab9;
}

.seller-netsheet-form .form-item-commission-type .form-radio {
    width: 20px;
}

.seller-netsheet-form #edit-add-note-toggle {
    display: none;
}

.seller-netsheet-form .toggle input[type="checkbox"] {
    height: 23px;
    width: 23px;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.seller-netsheet-form .toggle .option {
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    user-select: none;
    display: inline-block;
}
.seller-netsheet-form .toggle input[type="checkbox"]:checked + .option {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.seller-netsheet-form .toggle {
    margin: 0;
}

.seller-netsheet-form .toggle label,
.seller-netsheet-form .toggle button {
    cursor: pointer;
    color: #006ba0;
    font-weight: 600 !important;
}

.seller-netsheet-form .toggle button {
    padding: 0;
    width: auto;
    min-width: auto;
    height: auto;
}

.seller-netsheet-form .toggle button,
.seller-netsheet-form .toggle button:active {
    border: none;
}

.calculator-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    flex-wrap: wrap;
    flex-direction: row;

    @media (min-width: 550px) {
        gap: 8px;
    }
}

.seller-netsheet-btn-container {
    margin-top: 8px ;
    margin-bottom: 32px;
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
    .btn {
        width: fit-content !important;
    }
}

.calculator-btn .btn {
    width: auto;
    min-width: auto;
    padding: 0 16px;
    margin: 0;
}

.calculator-btn .btn-primary a:hover {
    color: #007ab9 !important;
}

.calculator-btn .btn__label {
    padding: 0;
}

.calculator-btn .email-form {
    width: 100%;
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-direction: row;
    align-items: flex-start;
    flex-basis: 100%;
    width: 100%;
    justify-content: center;
}

.calculator-btn .email-form div {
    gap: 8px;
}

.calculator-btn .email-form input {
    width: 217px;
    height: 40px;
}

.calculator-btn .email-form button {
    padding: 0px 14px;
    margin: 0;
    width: 160px !important;
    min-width: auto;
}

.calculator-btn .email-form p {
    margin-bottom: 0px;
    color: #E40000;
}

.error-message {
    color: red;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (max-width: 600px) {

    .calculator-btn .email-form,
    .calculator-btn {
        flex-wrap: wrap;
        gap: 12px;
    }

    .calculator-btn .email-form {
        flex-direction: column;
        align-items: center;
    }

    .calculator-btn .email-form div,
    .calculator-btn .email-form input,
    .calculator-btn .btn,
    .calculator-btn .email-form button {
        width: 100%;
    }

    .calculator-btn .btn {
        margin: 0;
    }

    .calculator-btn .btn--secondary {
        margin-top: 16px;
    }
}

.email-sucess-msg,
.email-failed-msg,
.calculator-results-over-3m {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 4px;
}

.p-6 {
    padding: 24px;
}

[x-cloak] {
  display: none !important;
}