/*!
Theme Name: CBD
Theme URI: https://www.cbwebsitedesign.co.uk/
Author: Creative Brand Design
Author URI: https://www.cbwebsitedesign.co.uk/
Description: Creative Brand Design
Version: 04.12.24
Text Domain: cbd
*/

/* Tailwind Overrides */
@media (max-width: 1199px) {
    :is(.\*\:h-16>*) {
        height: calc(var(--spacing) * 20);
    }
}

/*img,
svg {
    display: none !important;
}*/

/* Remove when populated */
section.testimonials-carousel {
    display: none;
}

/* Subtitle Fix */
@media (max-width: 599px) {
    .hero .subtitle.desktop-only {
        height: auto;
        width: auto;
    }
    .hero .subtitle.desktop-only img {
        display: none;
    }
    .hero .subtitle.desktop-only span {
        background-image: none;
        backdrop-filter: none;
        padding: 0;
        border-radius: 0;
    }
}

/* Hero */
@media (min-width: 1200px) {
    .hero .center-image {
        left: 50%;
        transform: translateX(-50%);
    }
}
@media (max-width: 599px) {
    .hero:has(figure.contain) .content {
        margin-top: calc(var(--spacing) * 75);
    }
}

/* Cookies */
.cky-revisit-bottom-left {
    bottom: 1.5rem !important;
    left: 1.5rem !important;
    right: auto !important;
}

/* Fix if no hero */
body:not(:has(.hero:first-of-type)) header {
    background: var(--color-purple-dark);
}
body:not(:has(.hero:first-of-type)) main {
    padding-top: max(10rem, 5vw);
}

/* Overflow Images on Mobile */
@media (max-width: 599px) {
    .content-big-image figure {
        overflow-x: scroll;
    }
    .content-big-image figure img {
        min-width: 250vw;
    }
}

/* Move image on desktop */
@media (min-width: 1200px) {
    .content-side-graphic .side-image {
        transform: translateX(-10%);
    }
}

/* Support Cards */
.cost-cards.bg-white:before,
.cost-cards.bg-white:after {
    opacity: 0.2;
}

/* Tabbed Images */
@media (min-width: 1200px) {
    .tabbed-images .row.mb-lg > div:first-child,
    .header-content-split .row > div:first-child:has(.subtitle) {
        padding-right: 3rem;
    }
}

/* USP Graphic */
@media (max-width: 599px) {
    .usp-graphic .row.text-center {
        text-align: left;
    }
}

/* Map */
/*
@media (max-width: 599px) {
    section.html-map {
        padding-top: 0;
    }
}
*/
#tt_sm_map .tt_sm {
    position: relative;
    background: linear-gradient(
		82deg,
		#4b108e 10.47%,
		#5515a0 15.51%,
		#7225d3 30.62%,
		#852ff3 42.72%,
		#8c33ff 48.76%,
		#ad72ff 87.06%,
		#ad72ff 99.15%
	);
	overflow: hidden;
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 1rem;
    padding: 1.5rem;
    font-size: clamp(1.6rem, 0.94vw, 2.2rem);
    font-family: inherit;
    color: #fff;
}

#tt_sm_map .tt_sm:after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background-image: radial-gradient(
		circle at 4px 4px,
		rgba(255, 255, 255, 0.15) 2px,
		transparent 0
	);
	background-size: 3rem 3rem;
}

.tt_custom_sm,
.tt_mobile_sm {
    position: relative;
    z-index: 2;
}

/* Private Pages */

.post-password-form {
    height: 70vh;
    height: 70svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.post-password-form > p {
    width: 100%;
    text-align: center;
    font-size: 115%;
}

.post-password-form label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.post-password-form input[type=password] {
    padding: 0.75rem 1.5rem;
    background: none;
    border: 1px solid #fff;
    border-radius: 0.3rem;
}

.post-password-form input[type=submit] {
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 0.3rem;
    color: #000;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s opacity;
    margin-top: 1.5rem;
}

.post-password-form input[type=submit]:hover {
    opacity: 0.7;
}
/* Table section styling */
.table-section {
    display: block;
}
.table-section .container {
    display: block;
    margin-inline: auto;
}
.table-section .table-wrapper {
    display: block;
}
.table-section .wp-block-table {
    margin-inline: auto;
}
.table-section table {
    width: 100%;
}

/* Gravity form styling */
.gform_fields {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.gform_fields .gfield {
    flex: 0 0 100%;
}
.gform_fields .hidden_label .gfield_label {
    display: none;
}
.contact-form:before {
    content: none !important;
}
.gform_fields input[type="text"],
.gform_fields input[type="email"],
.gform_fields input[type="tel"],
.gform_fields textarea,
.gform_fields select {
    background: rgba(51, 26, 91, 0.03);
    color: #331A5B;
    border: 1px solid #fff;
    border-radius: 8px;
    padding: 1.8rem 2rem;
    font-size: var(--text-18);
    outline: none;
    width: 100%;
}
.gform_fields select option {
   background-color: rgba(51, 26, 91, 0.03);
}
.gform_fields input[type="text"]:focus,
.gform_fields input[type="email"]:focus,
.gform_fields input[type="tel"]:focus,
.gform_fields textarea:focus,
.gform_fields select:focus,
.gform_fields input[type="text"]:hover,
.gform_fields input[type="email"]:hover,
.gform_fields input[type="tel"]:hover,
.gform_fields textarea:hover,
.gform_fields select:hover {
    border: 1px solid #8C33FF;
}

.gform_fields input::placeholder,
.gform_fields textarea::placeholder,
.gform_fields select {
    color: #331A5B;
    opacity: 0.6;
}
.gform_fields textarea {
    resize: none;
    min-height: 8rem;
}
.ginput_container_consent{
    display: flex;
    margin-bottom: 2rem;
}
.gform-field-label{
    font-size: 1.5rem;
}
.gform_required_legend {
    display: none;
}
.gform-field-label.gfield_consent_label {
    font-weight: var(--font-weight-semibold);
}
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #8C33FF;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  outline: none;
  padding: 0;
  margin-right: 1rem;
}

input[type="checkbox"]:checked {
  background-color: #8C33FF;
}

input[type="checkbox"]:focus {
  box-shadow: 0 0 0 2px rgba(51, 26, 91, 0.3);
}

.gform_submission_error, .validation_message, .gform_wrapper div.gform_validation_errors h2.gform_submission_error{
    font-size: 1.6rem;
    margin: 0.5rem 0 0.5rem 0;
    color: #ff2780;
}

.gf_progressbar_wrapper {
    margin-bottom: 2rem;
}
.gf_progressbar_title {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}
.gf_progressbar {
    display: none;
}
.gf_progressbar_percentage {
    padding: 0.5rem 1rem 0.3rem;
}
.gform_page .gform_fields select {
    opacity: 1;
}
.gform_page_fields + .gform_page_footer {
    position: relative;
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
}
.gform_page_fields + .gform_page_footer .button {
    width: 35%;
    cursor: pointer;
    transition: 0.3s background-color, 0.3s color;
}
@media (min-width: 1200px) {
    .gform_page_fields + .gform_page_footer {
        gap: 3rem;
    }
    .gform_page_fields + .gform_page_footer .button:not(:has(.btn)):hover {
        background-color: var(--color-purple);
        color: #fff;
    }
}
.gform_page_fields + .gform_page_footer > span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@media (max-width: 599px) {
    .gform_page:last-of-type .gform_page_fields + .gform_page_footer button {
        width: 55%;
    }
    .gform_page_fields + .gform_page_footer .button .btn {
        width: 100%;
    }
    .gform_page_fields + .gform_page_footer .button .btn .icon {
        width: 3rem;
        height: 3rem;
    }
    .gform_page_fields + .gform_page_footer .button .btn span {
        font-size: 87%;
    }
}

.gfield--type-multi_choice {
    margin-bottom: 1rem;
}
.gfield--type-multi_choice .gfield_checkbox {
    display: grid;
    column-gap: 1.5rem;
    row-gap: 1rem;
}
.gfield--type-multi_choice legend {
    margin-bottom: 1.5rem;
}
.gfield--type-multi_choice .gchoice {
    display: flex;
    align-items: center;
}
.gfield--type-multi_choice .gchoice label {
    flex: 1;
}

@media (min-width: 600px) {
    .gfield--type-multi_choice .gfield_checkbox {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .gfield--type-multi_choice .gfield_checkbox {
        grid-template-columns: repeat(3, 1fr);
    }
    .gfield--type-multi_choice .gchoice {
        min-height: 3rem;
    }
}
@media (min-width: 1800px) {
    .gfield--type-multi_choice .gfield_checkbox {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Specific forms */
#gform_1,
#gform_2 {
    position: relative;
    padding-bottom: 6rem;
}
#gform_1 .gform-footer,
#gform_2 .gform-footer {
    width: fit-content;
    position: absolute;
    right: 0;
    bottom: 0;
}
/* Responsive */
@media(min-width: 600px) {
    #gform_1,
    #gform_2 {
       padding-bottom: 2rem;
    }
    .gform_fields .gfield.gfield--width-half {
        flex: 0 0 calc(50% - 1rem);
    }
}

/* Pagination */
.pagination-numbers.current {
	color: var(--color-purple-light);
}
@media(max-width:768px){
    #tt_sm_map{
                   scale: 0.85;
        width: 100%;
        max-width: 100% !important;
        left: 0;
        inset: -40px auto auto 23.5px !important;
    }
}
.xmark_sm{
    z-index: 99999;
    pointer-events: all;
    position: relative;
}

@media (width >= 600px) {
    .sm\:flex {
        display: flex;
    }
    .sm\:w-1\/5 {
        width: 20%;
    }
}
#hubspot-messages-iframe-container, iframe{
	    background: transparent !important
}
#hubspot-messages-iframe-container {
     color-scheme : light;
}

/* Icon Carousel */
.industry-carousel .swiper-slide:not(:has(.icon)) .content-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.btn {
    font-family: var(--font-heading)!important;
}

