/*
Theme Name: Bright Spark - Rococo Digital
Theme URI: https://rococodigital.co.uk
Author: Rococo Digital
Author URI: https://rococodigital.co.uk
Description: A child theme for TT2.
Text Domain: twentytwentytwo-child
Template: twentytwentytwo
*/

html{
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    scroll-behavior: smooth;
}

body:not(.customer-area) .wp-site-blocks > * + * {
    margin-block-start: 0;
}
h1, h2{
    letter-spacing: -0.04em;
    line-height: 1em;
}
h3, h4, h5, h6{
    letter-spacing: -0.03em;
    line-height: 1.2em;
}

h3, h4, h5, h6{
    margin-block-end: 0.2em;
}

/* Entry content h2 spacing */
.entry-content h2 {
    margin-top: 2.5rem;
}

/* Separator styling */
.wp-block-separator {
    border-bottom-color: var(--wp--preset--color--primary);
}

textarea{
    max-width: 80%;
}

/* menu */

.wp-block-navigation .has-child:where(:not(.open-on-click)):hover > .wp-block-navigation__submenu-container {
    width: max-content;
}
@media (min-width: 781px){
    .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
        background-color: #fff;
        color: #000;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 10px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        box-shadow: 3px 5px 15px #80808057;
    }

    .wp-block-navigation-item.wp-block-navigation-link a.wp-block-navigation-item__content{
        margin-right: 0.5rem;
        margin-left: 0.5rem;
        border-radius: 5px;
        padding: 0 0.8rem;
    }
    .wp-block-navigation-item.wp-block-navigation-link a.wp-block-navigation-item__content:hover, .wp-block-navigation-item.wp-block-navigation-link a.wp-block-navigation-item__content:focus {
        background: #00D387;
    }
}
.horizontal-menu.wp-block-navigation .wp-block-navigation-item__label{
    height: 100%;
    display: flex;
    align-items: end;
    color: var(--wp--preset--color--foreground);
    text-decoration: underline;
}

.horizontal-menu.wp-block-navigation .wp-block-navigation-item__label img{
    margin-right: 0.4rem;
}


/* Headings */
.bright-title{
    overflow: hidden;
    min-height: 2.4rem;
}
.bright-title::after{
    content: "";
  display: inline-block;
  height: 0.5em;
  vertical-align: bottom;
  width: 100%;
  margin-right: -100%;
  margin-left: 4rem;
  border-top: 3px solid var(--wp--preset--color--primary);
}

/* HELPERS */

.wp-block-gallery.valign-center.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image){
    margin-top: auto;
    margin-bottom: auto;
}

.float-left{
    display: block;
    float: left;
    margin-right: 1rem;
}

.overflow-clip{
    overflow: clip;
    position: relative; 
}

.block{
    display: block !important;
}
@media (max-width: 781px){
    .reverse-stacking{
        flex-direction: column-reverse;
    }
}
.hide-mobile{
    display: none;
}
@media (min-width: 781px){
    .hide-mobile{
        display: inherit;
    }
}

.floating-bar {
    margin-bottom: -6rem;
    position: relative;
    z-index: 2;
}
@media (min-width: 781px){
    .floating-bar {
        margin-top: -3rem;
        margin-bottom: -3rem;
    }
}

.floating-bar div{
    width: fit-content;
    margin: 0 auto;
}

.no-vpadding{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.no-padding{
    padding: 0 !important;
}

.pad-1{
    padding: 1rem;
}

.small-margin-top{
    margin-top: 0.6rem!important;
    margin-block-start: 0.6rem!important;
}
.no-margin-top{
    margin-top: 0!important;
    margin-block-start: 0!important;
}
.no-margin-bottom{
    margin-bottom: 0!important;
    margin-block-end: 0!important;
}
.margin-top--small{
    margin-block-start: 0.2rem !important;
}

/* Carousel */
.slick-dots li button, .slick-dots li.slick-active button::before, .slick-dots li button::before{
    color: inherit;
}
.slick-dots li button::before{
    opacity: 0.5;
    font-size: medium;
}

/* query loops & Cards */
.card li, .bright-cards li{
    display: flex;
    flex-direction: column;
}

.card li .content-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.wp-block.column.card {
    display: flex;
    flex-direction: column;
}
.wp-block-group.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.wp-block-group.flex figure {
    margin-left: 1rem;
    margin-top: 0;
}

.wp-block-columns .wp-block-column.card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bright-cards .bright-card-content{
    border-radius: 25px;
    margin-top: -2rem;
    z-index: 1;
    position: relative;
    padding: 1.5rem 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    height: 100%;
}


.bright-cards li:first-child .bright-card-content{
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--foreground);
}

.bright-cards li:not(:first-child) .bright-card-content{
    border: 1px solid var(--wp--preset--color--primary);
    background: var(--wp--preset--color--background);
    color: var(--wp--preset--color--foreground);
}
.bright-cards li:first-child .bright-card-content a{
    color: var(--wp--preset--color--background);
}

/* Logo */

svg.custom-logo, figure.custom-logo svg{
    max-width: 100%;
    width: 256px;
    color: #3a3a3a;
    fill: #3a3a3a;
}

.white svg.custom-logo, figure.custom-logo.white svg{
    fill: white;
    color: white;
}

/* Contact form */

#wpcf7-f21-o1 input.wpcf7-text, #wpcf7-f21-o2 input.wpcf7-text, .form_text_input{
    flex-grow: 1;
    padding-right: 3rem;
   
}

.klaviyo_field_group{
    flex-grow: 1;
}

.klaviyo_gdpr_embed_RCvDxa{
    display:flex;
    max-width: 100%;
}

#wpcf7-f21-o1 .wpcf7-form p, #wpcf7-f21-o2 .wpcf7-form p{
    display:flex;
}

#wpcf7-f21-o1 .wpcf7-form .wpcf7-not-valid-tip, #wpcf7-f21-o2 .wpcf7-form .wpcf7-not-valid-tip{
    position: absolute;
    height: 60%;
    bottom: 100%;
    background: var(--wp--preset--color--tertiary);;
    padding: 0.5rem 0.9rem;
    border-top-right-radius: 25px;
    border-top-left-radius: 25px;
    margin-left: 1.5rem;
    color: white;
}

#wpcf7-f21-o1.wpcf7 form.invalid .wpcf7-response-output, #wpcf7-f21-o2.wpcf7 form.invalid .wpcf7-response-output{
    position: absolute;
    z-index: 999999;
    background: #3c3c3c;
    display: block;
    bottom: -1rem;
    font-size: small;
    right: 0;
}

#wpcf7-f21-o1 .wpcf7-form p .wpcf7-form-control-wrap, #wpcf7-f21-o2 .wpcf7-form p .wpcf7-form-control-wrap{
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}



#wpcf7-f21-o1 .wpcf7-submit, #wpcf7-f21-o2 .wpcf7-submit, button.submit_button{
    margin-left:-3rem;
}

#wpcf7-f21-o1 .wpcf7-spinner, #wpcf7-f21-o2 .wpcf7-spinner{
    position: absolute;
    right: 0;
    transform: translateY(-24px);
}

/* General forms */
label{
    font-weight: bold;
    font-size: medium;
}

.wpcf7-submit, button.submit_button{
    background-color: var(--wp--preset--color--primary);
    color:  var(--wp--preset--color--background);
    font-weight: 800;
    width: max-content;
}

input:not([type='checkbox']):not([type='submit']):not([type='button']){
    width: calc(100% - 2rem);
}

input, textarea, button.submit_button{
    border-radius: 40px;
    padding: 1rem; 
    z-index: 0;
    position: relative;
    font-size: large;
}

button.submit_button, input.wpcf7-submit{
    border-radius: 40px;
    padding: 0.5rem 1.5rem; 
    z-index: 4;
    position: absolute;
    bottom: 0;
    border: none;
    font-size: medium;
}


.wpcf7-list-item-label{
    font-weight: 400;
}

.green-corner-bottom-right:before{
    content: " ";
    position: absolute;
    right: 0;
    bottom: 0;
	border-top: 600px solid transparent;
    border-right: 50vw solid var(--wp--preset--color--primary);
    border-bottom: 0px solid transparent;
    z-index: -1;
}

.border-top-right-radius figure, .border-top-right-radius figure img, .border-top-right-radius figure video{
    border-top-right-radius: 40px;
}
.border-top-left-radius figure, .border-top-left-radius figure img, .border-top-left-radius figure video{
    border-top-left-radius: 40px;
}
.border-bottom-right-radius figure, .border-bottom-right-radius figure img, .border-bottom-right-radius figure video{
    border-bottom-right-radius: 40px;
}
.border-bottom-left-radius figure,.border-bottom-left-radius figure img, .border-bottom-left-radius figure video{
    border-bottom-left-radius: 40px;
}

.wp-block-button{
    font-weight: 600;
}

.wp-block-button.is-style-outline > .wp-block-button__link, .wp-block-button .wp-block-button__link{
    padding: 0.5rem 1.5rem;
}

.wp-block-button .wp-block-button__link{
    color: white;
    transition: box-shadow .3s, transform .3s;
}

.wp-block-button .wp-block-button__link:hover{
    box-shadow: 3px 2px 10px #0080003b;
    transform: translate(0px, -1px);
}

.wp-block-button.is-style-outline .wp-block-button__link{
    color: var(--wp--preset--color--primary);
    border: 1px solid;
}



/* icons */
figure.icon{
    display: flex;
}
.icon svg, icon img{
    height: 32px;
}

.icon img, .icon svg{
    max-height: 96px;
}

.icon.large svg, .icon.large img{
    height: 96px;
}

.icon.fixed svg, .icon.fixed img{
    height: 96px;
    min-width: 96px;
}

@media (max-width: 781px){
    .icon.fixed svg, .icon.fixed img{
        height: auto;
    }
}

/* Animation */
.animation-start{
    -webkit-animation: fadeIn 0.8s forwards;
    -moz-animation: fadeIn 0.8s forwards;
    animation: fadeIn 0.8s forwards;
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 100;
    }
}
@-moz-keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 100;
    }
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 100;
    }
}

/* Resposive */
@media (max-width: 781px){
    .has-text-align-center:not(.mobile) :not(.wp-block-column-is-layout-flow){
        text-align: left;
    }

    .border-top-right-radius figure, .border-top-right-radius figure img, .border-top-right-radius figure video{
        border-top-right-radius: 0px;
    }
    .border-top-left-radius figure, .border-top-left-radius figure img, .border-top-left-radius figure video{
        border-top-left-radius: 0px;
    }
    .border-bottom-right-radius figure, .border-bottom-right-radius figure img, .border-bottom-right-radius figure video{
        border-bottom-right-radius: 0px;
    }
    .border-bottom-left-radius figure,.border-bottom-left-radius figure img, .border-bottom-left-radius figure video{
        border-bottom-left-radius: 0px;
    }
}

.visualizer-front-container > div:nth-child(3){
    display: none;
}

.inner-content{
    padding-left: var(--wp--custom--spacing--outer);
    padding-right: var(--wp--custom--spacing--outer);
}

/* Roof Container */
.house-container {
    position: relative;
    margin-top: -2rem;
    margin-bottom: -2rem;
    padding-top: 0;
    padding-bottom: 0;
    z-index: 2;
    background-color: transparent !important;
}

.house-container::before {
    content: "";
    position: absolute;
    top: -2rem;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100% + 4rem);
    clip-path: polygon(
        0 100%,           /* bottom left */
        0 2rem,          /* top left */
        50% 0,           /* top center */
        100% 2rem,       /* top right */
        100% 100%        /* bottom right */
    );
    z-index: -1;
}

.has-foreground-background-color.house-container::before {
    background-color: var(--wp--preset--color--foreground);
}

.has-primary-background-color.house-container::before {
    background-color: var(--wp--preset--color--primary);
}

.has-background-background-color.house-container::before {
    background-color: var(--wp--preset--color--background);
}

/* Multistep Form Styles */
.wpcf7-form .page {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: none !important; /* Hide all pages by default with higher specificity */
    /* min-height: 400px; */
    position: relative;
    text-align: center;
}

.wpcf7-form .page.active {
    display: flex !important; /* Show active page with flex display */
    flex-direction: column;
    animation: fadeIn 0.5s ease forwards;
}

.wpcf7-form .page .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.wpcf7-form .center{
    display: flex;
    min-height: 400px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

.wpcf7-form .page > p,
.wpcf7-form .page > div,
.wpcf7-form .page .content > p,
.wpcf7-form .page .content > div {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    
}

.wpcf7-form .page > p{
    margin-block-start: 0;
    margin-block-end: 0;
}

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

/* Allow the map container to be full width */
.wpcf7-form .page > .full-field.map-container,
.wpcf7-form .page > div.googlemap-333,
.wpcf7-form .page .content > .full-field.map-container,
.wpcf7-form .page .content > div.googlemap-333 {
    width: 500px;
    max-width: 100%;
}

/* Form navigation */
.form-nav {
    display: flex;
    justify-content: space-between;
    /* margin: 0 0; */
    /* position: absolute;
    bottom: 0;
    left: 0;
    right: 0; */
    padding: 0 20px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    margin-top: 2rem;
}

/* Position next button to the right when it's the only button */
.form-nav:has(.form-next:only-child) {
    justify-content: flex-end;
}

form.wpcf7-form.init{
    width: fit-content;
    margin: 0 auto;
    border: 2px solid var(--wp--preset--color--primary);
    border-radius: 25px;
    background: white;
    padding: 0rem 3rem;
    max-width: calc(100% - 6rem);
}

/* Fallback for browsers that don't support :has */
.form-nav > .form-next:only-child {
    margin-left: auto;
}

.form-prev,
.form-next,
input.wpcf7-submit {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--background);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: box-shadow .3s, transform .3s;
    box-shadow: 0px 0px 0px 2px white;
    font-size: medium;
}
.form-prev:hover,
.form-next:hover {
    text-shadow: 0 0 4px #007348;
}

.form-prev {
    background-color: var(--wp--preset--color--secondary);
}

.form-prev:hover,
.form-next:hover,
input.wpcf7-submit:hover {
    box-shadow: 3px 2px 10px #0080003b;
    transform: translate(0px, -1px);
    cursor: pointer;
}

/* Progress indicator */
.form-progress {
    display: none;
    /* display: flex; */
    justify-content: center;
    margin-bottom: 2rem;
}

.step-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.step-indicator.active {
    background-color: var(--wp--preset--color--primary);
}

/* Modern Checkbox styling */
.wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.wpcf7-checkbox .wpcf7-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-align: center;
    position: relative;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin: 0;
}

.wpcf7-checkbox .wpcf7-list-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    transform: translateY(-3px);
}

.wpcf7-checkbox .wpcf7-list-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    margin: 0.7rem auto;
    display: block;
}

.wpcf7-checkbox .wpcf7-list-item-label {
    margin: 0 auto;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
}

.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked {
    background-color: var(--wp--preset--color--foreground);
    border-color: var(--wp--preset--color--foreground);
}

.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
}

.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:hover {
    border-color: var(--wp--preset--color--foreground);
}

/* Selected item styling */
.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"]:checked ~ .wpcf7-list-item-label {
    color: var(--wp--preset--color--foreground);
    font-weight: 700;
}

/* Checkbox icon styling */
.checkbox-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f5f5f5;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.checkbox-icon:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.checkbox-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Style for checked icons */
.checkbox-icon.checked {
    background-color: var(--wp--preset--color--foreground);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.checkbox-icon.checked img {
    filter: brightness(0) invert(1); /* Make the icon white when checked */
}

/* Container for checkboxes - add a cool layout */
.wpcf7-form .page p:has(.wpcf7-checkbox) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    padding: 1rem 0;
}

.wpcf7-form .wpcf7-spinner{
    margin: 0;
}

/* Google Map field styling */
.gmfcf_map {
    height: 300px;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.wpcf7-googlemap {
    margin-bottom: 1rem;
}

.full-field {
    margin-bottom: 1rem;
}

/* Map location container positioning */
.map-container {
    position: relative;
}

.map-location-container {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    margin: 1rem;
    width: calc(100% - 2rem);
}

.map-location-container input.wpcf7-googlemap {
    width: 100%;
    margin-bottom: 0;
    border: 1px solid var(--wp--preset--color--primary);
    background-color: white;
}

.full-field label,
.slim-field-right label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

/* Animation for step transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wpcf7-form .page.active {
    animation: fadeIn 0.5s ease forwards;
}

/* Mobile styles for multistep form */
@media (max-width: 768px) {
    .wpcf7-checkbox {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wpcf7-checkbox .wpcf7-list-item {
        margin: 0.3rem 0;
        width: 60px;
    }

    form.wpcf7-form.init {
        padding: 0rem 1.5rem;
        max-width: calc(100% - 3rem);
    }
    
    .checkbox-icon {
        width: 40px;
        height: 40px;
    }
    
    .gmfcf_map {
        height: 200px;
    }
    
    .map-location-container {
        position: absolute;
        width: 90%;
        left: 5%;
        right: 5%;
        padding: 8px;
    }
    
    .map-location-container input.wpcf7-googlemap {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .form-nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    input.wpcf7-submit {
        flex-direction: column;
        gap: 0.5rem;
        display: flex;
        position: relative;
        width: 100%;
        max-width: 90%;
        padding: 1rem;
    }
    
    .form-prev, 
    .form-next {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
    }
    
    .form-progress {
        margin-bottom: 1.5rem;
    }
    
    /* Improve tappable areas on mobile */
    .wpcf7-checkbox .wpcf7-list-item-label {
        padding: 0.5rem 0;
    }
    
    .wpcf7-checkbox input[type="checkbox"] {
        min-width: 20px;
        min-height: 20px;
    }
    
    /* Field focus states for better mobile UX */
    input:focus, 
    textarea:focus, 
    select:focus {
        outline: 2px solid var(--wp--preset--color--primary);
        box-shadow: 0 0 5px rgba(0, 211, 135, 0.3);
    }
}

/* Submit button alignment */
.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="submit"] {
    margin-left: auto;
    display: block;
}

/* Container for submit button */
.wpcf7-form p:has(.wpcf7-submit),
.wpcf7-form p:has(input[type="submit"]) {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Toast Notification for Form Responses */
.wpcf7 form .wpcf7-response-output {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    padding: 12px 20px;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-size: 14px;
    font-weight: 500;
    transform: translateY(150%);
    transition: transform 0.3s ease-in-out;
    animation: toast-slide-in 0.3s forwards;
    color: white;
    background-color: var(--wp--preset--color--foreground);
    border: none;
    cursor: pointer;
}

/* Success toast */
.wpcf7 form.sent .wpcf7-response-output {
    background-color: var(--wp--preset--color--foreground);
    border: none;
}

/* Error toast */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    background-color: var(--wp--preset--color--foreground);
    border: none;
}

/* Loading toast */
.wpcf7 form.submitting .wpcf7-response-output {
    background-color: var(--wp--preset--color--foreground);
    border: none;
}

/* Reset positioning from previous implementation */
#wpcf7-f21-o1.wpcf7 form.invalid .wpcf7-response-output,
#wpcf7-f21-o2.wpcf7 form.invalid .wpcf7-response-output {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: auto;
}

/* Toast animations */
@keyframes toast-slide-in {
    from {
        transform: translateY(150%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(150%);
        opacity: 0;
    }
}

/* Auto-dismiss animation class that can be added with JavaScript */
.toast-dismiss {
    animation: toast-slide-out 0.3s forwards;
}

/* Close button for toast */
.toast-close-btn {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
    font-weight: bold;
}

.toast-close-btn:hover {
    opacity: 1;
}

/* Make toast responsive */
@media (max-width: 480px) {
    .wpcf7 form .wpcf7-response-output {
        left: 20px;
        right: 20px;
        max-width: none;
        text-align: center;
    }
}

/* Custom List Styling */
.bright-list {
    list-style: none;
    padding-left: 1.5rem;
}

.bright-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.bright-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url('../twentytwentytwo-child/assets/icons/bolt-filled.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Section Spacing */
section.wp-block-group:not(:first-child) {
    padding-top: 4rem;
}

section.wp-block-group:not(:last-child) {
    padding-bottom: 4rem;
}

/* Override for groups that are both not first and not last to avoid double spacing */
section.wp-block-group:not(:first-child):not(:last-child) {
    padding-top: 2rem;
    padding-bottom: 2rem;
}