:root {
    --violet: #B175FE;
    --dark-gray: #333333;
}

body {
    font-family: 'Roboto', sans-serif !important;
}

.category-heading {
    font-weight: 700 !important;
    font-size: 25px !important;
    line-height: 25px !important;
    color: var(--dark-gray);
}

.sub-category-heading {
    display: flex;
    align-items: center;
    font-weight: 400 !important;
    font-size: 18px !important;
    line-height: 34px !important;
    color: var(--dark-gray);
}

/* Toggle Switch Styles */
.toggle {
    position: relative;
    width: 46px;
    height: 28px;
    background-color: #E7E7E7;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

input[type="checkbox"]:checked + .toggle {
    background-color: var(--violet);
}

input[type="checkbox"]:checked + .toggle:before {
    transform: translateX(18px);
}

/* Styles for the 'Number of devices' input */
.devices-input {
    width: 96px;
    padding: 10px 0;
    font-size: 18px;
    color: var(--dark-gray);
    background-color: #E7E7E7;
    border-radius: 8px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #E0E0E0;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0; 
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Info icon styles */
.info-icon {
    margin-left: 8px;
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
}

/* Tooltip styles */
.tooltip {
    visibility: hidden;
    width: 240px; /* Adjust the width as needed */
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 12px;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%; /* Adjust this to position the tooltip */
    left: 50%;
    margin-left: -123px; /* Half of the tooltip's width */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
}

/* Tooltip arrow */
.tooltip::after {
    content: '';
    position: absolute;
    top: 100%; /* Bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 8px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Show tooltip on hover */
.info-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Change icon color on hover */
.info-icon:hover {
    background-color: #333;
    color: #fff;
    border-radius: 50%; /* Assuming you want a rounded background */
}

/* Styles for square radio buttons */
.radio-square-option {
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #E0E0E0;
    width: 90px;
    /* height: 70px; Fixed height to ensure consistent size */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.radio-square-option .option-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 10px; /* Inner padding for consistent spacing */
    box-sizing: border-box; /* Ensure padding does not affect the width/height */
}

.radio-square-option:hover {
    background-color: #EEE;
}

.radio-square-option input[type="radio"]:checked + .option-label {
    background-color: var(--violet);
    color: white;
    font-weight: bold;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.radio-square-option input[type="checkbox"] + .option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
}

/* Styles for square checkbox option */
.radio-square-option input[type="checkbox"]:checked + .option-label {
    background-color: var(--violet);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    display: flex;
}

.radio-square-option .option-label {
    display: flex;
    gap: 5px;
}

.radio-square-option .option-label div {
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 18px !important;
}

.radio-square-option .option-label div:first-of-type {
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 16px !important;
}

.radio-square-option input[type="radio"]:checked + .option-label {
    background-color: var(--violet);
    color: white;
    border-radius: 8px;
    width: 100%; /* Ensure it fills the entire container */
    height: 100%; /* Ensure it fills the entire container */
    padding: 10px; /* Apply padding for consistent text spacing */
    box-sizing: border-box;
}

/* Custom Checkbox Styles */
.custom-checkbox {
    position: relative;
    width: 24px;
    height: 24px;
    border: 2px solid var(--violet);
    background-color: transparent;
    border-radius: 0; /* Remove border radius for square shape */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.checkbox-checkmark {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: 0; /* Ensure no border-radius */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-checkmark {
    background-color: var(--violet);
}

.custom-checkbox input[type="checkbox"]:checked + .checkbox-checkmark::after {
    content: '✔';
    color: white;
    font-size: 14px;
}

.custom-checkbox input[type="checkbox"]:not(:checked) + .checkbox-checkmark {
    background-color: transparent;
    border: 2px solid var(--violet);
}

/* Grayed out style for custom checkboxes */
.grayed-out {
    border: 2px solid #D1D1D1 !important; /* Change the border color to gray */
    opacity: 1; /* Reduce opacity for visual indication */
    pointer-events: none; /* Disable interactions */
}

.grayed-out .checkbox-checkmark {
    border-color: #E7E7E7 !important; /* Change the border color to gray */
}


/* TODO: blocks animation needed? */

/* =============================================================================================== */
/* Result Head Block */
.result-head-block {
    padding-top: 24px;
    background-color: var(--dark-gray);
    text-align: center;
    position: relative;
    color: white;
    overflow: hidden; /* Ensure anything outside the block is hidden */
}

.result-head-block .head-title {
    color: white;
    font-size: 20px; 
    line-height: 28px;
    font-weight: 700;
}

.result-head-block .head-subtitle {
    font-size: 0.8rem;
}

.result-head-block .head-ribbon {
    position: absolute;
    top: 25px; /* Move it slightly up */
    right: -65px; /* Move it out further to the right */
    background-color: var(--violet);
    color: white;
    font-size: 0.75rem;
    padding: 4px 30px;
    transform: rotate(45deg);
    z-index: 10;
    width: 200px; /* Increase width to extend beyond the visible area */
}

.plan-cost-heading {
    font-size: 44px;
    line-height: 44px;
    font-weight: 700;
}

/* Custom Summary Checkbox */
.custom-summary-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--violet);
    background-color: transparent;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Ensure the SVG color changes to white when the corresponding checkbox is checked */
.custom-summary-checkbox:checked + .result-block-option-label svg path {
    fill: white;
}

/* Add background color change to violet when the checkbox is checked */
.custom-summary-checkbox:checked + .result-block-option-label {
    background-color: var(--violet);
    color: white;
    font-weight: bold;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    display: flex;
}


/* Default label style */
.result-block-option-label {
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #E0E0E0;
    width: 90px;
    height: 70px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--dark-gray);
}

/* Hover effect for the label */
.result-block-option-label:hover {
    background-color: #EEE;
}

/* Inner label text styling */
.result-block-option-label div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* gap: 5px; */
}

/* Specific text styling */
.result-block-option-label div:first-of-type {
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
}

/* Label style when the checkbox is checked - Inner div */
.custom-summary-checkbox:checked + .result-block-option-label div {
    font-weight: 700;
}

/* Includes block styles */
.inclusdes-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    line-height: 18px;
    font-weight: 400;
}

.email-heading {
    font-size: 18px;
    line-height: 18px;
    font-weight: 400;
}

/* Diagonal Close Button Animation for Contact Button */
.animated-button {
    position: relative;
    border-radius: 8px;
    font-size: 20px;
    line-height: 22px;
    font-weight: 700;
    color: white;
    background-color: var(--dark-gray);
    box-shadow: 0px 0px 8px 6px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: none;
    z-index: 1; /* Ensure the button is above the pseudo-elements */
}

.animated-button::before,
.animated-button::after {
    content: '';
    position: absolute;
    width: 70%; /* Both elements are now 50% width */
    height: 100%;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: -1; /* Ensure they're behind the button text */
    background-color: rgba(177, 117, 254, 1); /* Using RGB equivalent of --violet */
    opacity: 1;
}

.animated-button::before {
    clip-path: polygon(0% 0%, 50% 0%, 90% 100%, 0% 100%);
    top: 0;
    left: 0;
}

.animated-button::after {
    clip-path: polygon(6% 0%, 100% 0%, 100% 100%, 46% 100%);
    top: 0;
    right: 0; /* Use `right: 0` to position on the right side */
}

.animated-button:hover::before {
    transform: translate(-100%, 0);
    background-color: rgba(177, 117, 254, 0.8); /* Keep the violet background with the same opacity */
    opacity: 0.5; /* Fade out to create the box-opening effect */
}

.animated-button:hover::after {
    transform: translate(100%, 0);
    background-color: rgba(177, 117, 254, 0.8); /* Keep the violet background with the same opacity */
    opacity: 0.5; /* Fade out to create the box-opening effect */
}

.details-button {
    font-size: 18px;
    line-height: 32px;
    font-weight: 700;
    text-decoration: underline;
    color: var(--violet);
}

/* Plans modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.15s linear; /* Only opacity transition */
    z-index: 100;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    min-height: 400px;
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal h3 {
    margin-bottom: 20px;
}

.modal-close, .close-button {
    background-color: gray;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.close-button:hover {
    background-color: #333;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.fade {
    transition: opacity 0.15s linear; /* Only fade effect */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1); /* Keep the size stable during fade-out */
    }
    to {
        opacity: 0;
        transform: scale(1); /* No resizing, keep scale at 1 */
    }
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out; /* Only affect opacity */
}

/* ============= fixes of wp auto optimise styling override ============= */

.your-plan-heading {
    font-size: 1.5rem; /* 24px */
    line-height: 2rem; /* 32px */
}

.category-heading {
    color: black !important;
}