/*
Theme Name: GG Dev Client Theme Child
Theme URI: https://gg-dev.co/
Description: Child theme for GG Dev Client Theme
Author: GG Dev
Author URI: https://gg-dev.co/
Template: ggdevclienttheme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ggdevclienttheme-child
*/

/* =========================================================
 * GLOBAL / MISC
 * ======================================================= */

/* Chat */
button#gg-ai-button,
#gg-ai-box {
    left: 25px;
    right: inherit;
}

/* Icons */
i.fa-solid.fa-link,
i.fa-solid.fa-location-dot,
i.fa-solid.fa-phone {
    font-family: 'FontAwesome' !important;
}

/* =========================================================
 * HEADER
 * ======================================================= */

header.site-header .c-header__logo a:focus {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

header.site-header .c-header__logo a,
header.site-header .c-header__logo img {
    max-height: 50px;
    display: block;
    padding: 3px 0;
}

/* =========================================================
 * FOOTER
 * ======================================================= */

footer {
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.18);
}

.footer-social {
    padding: 1rem 0;
}

.footer-social .footer-icons {
    justify-content: space-between;
}

/* CTA */
.wp-block-ggb-cta-fw.cta-fw {
    box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.18);
}

/* =========================================================
 * HOMEPAGE COLUMNS
 * ======================================================= */

.homepage-intro-columns
    .wp-block-column.is-layout-flow.wp-block-column-is-layout-flow {
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.homepage-intro-columns
    .wp-block-column
    .styled-image-block
    .styled-image-wrapper.styled-image-original
    .styled-image-aspect {
    max-height: 200px;
}

.homepage-intro-columns h3.wp-block-heading,
.homepage-intro-columns p,
.homepage-intro-columns .wp-block-buttons {
    margin-block-start: 0.75rem;
}

.testimonial-slider .stars {
    display: none;
}

/* =========================================================
 * ABOUT PAGE TEAM GRID
 * ======================================================= */

.team-members-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.heading-with-hzline .horz-line {
    background-color: #de5d0d;
}

/* =========================================================
 * CONTACT FORMS – BASE LAYOUT (CF7)
 * ======================================================= */

/* Make padding/borders count toward width for everything in the form */
.wpcf7,
.wpcf7 * {
    box-sizing: border-box;
}

/* CF7 card container */
.wpcf7 {
    background-color: #edeff1;
    padding: 3rem 2rem !important; /* equal left/right padding */
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    max-width: 100%;
}

.wpcf7-form {
    width: 100%;
}

.wpcf7 h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f3e68;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Main rows (top group + inner div <p>s) use flex */
.wpcf7 .wpcf7-form > p,
.wpcf7 .wpcf7-form > div > p {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 1rem;
    justify-content: space-between;
    width: 100%;
}

/* Text inputs in those rows */
.wpcf7 .wpcf7-form > p input[type="text"],
.wpcf7 .wpcf7-form > p input[type="email"],
.wpcf7 .wpcf7-form > p input[type="tel"],
.wpcf7 .wpcf7-form > div > p input[type="text"],
.wpcf7 .wpcf7-form > div > p input[type="email"],
.wpcf7 .wpcf7-form > div > p input[type="tel"] {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 240px;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    background: #ffffff;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px #ccc;
    transition: box-shadow 0.2s;
}

.wpcf7 .wpcf7-form > p input[type="text"]:focus,
.wpcf7 .wpcf7-form > p input[type="email"]:focus,
.wpcf7 .wpcf7-form > p input[type="tel"]:focus,
.wpcf7 .wpcf7-form > div > p input[type="text"]:focus,
.wpcf7 .wpcf7-form > div > p input[type="email"]:focus,
.wpcf7 .wpcf7-form > div > p input[type="tel"]:focus {
    box-shadow: inset 0 0 0 2px #36b7a8;
    outline: none;
}

/* Textareas */
.wpcf7 textarea {
    width: 100%;
    min-height: 1rem; /* keep from collapsing (matches your last rule) */
    resize: vertical;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    background: #ffffff;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px #ccc;
    transition: box-shadow 0.2s;
}

.wpcf7 textarea:focus {
    box-shadow: inset 0 0 0 2px #36b7a8;
    outline: none;
}

/* Global font for controls + placeholders */
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    color: #666;
}

/* Submit button */
.wpcf7 input[type="submit"] {
    background: #36b7a8;
    color: #ffffff;
    font-weight: bold;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 1rem;
}

.wpcf7 input[type="submit"]:hover {
    background: #2da292;
}

.wpcf7 input[type="submit"]:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* CF7 response message */
.wpcf7 .wpcf7-response-output {
    margin-top: 1rem;
    color: #03678e;
    display: block;
}

/* Paragraphs that should behave like normal text, not flex rows */
.wpcf7 p.waiver-text-sc-reg,
.wpcf7 p.waiver-checkbox-sc,
.wpcf7 p.waiver-input-sc,
.wpcf7 .session-availability p {
    display: block;
}

/* Stack everything nicely on smaller screens */
@media (max-width: 768px) {
    .wpcf7 .wpcf7-form > p,
    .wpcf7 .wpcf7-form > div > p {
        flex-direction: column;
        align-items: stretch;
    }

    .wpcf7 .wpcf7-form > p input[type="text"],
    .wpcf7 .wpcf7-form > p input[type="email"],
    .wpcf7 .wpcf7-form > p input[type="tel"],
    .wpcf7 .wpcf7-form > div > p input[type="text"],
    .wpcf7 .wpcf7-form > div > p input[type="email"],
    .wpcf7 .wpcf7-form > div > p input[type="tel"] {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* =========================================================
 * CONTACT FORMS – SPECIAL FIELDS / STRIPE / CAMP
 * ======================================================= */

/* Select styling */
select.wpcf7-form-control.wpcf7-select {
    flex: 1 1 calc(50% - 0.5rem);
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.75rem;
    background: #fff;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px #ccc;
    transition: box-shadow 0.2s;
    font-weight: 100;
}

/* Remove stray <br> in availability and session select */
.wpcf7 .session-availability p br,
div#camp-session-select-container p br {
    display: none;
}

/* Availability layout */
.session-availability .camp-session-info {
    display: flex;
    gap: 0.5rem;
}

.session-availability .camp-session-info .camp-remaining {
    font-weight: 700;
}

/* Session select wrapper */
div#camp-session-select-container p {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
}

/* Stripe buttons */
.wpcf7-stripe button.first,
.wpcf7-stripe button.second {
    background: #dd2925;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 20px;
    cursor: pointer;
}

.wpcf7-stripe button.first:hover,
.wpcf7-stripe button.second:hover {
    background: #dd2925;
    color: #d8d8d8;
}

.wpcf7 .wpcf7-stripe .wpcf7-form-control-wrap .card-element.wpcf7-form-control {
    margin-left: 20px;
    margin-right: 35px;
    border-radius: 5px;
}

/* Summer Camp Registration Page specifics */
div.camp-session-info p.camp-dates {
    display: block;
    width: 85%;
}

div.extra-care p {
    display: block;
    width: 85%;
}

div.extra-care span.wpcf7-list-item.first.last {
    margin-left: -0.25rem;
}

strong.camp-remaining-label {
    color: #40a7fc;
    font-size: 1.15rem;
}

/* Waiver block on summer camp registration */
p.waiver-text-sc-reg {
    display: block;
    max-width: 85%;
    padding-left: 1.5rem;
}

p.waiver-checkbox-sc span.wpcf7-list-item.first.last {
    margin-left: 0;
    max-width: 90%;
    padding-left: 1.5rem;
}

p.waiver-input-sc {
    padding-left: 1.5rem;
}

/* =========================================================
 * CF7 SAFETY NET – KEEP FIELDS INSIDE THE CARD
 * ======================================================= */

/* Make every input/textarea/select sit within padding evenly */
.wpcf7 .wpcf7-form-control {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Also cap generic elements that might slip through */
.wpcf7 .wpcf7-form > p input[type="text"],
.wpcf7 .wpcf7-form > p input[type="email"],
.wpcf7 .wpcf7-form > p input[type="tel"],
.wpcf7 .wpcf7-form > div > p input[type="text"],
.wpcf7 .wpcf7-form > div > p input[type="email"],
.wpcf7 .wpcf7-form > div > p input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
    max-width: 100%;
}

/* =========================================================
 * CF7 – Normalize width of "Choose a session" + "Parent/Guardian"
 * ======================================================= */

/* Session dropdown */
.wpcf7 [data-name="selection-session"] .wpcf7-select {
    width: 95% !important;
    max-width: 95% !important;
    margin-inline: auto;   /* centers inside the form card */
}

/* Parent/Guardian full name field */
.wpcf7 p.waiver-input-sc .wpcf7-text {
    width: 95% !important;
    max-width: 95% !important;
    margin-inline: auto;
}
.wpcf7 form.wpcf7-form
div#camp-session-select-container
span.wpcf7-form-control-wrap[data-name="selection-session"]
select.wpcf7-form-control.wpcf7-select {
    width: 26vw !important;
    max-width: 26vw !important;
    margin-inline: auto;
    box-sizing: border-box;
}

/* =========================================================
 * MAILCHIMP MODAL
 * ======================================================= */

.mc-modal[aria-hidden="false"] {
    display: block;
}

.mc-modal[hidden] {
    display: none !important;
}

div#mc-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 9999;
}

div#mc-modal .mc-dialog {
    background: #fff;
    width: min(640px, 100%);
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 1.75rem;
    position: relative;
    max-height: 90vh;
    overflow: auto;
}

div#mc-modal .mc-dialog button.mc-close {
    border-style: none;
    background-color: #ffffff;
    font-size: 20px;
    padding: 0;
    cursor: pointer;
}

div#mc-modal .mc-dialog button.mc-close:hover {
    color: #d8d8d8;
}

div#mc-modal .mc-dialog h3#mc-modal-title {
    display: none;
}

div#mc-modal .mc-dialog .mc-fields {
    justify-content: space-between;
    display: flex;
    flex-direction: column;
}

div#mc-modal .mc-dialog .mc-fields .mc-field-group {
    margin-top: 5px;
}

div#mc-modal .mc-dialog .mc-fields input {
    width: 100%;
    padding-block: 0.5rem;
    border-radius: 5px;
}

div#mc-modal .mc-dialog .mc-fields button.button {
    background: #dd2925;
    color: #ffffff;
    border: none;
    padding: 5px 10px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    max-width: 100px;
    margin-top: 1rem;
}

/* =========================================================
 * CONTACT US PAGE
 * ======================================================= */

.contact-info {
    padding: 0;
}

div.contact-page-left-col .contact-text-fields .contact-field.phone,
div.contact-page-left-col .contact-text-fields .contact-field.address {
    display: none !important;
}

.wp-block-ggb-contact-info.contact-info {
    margin-block-start: 0.5rem;
}

/* =========================================================
 * RESPONSIVE TWEAKS – HEADER / FOOTER / TEAM GRID
 * ======================================================= */

@media only screen and (max-width: 975px) {
    header.site-header .header-nav .menu li a {
        font-size: 0.75rem;
    }

    header.site-header .c-header__logo a,
    header.site-header .c-header__logo img {
        max-height: 65px;
    }
}
@media only screen and (max-width: 974px) {
	.wpcf7 .wpcf7-form > p, .wpcf7 .wpcf7-form > div > p {
		gap: 0.5rem;
	}
}

@media only screen and (max-width: 921px) {
	header.site-header .header-nav .menu li a {
        font-size: 0.7rem;
    }
    header.site-header .c-header__logo a,
    header.site-header .c-header__logo img {
        max-height: 60px;
    }
}

@media only screen and (max-width: 880px) {
    header.site-header .c-header__logo a,
    header.site-header .c-header__logo img {
        max-height: 50px;
    }
}

@media only screen and (max-width: 820px) {
    header.site-header .header-nav .menu li a {
        font-size: 0.6rem;
    }

    header.site-header .c-header__logo a,
    header.site-header .c-header__logo img {
        max-height: 50px;
    }
	header.site-header .header-inner {
		padding-left: 0.5rem !important;
    	padding-right: 0.5rem !important;
		gap: 30px !important;
	}
}

@media only screen and (max-width: 768px) {
    .footer-social .footer-social-links-widget p {
        margin-block-start: 0;
        margin-block-end: 0.75rem;
        text-align: left;
    }

    .footer-social .footer-icons {
        gap: 0.75rem;
        flex-direction: column;
    }

    .footer-social-links-widget .footer-icons {
        flex-direction: row;
        padding-bottom: 0rem;
    }

    .cta-fw .two-col-cta-wrapper {
        align-items: normal;
    }

    .cta-fw .two-col-cta-wrapper .two-col-cta-button {
        text-align: left !important;
    }

    .cta-fw .two-col-cta-wrapper .two-col-cta-button .wp-block-buttons {
        justify-content: flex-start !important;
    }

    .c-header__logo {
        padding-left: 0;
    }

    .team-members-grid {
        gap: 0;
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }
	p.waiver-text-sc-reg, p.waiver-checkbox-sc span.wpcf7-list-item.first.last, p.waiver-input-sc {
    	padding-left: 0;
	}
	.wpcf7-stripe button {
    	margin-left: 0 !important;
	}
	.wpcf7 .wpcf7-form > p, .wpcf7 .wpcf7-form > div > p {
        gap: 0.25rem;
    }
	.wpcf7 form.wpcf7-form div#camp-session-select-container span.wpcf7-form-control-wrap[data-name="selection-session"] select.wpcf7-form-control.wpcf7-select {
		width: 86vw !important;
		max-width: 86vw !important;
	}
}

/* =========================================================
 * HERO SLIDER – MOBILE FIX (keep fade slider)
 * ======================================================= */
@media (max-width: 768px) {
    /* Make sure the media area actually has some height */
    .hero-slider__media {
        min-height: 250px !important;
        max-height: none !important;
    }

    .hero-slider__track {
        position: relative !important;
        width: 100%;
        height: 100%;
        min-height: 250px; /* match media min-height */
    }

    /* Keep slides stacked & fading, but don't hide them permanently */
    .hero-slider__slide {
        position: absolute !important;
        inset: 0;
        /* base state: hidden, JS toggles .is-active */
        opacity: 0;
        transition: opacity 0.8s ease-in-out;
    }

    .hero-slider__slide.is-active {
        opacity: 1;
    }
}



@media only screen and (max-width: 615px) {
	.wpcf7 form.wpcf7-form div#camp-session-select-container span.wpcf7-form-control-wrap[data-name="selection-session"] select.wpcf7-form-control.wpcf7-select {
		width: 80vw !important;
		max-width: 80vw !important;
	}
}

@media only screen and (max-width: 400px) {
	.wpcf7 form.wpcf7-form div#camp-session-select-container span.wpcf7-form-control-wrap[data-name="selection-session"] select.wpcf7-form-control.wpcf7-select {
		width: 75vw !important;
		max-width: 75vw !important;
	}
}

@media only screen and (max-width: 365px) {
    header.site-header .c-header__logo a,
    header.site-header .c-header__logo img {
        max-height: 40px;
    }
}

@media only screen and (max-width: 330px) {
    header.site-header .c-header__logo a,
    header.site-header .c-header__logo img {
        max-height: 35px;
    }
}

@media only screen and (max-width: 280px) {
    header.site-header .c-header__logo a,
    header.site-header .c-header__logo img {
        max-height: 30px;
    }
}

@media only screen and (max-width: 255px) {
    header.site-header .c-header__logo a,
    header.site-header .c-header__logo img {
        max-height: 23px;
    }
}