/*
 * Standalone Form Specific Styles
 * Extracted and refined from NeoNXT Assessment Form Designs
 */

body.managed-service {
    padding-top: 0 !important;
    font-family: "Poppins", sans-serif;
    background: #000;
}

.form-banner {
    position: relative;
    overflow: hidden;
    height: calc(30vh - 65px);
    background: #000;
}

.bannerLogo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    z-index: 10;
    text-align: center;
}

.bannerLogo img {
    max-width: 100%;
    height: auto;
}

.managed-service-form {
    margin: 0 auto;
    background: #000;
    padding-bottom: 65px;
    min-height: 50vh;
}

.managed-service-form .container .bg-white {
    border-radius: 30px;
    background-color: #fff !important;
    padding-top: 50px;
    padding-bottom: 50px;
}

.managed-service-form .wpcf7-form-control-wrap {
    display: block;
}

.managed-service-form .wpcf7-form input[type="text"],
.managed-service-form .wpcf7-form input[type="email"],
.managed-service-form .wpcf7-form input[type="tel"],
.managed-service-form .wpcf7-form input[type="url"],
.managed-service-form .wpcf7-form textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    font-weight: 400;
    background: #fff;
    transition: all 0.3s ease;
}

.star {
    color: #FF0000;
}

.contact-tell-us {
    padding-bottom: 50px;
    border-bottom: #D1D1D1 solid 1px;
}

.contact-tell-us .mainhead {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #000;
}

.form-lebel {
    /* font-weight: 500; */
    /* margin-bottom: 10px; */
    /* display: block; */
    /* color: #333; */
}

.contact-sec {
    padding: 40px 0;
    border-bottom: #D1D1D1 solid 1px;
}

.contactTitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: #000;
}

/* CF7 Specific Styling for Radio/Checkbox bubbles */
.checkbox-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-wrap .wpcf7-list-item {
    margin: 0 !important;
    display: inline-block;
}

.checkbox-wrap .wpcf7-list-item label {
    cursor: pointer;
    position: relative;
    display: block;
    margin-bottom: 0;
}

.checkbox-wrap .wpcf7-list-item input[type="radio"],
.checkbox-wrap .wpcf7-list-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-wrap .wpcf7-list-item-label {
    border: #AEAEAE solid 1px;
    border-radius: 30px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    transition: all 0.3s ease;
    min-height: 46px;
    color: #333;
    font-weight: 400;
}

.checkbox-wrap .wpcf7-list-item input:checked+.wpcf7-list-item-label {
    border-color: #e60023;
    background: #fff1f1;
}

.checkbox-wrap .wpcf7-list-item-label::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("../images/check-icon.svg") no-repeat center;
    background-size: contain;
    opacity: 0.3;
    flex-shrink: 0;
}

.checkbox-wrap .wpcf7-list-item input:checked+.wpcf7-list-item-label::before {
    opacity: 1;
}

/* Specific Scale Table Styling */
.table-sec {
    padding: 40px 0;
}

.scale-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.scale-table th,
.scale-table td {
    padding: 18px 10px;
    text-align: center;
    border-bottom: 1px solid #d6d6d6;
    font-size: 15px;
    vertical-align: middle;
}

.scale-table th:first-child,
.scale-table td:first-child {
    text-align: left;
    width: 30%;
    color: #333;
    font-weight: 500;
}

.scale-table th {
    font-weight: 600;
    color: #3B3B3B;
    background: #f9f9f9;
}

/* Scaling Table Radio Circle styling */
.scale-table .wpcf7-list-item {
    margin: 0 !important;
    position: relative;
    top: -3px;
    left: -3px;
}

.scale-table .wpcf7-list-item label {
    display: inline-block;
    width: 25px;
    height: 25px;
}

.scale-table .wpcf7-list-item-label {
    display: none;
    /* Hide label text in table cells */
}

.scale-table input[type="radio"],
.scale-table input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ECECEC;
    cursor: pointer;
    position: relative;
    transition: .2s ease;
    margin: 0;
    border: none;
}

.scale-table input[type="radio"]:checked,
.scale-table input[type="checkbox"]:checked {
    background: #ECECEC;
}

.scale-table input[type="radio"]:checked::after,
.scale-table input[type="checkbox"]:checked::after {
    content: url("../images/tick-1.svg");
    position: absolute;
    top: 45%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
}

/* Button & Footer styles */
.btm-contact textarea {
    width: 100%;
    height: 130px;
    border: 1px solid #AEAEAE;
    border-radius: 15px;
    padding: 15px;
    background: #fff;
}

.managed-service-form .btn-primary {
    background: linear-gradient(90deg, #1310a4 0%, #5e0792 18.27%, #cd0063 51.44%, #f20f07 80.77%, #ff4000 100%);
    border-radius: 50px;
    padding: 20px 35px;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    color: #fff !important;
    text-decoration: none;
    position: relative;
    z-index: 0;
    transition: 0.3s ease-in-out;
    border: none;
}

.contact-form .btn-primary {
    padding: 20px 45px 20px 35px;
}

.contact-form .btn-primary::after {
    content: "";
    position: absolute;
    background: url(../images/right-arrow-white.svg) no-repeat center;
    background-size: contain;
    width: 21px;
    height: 15px;
    z-index: 5;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.managed-service-form .btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(90deg, #1310a4, #5e0792, #cd0063, #f20f07, #ff4000);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: 0.3s ease-in-out;
}

.managed-service-form .btn-primary:hover::before {
    opacity: 1;
}

.managed-service-form .btn-primary:hover {
    background: transparent;
    color: #333 !important;
}

.managed-service-form .btn-primary:hover::after {
    background: url(../images/right-arrow-red.svg) no-repeat center;
    background-size: contain;
}

/* Responsive */
@media screen and (max-width:768px) {
    .contact-tell-us .mainhead {
        font-size: 1.5rem;
    }

    .bannerLogo {
        width: 180px;
    }

    .form-banner {
        height: 25vh;
    }

    .checkbox-wrap .wpcf7-list-item-label {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .table-responsive::-webkit-scrollbar {
        height: 6px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #cd0063;
        border-radius: 3px;
    }
}

/* --- New Form Structure Added Styles --- */

.assessment-tell-us {
    padding: 30px 0;
    border-bottom: #D1D1D1 solid 1px;
}

.assessment-tell-us .form-lebel {
    padding-left: 20px;
}

.assessment-tell-us .form-control {
    border: #AEAEAE solid 1px;
    border-radius: 55px;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
    color: #000000;
    padding: 9px 12px;
}

.assessment-tell-us .form-control:focus {
    box-shadow: none;
    outline: none;
    background: linear-gradient(white, white) padding-box, linear-gradient(90deg, #1196e3 0%, #205bbf 19.23%, #4742b7 38.94%, #a5248e 60.1%, #e13140 80.29%, #f4994b 98.08%) border-box;
    border: 1px solid transparent;
}

.slider-wrapper {
    --thumb-diameter: 2em;
    --thumb-radius: calc(var(--thumb-diameter) / 2);
    --track-border-width: 1px;
    --value: 50;
    --pos: calc(var(--thumb-radius) + .01 * var(--value) *(100% - var(--thumb-diameter)));
    text-align: center;
    font-size: 7px;
}

.slider-tooltip {
    --tooltip-background: #ECECEC;
    --tooltip-border-width: 1px;
    --tooltip-border-color: transparent;
    --tooltip-hight-arrow: 1em;
    display: block;
    width: fit-content;
    margin: auto;
    margin-bottom: 15px;
    margin-left: calc(var(--pos) + var(--track-border-width));
    padding: 3px 25px;
    min-width: 10px;
    border: var(--tooltip-border-width) solid var(--tooltip-border-color);
    border-radius: 5px;
    font-weight: 400;
    white-space: nowrap;
    color: #3B3B3B;
    background-color: var(--tooltip-background);
    transition: .25s;
    translate: calc(-50%);
    font-size: 0.8rem;
}

.slider-tooltip::after {
    content: "";
    position: absolute;
    top: calc(100% + var(--tooltip-border-width));
    left: 50%;
    width: var(--tooltip-hight-arrow);
    height: var(--tooltip-hight-arrow);
    border: inherit;
    border-top: none;
    border-left: none;
    background-color: inherit;
    box-shadow: none;
    transform: translate(-50%, -50%) rotate(45deg);
}

input[type="range"].slider {
    --track-height: 9px;
    --track-background: linear-gradient(90deg, #1310a4 0%, #5e0792 18.27%, #cd0063 51.44%, #f20f07 80.77%, #ff4000 100%);
    --thumb-background: linear-gradient(90deg, #1310a4 0%, #5e0792 18.27%, #cd0063 51.44%, #f20f07 80.77%, #ff4000 100%);
    display: block;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 100%;
    height: var(--track-height);
    margin: 0;
    border: var(--track-border-width) solid #ECECEC;
    border-radius: 50px;
    font-size: 1em;
    outline: none;
    background: #ECECEC;
    background-image: var(--track-background);
    background-position: 0 center;
    background-repeat: no-repeat;
    background-size: var(--pos) var(--track-height);
    cursor: pointer;
}

input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    box-sizing: border-box;
    width: var(--thumb-diameter);
    height: var(--thumb-diameter);
    border: var(--thumb-border);
    border-radius: 50%;
    background: var(--thumb-background);
    box-shadow: 0 0 .5em #888;
    cursor: pointer;
}

/* Override CF7 radio/checkbox list labels to match NeoNXT .btn-check style */
.checkbox-wrap.checkboxradio-wrap .wpcf7-list-item {
    margin: 0 12px 12px 0 !important;
    display: inline-block;
}

.checkbox-wrap.checkboxradio-wrap .wpcf7-list-item-label {
    transition: all 0.2s ease;
    background-color: #ECECEC;
    border-radius: 55px;
    font-size: 1rem;
    font-weight: 400;
    color: #3B3B3B;
    text-align: center;
    padding: 10px 23px;
    display: flex;
    align-items: center;
    border: none;
    min-height: auto;
}

.checkbox-wrap.checkboxradio-wrap .wpcf7-list-item-label::before {
    content: "";
    width: 22px;
    height: 22px;
    background: url("../images/check-icon.svg") no-repeat center;
    background-size: contain;
    opacity: 1;
    /* Always visible like in btn-check */
    flex-shrink: 0;
    margin-right: 8px;
}

.checkbox-wrap.checkboxradio-wrap input[type="radio"]:checked+.wpcf7-list-item-label,
.checkbox-wrap.checkboxradio-wrap input[type="checkbox"]:checked+.wpcf7-list-item-label {
    background: linear-gradient(90deg,
            #1310a4 0%,
            #5e0792 18.27%,
            #cd0063 51.44%,
            #f20f07 80.77%,
            #ff4000 100%);
    color: white;
    border: none;
}

/* BRUTE FORCE VISIBILITY TEST */
.checkbox-wrap .wpcf7-list-item-label {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.checkbox-wrap .btn-check {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* CF7 Validation Overrides inside Table */
.table-sec .wpcf7-not-valid-tip{
    display:none;
}
     
.table-sec .wpcf7-form-control-wrap{
    display:inline;
}
     
.table-sec .wpcf7-not-valid{
    border:2px solid transparent;
    border-radius:50%;
    background-image:linear-gradient(#fff,#fff),
    linear-gradient(90deg,#1310a4 0%,#5e0792 18.27%,#cd0063 51.44%,#f20f07 80.77%,#ff4000 100%);
    padding:2px;
}
.table-sec .wpcf7-not-valid {
    width: 27px;
    height: 27px;
    display: inline-block;
}
.wpcf7 .wpcf7-not-valid {
    border-color: #ff4000 !important;
    /* box-shadow: 0 0 0 2px rgba(255, 64, 0, 0.1) !important; */
}