/* assets/css/calculator.css */

/* Prevent auto-scroll on page load */
.step-progress,
.wpcf7,
.wpcf7-form,
.form-step {
    scroll-margin-top: 0 !important;
    scroll-snap-margin-top: 0 !important;
}

.tuft-price-calculator-wrapper {
    max-width: 1330px;
    margin: 0 auto;
    padding: 20px;
}

[class*="stroke-"] strong {
    position: relative;
}

[class*="stroke-"] strong::before {
    position: relative;
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--alert);
    mask-image: url('../img/stroke-1.svg');
    mask-position: center center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-image: url('../img/stroke-1.svg');
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

.stroke-2 strong::before {
    mask-image: url('../img/stroke-2.svg');
    -webkit-mask-image: url('../img/stroke-2.svg');
}

/* Confidence Meter */
.confidence-meter-container {
    background: #130829;
    color: white;
    padding: 20px 25px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: fixed;
    bottom: 1em;
    left: 1em;
    z-index: 1000;
    width: 385px;
}

.confidence-label {
    font-size: 0.875em;
    font-weight: 500;
    opacity: 0.4;
}

#confidence-score {
    font-weight: 700;
    font-size: 1.2em;
}

.confidence-bar {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.confidence-fill {
    height: 100%;
    background: #27ae60;
    transition: all 0.3s ease;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

/* .confidence-bar:has(.confidence-fill)::after { */
.confidence-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.confidence-hint {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.6;
    margin-bottom: 0;
}

@media only screen and (max-width: 666px) {
    .confidence-meter-container {
        width: calc(100vw - 2em);
    }
    .confidence-meter-container {
        padding: 12px 20px 15px;
    }
    .confidence-label {
        display: none;
    }
    #confidence-score {
        font-size: 1em;
    }
    .confidence-hint {
        font-size: 12px;
        margin: 0.75em 0 0;
    }
    .confidence-bar {
        height: 12px;
        margin: 5px 0;

    }
}

/* Form Steps */
.form-step {
    max-width: 760px;
    margin: 0 auto;
    background: white;
    padding: 30px 60px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 60px;
}

.fixed-width {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px 60px;
}

.form-step h3 {
    text-align: center;
    margin-bottom: calc(0.5em + 30px);
}

.form-step h3.has-p {
    margin-bottom: 1em;
}

/* Expense Sections */

/* Input Fields */
input.expense-field,
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-cell-wrapper:has(input:not([type="submit"]):not([type="range"]):not([type="radio"]):not([type="checkbox"])[aria-invalid="false"][data-has-value="true"])::after,
.form-cell-wrapper:has(select[aria-invalid="false"][data-has-value="true"])::after {
    content: '';
    position: absolute;
    top: 24px;
    right: 1em;
    width: 12px;
    height: 12px;
    background-color: #5fc68a;
    mask-image: url('../img/check-mark.svg');
    mask-position: center center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-image: url('../img/check-mark.svg');
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    z-index: 1;
}

select[aria-invalid="true"],
.wpcf7-radio.wpcf7-not-valid input[type="radio"] {
    border-color: var(--error);
    background-color: var(--error-pastel);
}

select[aria-invalid="true"] + .wpcf7-not-valid-tip,
.wpcf7-radio.wpcf7-not-valid + .wpcf7-not-valid-tip {
    color: var(--error);
}

input.expense-field:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.field-messages {
    font-size: 12px;
    font-weight: 500;
    margin-top: -5px;
    margin-bottom: 14px;
    line-height: 1.3em;
    padding: 5px 10px 5px 22px;
    position: relative;
    color: #737373;
}

.field-messages::before {
    content: '';
    position: absolute;
    top: 6.8px;
    left: 5px;
    width: 12px;
    height: 12px;
    mask-image: url('../img/info.svg');
    mask-position: center center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-image: url('../img/info.svg');
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    background-color: var(--notice);
}

input:-webkit-autofill  {
    transition: background-color 5000s ease-in-out 0s;
}

/* Location select styling (before Select2 transforms it) */
select[name="location"] {
    font-size: 16px !important;
    font-weight: 400!important;
}

/* Select2 Custom Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 60px !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    padding: 18px 18px 0;
    background-color: #fff !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 42px !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    box-shadow: 0 0 0 4px rgba(122, 80, 176, .4), inset 0 0 0 100px #faf6ff !important;
    border-color: #7a50b0 !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000 !important;
    padding: 0 !important;
    line-height: 42px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

/* Dropdown styling */
.select2-dropdown {
    border: 1px solid #7a50b0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-top: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 16px !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #7a50b0 !important;
    outline: none !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 12px !important;
    font-size: 16px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #faf6ff !important;
    color: #7a50b0 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #7a50b0 !important;
    color: #fff !important;
}

/* Buttons */
.btn:disabled {
    pointer-events: none;
    user-select: none;/* Select2 Custom Styling */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 60px !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    padding: 18px 18px 0;
    background-color: #fff !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 42px !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    box-shadow: 0 0 0 4px rgba(122, 80, 176, .4), inset 0 0 0 100px #faf6ff !important;
    border-color: #7a50b0 !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000 !important;
    padding: 0 !important;
    line-height: 42px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

/* Dropdown styling */
.select2-dropdown {
    border: 1px solid #7a50b0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-top: 4px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 16px !important;
    margin: 8px !important;
    width: calc(100% - 16px) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #7a50b0 !important;
    outline: none !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 12px !important;
    font-size: 16px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #faf6ff !important;
    color: #7a50b0 !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #7a50b0 !important;
    color: #fff !important;
}
    background-color: #f6f7fa;
    border-color: #f6f7fa;
    color: #cdd2d9;
}

.btn.prev-step {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn.prev-step:hover,
.btn.prev-step:active {
    background-color: var(--button-light);
    border-color: var(--button-light);
}

button.btn:focus-visible {
    outline: 3px solid #7a50b0;
    outline-offset: 3px;
}

#download-spreadsheet-btn {
    background-color: #5fc68a;
    border-color: #5fc68a;
}

#download-spreadsheet-btn:hover,
#download-spreadsheet-btn:active {
    background-color: #4ca270;
    border-color: #4ca270;
}

/* Advanced Toggle */
.advanced-toggle {
    margin: 20px 0;
    text-align: center;
}

#show-advanced {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#show-advanced:hover {
    background: #3498db;
    color: white;
}

/* Step Progress Indicator */
.step-progress {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5em;
    padding: 1em;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    opacity: 0.5;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 9px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #fff;
    border-radius: 10px;
}

.step-item:last-child::after {
    display: none;
}

.step-number {
    text-indent: -999em;
    width: 20px;
    height: 20px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

@media (max-width: 666px) {

    .step-item::after {
        left: 65%;
        width: 70%;
    }
}

@media (max-width: 430px) {

    .step-item::after {
        left: 70%;
        width: 60%;
    }
}

/* Active step */
.step-item.active {
    opacity: 1;
}

.step-item.active .step-number {
    background-color: var(--alert);
}

.step-item.active .step-label {
    color: #fff;
    font-weight: 600;
}

/* Completed steps (clickable) */
.step-item.completed {
    opacity: 1;
    cursor: pointer;
}

.step-item.completed .step-number {
    mask-image: url('../img/check.svg');
    mask-position: center center;
    mask-repeat: no-repeat;
    mask-size: cover;
    -webkit-mask-image: url('../img/check.svg');
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    background: #5fc68a;
    color: white;
}

.step-item.completed::after {
    background: #5fc68a;
}

.step-item.completed:hover .step-number,
.step-item.active .step-number {
    transform: scale(1.3);
}

.form-controls {
    margin-top: 2em;
}

.form-controls p {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.form-controls.solo p button {
    margin-left: auto;
}

.form-controls button {
    margin: 0;
}

/* Next step (clickable when current is complete) */
.step-item.clickable {
    opacity: 1;
    cursor: pointer;
}

.step-item.clickable .step-number {
    background: var(--alert);
    border: 2px solid var(--alert);
}

.step-item.clickable:hover .step-number {
    background: var(--alert);
    color: white;
    transform: scale(1.3);
}

/* Results Display */
.tuft-pricing-results h2 {
    color: #fff;
    text-align: center;
}

.pricing-section {
    margin: 30px 0;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
}

.pricing-section.recommended {
    background: #d4edda;
    border: 2px solid #28a745;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.price-item {
    display: flex;
    min-height: 150px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    border: 2px solid #fff;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    text-align: center;
    flex-direction: column;
}

.price-item .vat {
    opacity: 0.6;
    font-size: 14px;
    font-weight: 600;
}

.price-item .service {
    font-weight: 600;
    color: #2c3e50;
}

.price-item .price {
    color: #5fc68a;
    font-size: 2.5em;
    font-weight: 700;
    -webkit-text-stroke: 0.5px;
    margin: 11px 0;
}

.price-item.price-item-disabled {
    background: transparent;
    box-shadow: none;
    border: 2px dashed #644b95;
}


.price-item-disabled .service {
    color: #fff;
}

.price-item-disabled .price {
    color: #fff;
    opacity: 0.6;
    font-size: 14px;
    margin: 0;
    margin-top: auto;
    padding-top: 60px;
    position: relative;
    -webkit-text-stroke: 0;
}

.price-item-disabled .price:before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    mask-image: url('../img/cross.svg');
    mask-position: center center;
    mask-repeat: no-repeat;
    mask-size: cover;
    -webkit-mask-image: url('../img/cross.svg');
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    background-color: #644b95;
}

.hourly-rate {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin: 20px 0;
}

.hourly-rate h4 {
    margin: 0;
    font-size: 24px;
}

.cta-section {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 30px;
}

/* inputs */

.page-template-calculator input:not([type="submit"],[type="range"])[aria-invalid="true"] {
    background-color: var(--error-pastel);
}

.page-template-calculator input:not([type="submit"],[type="range"]),
.page-template-calculator input:not([type="submit"],[type="range"])[aria-invalid="false"] {
    background-color: #fff;
}

.wpcf7 input:-internal-autofill-selected {
    background-color: rgba(255,255,255,1) !important;
}

.wpcf7-radio,
.wpcf7-checkbox {
    display: flex;
    gap: 6px 20px;
}

.wpcf7-checkbox {
    flex-wrap: wrap;
}

:is(.wpcf7-radio, .wpcf7-checkbox) > span {
    display: flex;
    flex: 1 0 calc(33.33% - 20px);
    max-width: calc(33.33% - 13px);
    transition: all 0.2s ease;
}

:is(.wpcf7-radio, .wpcf7-checkbox) > span:hover,
:is(.wpcf7-radio, .wpcf7-checkbox) > span:focus-visible {
    transform: scale(0.97);
}

:is(.wpcf7-radio, .wpcf7-checkbox) > span:active {
    transform: scale(0.9);
}

:is(.wpcf7-radio, .wpcf7-checkbox) label {
    position: relative;
    overflow: visible;
    width: 100%;
    min-height: 132.88px;
}

:is(.wpcf7-radio, .wpcf7-checkbox) label:after {
    content: '';
    position: absolute;
    top: 1.5em;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background-color: #d2d2d7;
    opacity: 0.5;
    mask-image: url('../img/check.svg');
    mask-position: center center;
    mask-repeat: no-repeat;
    mask-size: cover;
    -webkit-mask-image: url('../img/check.svg');
    -webkit-mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    transition: all 0.3s ease;
    pointer-events: none;
}

:is(.wpcf7-radio, .wpcf7-checkbox) > span:active label:after {
    background-color: #7a50b0;
}

.wpcf7-radio label:has(input[type="radio"]:checked):after,
.wpcf7-checkbox label:has(input[type="checkbox"]:checked):after {
    opacity: 1;
    background-color: #7a50b0;
    transform: translateX(-50%) scale(1.15);
}

.wpcf7-radio input[type="radio"],
.wpcf7-checkbox input[type="checkbox"] {
    width: 100%;
    height: 112px;
    border-radius: 12px;
    border: 1px dashed #d2d2d7;
    background: #fff;
    color: #000;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-template-calculator input:not([type="submit"],[type="range"],[type="checkbox"],[type="radio"]):focus, 
.page-template-calculator select:focus, textarea:focus,
.wpcf7-radio input[type="radio"]:checked,
.wpcf7-checkbox input[type="checkbox"]:checked,
.select2-container--default.select2-container--open .select2-selection--single {
    box-shadow: 0 0 0 4px rgba(122, 80, 176, .4), inset 0 0 0 100px #faf6ff;
    border-color: #7a50b0;
    border-style: solid;
}

.page-template-calculator input[type="checkbox"]:not(:checked):focus:not(:focus-visible),
.page-template-calculator input[type="radio"]:not(:checked):focus:not(:focus-visible) {
    box-shadow: none !important;
    border-color: #babac0 !important;
    background-color: #fff !important;
}

.page-template-calculator .wpcf7-radio input[type="radio"]:not(:checked):hover,
.page-template-calculator .wpcf7-checkbox input[type="checkbox"]:not(:checked):hover {
    border-color: #babac0;
}

.page-template-calculator .wpcf7-radio input[type="radio"]:focus-visible,
.page-template-calculator .wpcf7-checkbox input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #7a50b0;
    outline: none;
    border-color: #7a50b0;
}

.wpcf7-radio input[type="radio"]:checked:before,
.wpcf7-checkbox input[type="checkbox"]:checked:before,
.wpcf7-checkbox input[type="checkbox"]:after {
    display: none;
}

.wpcf7-radio .wpcf7-list-item-label,
.wpcf7-checkbox .wpcf7-list-item-label {
    margin: 0;
    padding: 5em 1.5em 1.5em;
    font-size: 1em;
    width: 100%;
    text-align: center;
    color: #737373;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.wpcf7-radio > span:active .wpcf7-list-item-label,
.wpcf7-radio input[type="radio"]:checked + .wpcf7-list-item-label,
.wpcf7-checkbox > span:active .wpcf7-list-item-label,
.wpcf7-checkbox input[type="checkbox"]:checked + .wpcf7-list-item-label {
    color: #7a50b0;
}

.wpcf7-radio > span:active input[type="radio"],
.wpcf7-checkbox > span:active input[type="checkbox"] {
    border-color: #7a50b0!important;
}

.page-template-calculator .wpcf7-response-output {
    display: none !important;
}

input[type=number] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

/* Firefox-specific - more forceful */
input[type="number"] {
    -moz-appearance: textfield !important;
}

input[type="number"]::-moz-number-spin-box {
    appearance: none;
}

.related-field {
    padding: 1em;
    margin-top: 1em;
    background: bisque;
    border-radius: 12px;
    position: relative;
}

.related-field .field-messages {
    margin-bottom: 0;
    color: #826645;
}

.related-field:before {
    background: bisque;
    content: "";
    height: 15px;
    left: 36px;
    position: absolute;
    top: -8px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    width: 15px;
}

.form-cell-wrapper.range > p {
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
    margin: 0.5em 0 1em;
}

.service-mix .form-cell-wrapper.range > p {
    flex-direction: column-reverse;
    gap: 0;
}

.service-mix  .form-cell-wrapper.range > p label {
    width: 100%;
}

.service-mix .wpcf7-form-control-wrap:has(input[type="range"]) {
    width: 100%;
}

.form-cell-wrapper.range > p label {
    position: relative;
    margin: 0;
    width: auto;
    padding: 0;
    width: 65px;
    text-align: right;
}

.wpcf7-form-control-wrap:has(input[type="range"]) {
    flex: 1;
    margin-right: auto;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    margin-right: 15px;
    width: 100%;
    height: 8px;
    background: #e9e9eb;
    border-radius: 5px;
    background-image: linear-gradient(#7a50b0, #7a50b0);
    --range-fill: 0%;
    background-size: var(--range-fill) 100%;
    background-repeat: no-repeat;
}

input[type="range"]#profit-margin-slider {
    background: #644b95;
    background-image: linear-gradient(#5fc68a, #5fc68a);
    background-size: var(--range-fill) 100%;
    background-repeat: no-repeat;
}

[dir="rtl"] input[type="range"] {
    background: var(--notice);
    background-image: linear-gradient(#fff, #fff);
    background-size: 30% 100%;
    background-repeat: no-repeat;
}

input[type="range"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #7a50b0;
    border-radius: 5px;
}

[dir="rtl"] input[type="range"] {
	background: var(--notice);
	background-image: linear-gradient(#fff, #fff);
	background-size: 30% 100%;
	background-repeat: no-repeat;
}

/* Input Thumb */
input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
    height: 30px;
	width: 30px;
	border-radius: 50%;
	background: #fff;
	cursor: ew-resize;
	box-shadow: 2px 4px 6px 2px rgba(0, 0, 0, 0.08), 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
	transition: background .3s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(0.97);
}

input[type="range"]::-webkit-slider-thumb:hover:active {
    transform: scale(0.9);
}

input[type="range"]::-moz-range-thumb {
	-webkit-appearance: none;
	appearance: none;
	height: 30px;
	width: 30px;
	border-radius: 50%;
	background: #fff;
	cursor: ew-resize;
	box-shadow: 2px 4px 6px 2px rgba(0, 0, 0, 0.10);
	transition: background .3s ease-in-out;
}

input[type="range"]::-ms-thumb {
	-webkit-appearance: none;
	appearance: none;
	height: 30px;
	width: 30px;
	border-radius: 50%;
	background: #fff;
	cursor: ew-resize;
	box-shadow: 2px 4px 6px 2px rgba(0, 0, 0, 0.10);
	transition: background .3s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
	background: #fff;
}

input[type="range"]::-moz-range-thumb:hover {
	background: #fff;
}

input[type="range"]::-ms-thumb:hover {
	background: #fff;
}

/* Icons */

.wpcf7-radio :has(input[value*="No"]) label:after {
    mask-image: url('../img/cross.svg');
    -webkit-mask-image: url('../img/cross.svg');
}


/* Fonts */

label.heading,
.mix-total {
    font-size: 1.2em;
    display: block;
    margin: 1.5em auto 0.875em;
    -webkit-text-stroke: 0.5px;
}

.mix-total {
    margin-top: 0;
    font-weight: 700;
}

label.heading + br {
    display: none;
}

.page-template-calculator .wpcf7 h4:has(+ p),
label.heading.has-p {
    margin-bottom: 0;
}

.page-template-calculator .wpcf7 h4 {
    margin-top: 1.5em;
    margin-bottom: 0.875em;
}

.page-template-calculator .overlay {
    transition: none;
}

/* Responsive Design */
@media only screen and (max-width: 1435px) {
    .page-template-calculator .overlay.gradient {
        height: 100%;
        background: linear-gradient(0deg,rgba(66, 35, 126, 1) 0%, rgba(66, 35, 126, 0.3) 100%);
    }
}

@media (max-width: 767px) {
    .page-template-calculator .header .logo {
        width: 70px!important;
        height: 70px!important;
    }
    
    .page-template-calculator .overlay.gradient {
        background: linear-gradient(to bottom,  rgba(66,35,126,1) 0%,rgba(66,35,126,0.5) 25%,rgba(66,35,126,1) 100%);
    }

    .page-template-calculator p.large, 
    .page-template-calculator .has-large-font-size {
        font-size: 1.4em!important;
    }
    
    .tuft-price-calculator-wrapper {
        padding: 10px;
    }
    
    .form-step,
    .fixed-width {
        padding: 20px;
    }

}

@media only screen and (max-width: 520px) {
    .wpcf7-radio > span {
        max-width: calc(50% - 10px);
    }
    .wpcf7-checkbox > span {
        width: calc(50% - 10px);
        flex: 1 0 50%;
        max-width: calc(50% - 5px);
    }
    .wpcf7-radio,
    .wpcf7-checkbox {
        gap: 10px;
    }

    .wpcf7-radio > span,
    .wpcf7-checkbox > span {
        max-width: calc(50% - 5px);
    }
}

/* Loading State */
.calculator-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.calculator-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Email Verification Modal */
#email-verification-modal {
    display: block;
}

.email-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.email-verification-content {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.email-verification-popup-image {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 0 auto 15px;
}

.email-verification-popup-image img {
    width: 80px;
}

.email-verification-title {
    margin: 0;
    display: block;
    color: #333333;
    font-size: 18px;
    font-weight: 600;
    line-height: 40px;
    text-align: center;
}

.email-verification-description {
    color: rgba(0, 0, 0, .6);
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    margin: 10px 0;
    margin-bottom: 17.5px;
}

.email-verification-description strong {
    font-weight: bold !important;
    color: #333 !important;
}

.email-verification-inputs-container {
    margin: 20px 0;
}

.email-verification-label {
    text-align: center;
    font-size: inherit;
    font-weight: 700;
    color: #333;
    margin-top: 5px;
    -webkit-text-stroke: 0;
}

.email-verification-inputs {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.verification-digit {
    width: 60px !important;
    height: 70px !important;
    padding: 0 !important;
    font-size: 36px !important;
    text-align: center;
    font-weight: 400;
    border-radius: 12px;
    margin: 0 !important;
}

#verification-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 15px;
    display: none;
    text-align: center;
}

.email-verification-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: rgba(0, 0, 0, .6);
}

#resend-code-btn,
#change-email-btn {
    background: none;
    border: none;
    font-weight: bold;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

#resend-code-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ============================================
   RESULTS DISPLAY STYLES
   ============================================ */

#tuft-results-container {
    padding-top: 120px;
}

.tuft-pricing-results {
    animation: slideInUp 0.5s ease;
}

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

/* Fixed Width Container */
.results-fixed-width {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Results Heading */
.results-heading {
    color: #fff;
    font-size: 3.5em;
    margin: 0 0 0.3em 0;
}

.results-subheading {
    color: #b3a7cb;
    margin: 0 0 2em 0;
}

.results-subheading strong {
    color: #fff;
}

/* Confidence Warning */
.confidence-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #585038;
    padding: 15px;
    margin: 0 0 20px;
    border-radius: 5px;
    text-align: left;
}

/* Profit Margin Section */
.profit-margin-section {
    color: #fff;
    text-align: center;
}

.profit-margin-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5em;
    font-size: 1.5em;
    color: #fff;
}

.margin-slider {
    width: 100%;
    margin-bottom: 0.65em;
}

.margin-hint {
    font-size: 14px;
    color: #b3a7cb;
    font-weight: 500;
}

/* Capacity Display */
.capacity-display-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.6;
    margin: 0;
    text-align: center;
}

/* Details/Accordion Sections */
.details-container {
    padding: 0 0 60px 0;
}

.page-template-calculator details {
    border-bottom: 1px solid #644b95;
    padding-bottom: 1em;
    color: #fff;
}

.page-template-calculator summary {
    font-size: 1.2em;
    font-weight: 700;
    padding: 1em 0 0;
    outline: none;
    user-select: none;
}

.page-template-calculator .disclaimer {
    font-size: 12px;
    font-weight: 500;
    margin-top: 16px;
    color: #b3a7cb;
}

/* Regional Comparison */

.regional-comparison h3 {
    margin-top: 0;
    text-align: center;
}

.regional-comparison table {
    width: 100%;
    margin-bottom: 10px;
}

.regional-comparison td {
    padding: 5px 0;
}

.regional-comparison td:last-child {
    text-align: right;
    font-weight: bold;
}

.regional-sample-size {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.regional-sample-size.has-data {
    color: #28a745;
}

/* Capacity Scenarios */

.tuft-pricing-results .radio-container {
    background: #28154e;
}

.tuft-pricing-results .radio-container input[type="radio"]:checked+label {
    color: #28154e;
}

.capacity-scenarios {
    margin: 30px 0;
}

.capacity-scenarios-heading {
    text-align: center;
    color: #fff;
    font-size: 3.5em;
    margin: 60px 0 0.3em 0;
}

.capacity-scenarios-subheading {
    color: #b3a7cb;
    text-align: center;
    margin: 0;
}

.capacity-scenarios-subheading strong {
    color: #fff;
}

.capacity-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.capacity-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.capacity-table thead {
    background: #755AA9;
    color: #fff;
}

.capacity-table tbody {
    background: #fff;
}

.capacity-table th {
    text-align: left;
    padding: 1.1em 1em;
    white-space: nowrap;
}

.capacity-table th:first-child {
    width: auto;
}

.capacity-table th:not(:first-child) {
    text-align: right;
    width: 16%;
    white-space: nowrap;
}

.capacity-table td {
    padding: 1em;
    white-space: nowrap;
}

.capacity-table td:first-child {
    white-space: nowrap;
}

.capacity-table td:not(:first-child) {
    text-align: right;
}

.capacity-table .service-not-offered {
    opacity: 0.4;
}

.capacity-table tbody tr.highlighted {
    background: #e6daff;
}

.capacity-table tbody tr.highlighted td {
    font-weight: bold;
}

.capacity-tip {
    color: #b3a7cb;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

/* Price Item States */
.price-item .vat-amount {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* CTA Section */
.cta-section h3 {
    margin-top: 0;
}

/* Dev Mode Indicator */
.dev-mode-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    z-index: 99999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-family: monospace;
    cursor: pointer;
}

.dev-mode-indicator small {
    font-size: 11px;
    display: block;
}

/* Large Text Utility */
/* .page-template-calculator .large {
    font-size: 1.2em;
} */

.page-template-calculator h1.large {
    font-size: 4em;
}

@media only screen and (max-width: 767px) {
    .page-template-calculator h1.large {
        font-size: 2.5em;
    }
}

/*faq section*/

.faq-section {
    background: #f5f6f9;
    color: var(--text-dark);
}

.faq-heading {
    text-align: center;
}

.faq-intro {
    color: var(--text);
    text-align: center;
    margin: 0 0 2em 0;
}

.faq-section details {
    color: var(--text);
    border-color: var(--nav-border);
}

.faq-last-updated {
    margin-top: 30px;
    color: var(--text);
    opacity: 0.6;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

/* Responsive Adjustments for Results */
@media (max-width: 768px) {
    .results-heading,
    .capacity-scenarios-heading {
        font-size: 2em;
    }
    
    .regional-comparison {
        padding: 20px;
    }
    
    .results-fixed-width,
    .fixed-width {
        padding: 20px;
    }
}