/*
Theme Name: Mainspring 2026
Theme URI: 
Author: 
Author URI: 
Description: Custom styles for shortcodes and highly specific layout elements.
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mainspring-2026

TABLE OF CONTENTS:
1.0 - Global Elements
    1.1 Hotspots
    1.2 Footer Subscribe Form
    1.3 Breadcrumbs
2.0 - Projects Directory Page
    2.1 Filter Menu Layout
    2.2 Filter Menu Interactive UI
    2.3 Projects Grid Structure
    2.4 Project Cards (Flexbox Layout)
    2.5 Project Card Interactivity
*/
strong {
	font-weight: 600!important;
}
.wp-site-blocks {
    overflow-x: clip;
}
/* ==========================================================================
   1.0 GLOBAL ELEMENTS
   ========================================================================== */

/* 1.1 Hotspots */
.hotspots-interaction h2.hotspot-title {
    font-size: 24px;
    color: var(--wp--preset--color--mainspring-black);
    text-align: left;
}

/* 1.2 Footer Subscribe Form */
body .mainspring-subscribe-form,
.editor-styles-wrapper .mainspring-subscribe-form {
    display: flex !important;
    width: 100% !important;
    max-width: 400px !important;
    margin-top: 15px !important;
}

footer .wp-block-image {
	max-width:200px;
}
body .mainspring-subscribe-form .subscribe-input,
.editor-styles-wrapper .mainspring-subscribe-form .subscribe-input {
    flex-grow: 1 !important; 
    padding: 12px 12px !important;
    border: none !important;
    font-family: franklin-gothic-atf, sans-serif !important;
    font-size: 14px !important;
    color: var(--wp--preset--color--mainspring-black) !important;
    background-color: var(--wp--preset--color--mainspring-white) !important;
    border-radius: 0 !important; 
    outline: none !important;
}

body .mainspring-subscribe-form .subscribe-input::placeholder,
.editor-styles-wrapper .mainspring-subscribe-form .subscribe-input::placeholder {
    color: var(--wp--preset--color--mainspring-black) !important;
    opacity: 0.7 !important;
}

body .mainspring-subscribe-form .subscribe-submit,
.editor-styles-wrapper .mainspring-subscribe-form .subscribe-submit {
    background-color: var(--wp--preset--color--mainspring-gray) !important; 
    color: var(--wp--preset--color--mainspring-white) !important;
    border: none !important;
    padding: 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    border-radius: 0 !important; 
}

body .mainspring-subscribe-form .subscribe-submit svg,
.editor-styles-wrapper .mainspring-subscribe-form .subscribe-submit svg {
    width: 24px !important;
    height: 24px !important;
}

body .mainspring-subscribe-form .subscribe-submit:hover,
.editor-styles-wrapper .mainspring-subscribe-form .subscribe-submit:hover {
    background-color: var(--wp--preset--color--mainspring-blue) !important;
}

/* Less than 360px: Stack the Subscribe Form */
@media screen and (max-width: 360px) {
    body .mainspring-subscribe-form,
    .editor-styles-wrapper .mainspring-subscribe-form {
        flex-direction: column !important;
        gap: 8px !important; 
    }
    body .mainspring-subscribe-form .subscribe-submit,
    .editor-styles-wrapper .mainspring-subscribe-form .subscribe-submit {
        width: 100% !important;
        padding: 12px 15px !important; 
    }
}

/* 1.3 Breadcrumbs */
.mainspring-breadcrumbs {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--wp--preset--color--mainspring-dark-gray, #666666) !important;
	margin:-10px 0 0 0!important;
}

.mainspring-breadcrumbs a {
    color: var(--wp--preset--color--mainspring-black, #000000) !important;
    text-decoration: none !important;
    transition: opacity 0.3s ease !important;
}

.mainspring-breadcrumbs a:hover {
    opacity: 0.6 !important;
}

.breadcrumb-separator {
    margin: 0 8px !important;
    color: var(--wp--preset--color--mainspring-dark-gray, #666666) !important;
}

.breadcrumb-current {
    font-weight: 600 !important;
    color: var(--wp--preset--color--mainspring-dark-gray, #666666) !important;
}

/* ==========================================================================
   2.0 PROJECTS DIRECTORY PAGE
   ========================================================================== */

/* 2.1 Filter Menu Layout */
.projects-filter-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px 20px; 
    margin-bottom: 40px;
    padding-top: 0;
}

.filter-header {
    display: flex !important;
    align-items: center !important; 
    height: 100% !important; 
}

.projects-page-title {
    /* font-size: 4vw !important; */ 
    font-weight: 300 !important; 
    margin: 0 !important;
    line-height: 1 !important;
    color: var(--wp--preset--color--mainspring-black) !important;
}

.filter-group h4 {
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid var(--wp--preset--color--mainspring-black);
    padding-bottom: 5px;
    font-family: rockwell, serif;
}

/* 2.2 Filter Menu Interactive UI */
.filter-title-with-all {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.all-toggle {
    font-size: 10px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: var(--wp--preset--color--mainspring-dark-gray, #666666) !important;
    display: flex !important;
    align-items: center !important;
}

.all-toggle input {
    margin-right: 5px !important;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-list input {
    margin-right: 8px;
}

.value-color-swatch {
    display: inline-block;
    width: 24px;
    height: 8px;
    margin-right: 8px;
}

/* 2.3 Projects Grid Structure */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 45px 15px;
}

/* 2.4 Project Cards (Flexbox Layout) */
.project-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; 
    height: 100% !important;
    position: relative !important; 
}

/* TOP: Dynamic Colored Bars */
.project-bars {
    display: flex !important;
    height: 6px !important; 
    width: 100% !important;
    margin-bottom: 10px !important; 
}
.color-bar-black {
    flex-grow: 1 !important; 
    background-color: var(--wp--preset--color--mainspring-black, #000000) !important;
    margin: 0 !important; 
}

.color-bar {
    width: 25px !important; 
    height: 100% !important;
    margin: 0 !important; 
    flex-shrink: 0 !important; 
}

/* BOTTOM: Content Wrapper */
.project-content-group {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 0 !important; 
    width: 100% !important;
}

.project-title {
    font-size: 24px !important;
    margin: 0 0 2px 0 !important; 
    line-height: 1.2 !important;
}

.project-county-label {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--wp--preset--color--mainspring-dark-gray);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Image forces a 4:3 aspect ratio and crops to fit */
.project-image {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    position: relative !important;
    overflow: hidden !important; 
}

.project-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
    margin: 0 !important; 
}

/* 2.5 Project Card Interactivity */
.project-title a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Overlay Trick: Stretches the link to cover the entire card */
.project-title a::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important; 
}

.project-image img {
    transition: filter 0.4s ease !important; 
}

/* Hovering ANYWHERE on the card triggers the grayscale image fade */
.project-card:hover .project-image img {
    filter: grayscale(100%) !important;
}

/* ==========================================================================
   2.6 PROJECTS PAGE RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media screen and (max-width: 1280px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
    .projects-filter-menu { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
    .filter-empty { display: none !important; } 
}

@media screen and (max-width: 760px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-filter-menu { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
    
    .projects-filter-menu .filter-header {
        grid-column: 1 / -1 !important; 
        height: auto !important; 
    }
}

@media screen and (max-width: 480px) {
    .projects-grid { grid-template-columns: 1fr; }
    .projects-filter-menu { grid-template-columns: 1fr; gap: 30px; }
    .projects-page-title { font-size: 48px !important; } 
}

/* ==========================================================================
   MAINSPRING: SINGLE PROJECT DYNAMIC GALLERY
   ========================================================================== */

.mainspring-dynamic-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 20px !important;
}

.mainspring-dynamic-gallery .gallery-item {
    margin: 0 !important;
    aspect-ratio: 4 / 3 !important;
    position: relative !important;
    overflow: hidden !important;
}

.mainspring-dynamic-gallery .gallery-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}
/* ==========================================================================
   MAINSPRING: DYNAMIC PROJECT GALLERY STYLES
   ========================================================================== */

/* 1. Hide captions in the page layout (Lightbox will still read them!) */
body .mainspring-dynamic-gallery figcaption,
.editor-styles-wrapper .mainspring-dynamic-gallery figcaption {
    display: none !important; 
}

/* 2. STANDARD GRID: Intelligently crop images to keep rows uniform */
body .mainspring-dynamic-gallery.gallery-layout-grid figure.wp-block-image img,
.editor-styles-wrapper .mainspring-dynamic-gallery.gallery-layout-grid figure.wp-block-image img {
    aspect-ratio: 4 / 3 !important; /* Change to 1/1 if you prefer perfect squares */
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

/* 3. MASONRY LAYOUT: CSS Columns logic */
body .mainspring-dynamic-gallery.gallery-layout-masonry,
.editor-styles-wrapper .mainspring-dynamic-gallery.gallery-layout-masonry {
    display: block !important;
    column-count: 3 !important;
    column-gap: var(--wp--preset--spacing--md) !important;
}

body .mainspring-dynamic-gallery.gallery-layout-masonry figure.wp-block-image,
.editor-styles-wrapper .mainspring-dynamic-gallery.gallery-layout-masonry figure.wp-block-image {
    break-inside: avoid !important; /* Prevents an image from being split across columns */
    margin: 0 0 var(--wp--preset--spacing--md) 0 !important;
    display: block !important;
    width: 100% !important;
}

body .mainspring-dynamic-gallery.gallery-layout-masonry figure.wp-block-image img,
.editor-styles-wrapper .mainspring-dynamic-gallery.gallery-layout-masonry figure.wp-block-image img {
    width: 100% !important;
    height: auto !important; /* Lets the height be completely fluid */
    display: block !important;
}

/* 4. MASONRY RESPONSIVE BREAKPOINTS */
@media screen and (max-width: 820px) {
    body .mainspring-dynamic-gallery.gallery-layout-masonry {
        column-count: 2 !important;
    }
}

@media screen and (max-width: 600px) {
    body .mainspring-dynamic-gallery.gallery-layout-masonry {
        column-count: 1 !important;
    }
}
/* ==========================================================================
   SINGLE PROJECTS TEMPLATE
   ========================================================================== */

.single-project .taxonomy-project-location a {
    color: var(--wp--preset--color--mainspring-black);
    text-decoration: none;
}
.single-project .taxonomy-project-location a:hover {
    color: var(--wp--preset--color--mainspring-blue);
    text-decoration: none;
}
.single-project .project-bars {
    height: 8px !important;
}
.single-project .wp-block-post-navigation-link a {
    color: var(--wp--preset--color--mainspring-black);
    text-decoration: none;
}
.single-project .post-navigation-link-previous {
    padding: 15px 15px 15px 0;
}
.single-project .post-navigation-link-next {
    padding: 15px 0 15px 15px;
}
.single-project .post-navigation-link-previous:hover {
    background-color: var(--wp--preset--color--mainspring-blue);
}
.single-project .post-navigation-link-next:hover {
    background-color: var(--wp--preset--color--mainspring-blue);
}
.single-project .wp-block-post-navigation-link:hover,
.single-project .wp-block-post-navigation-link:hover a {
    color: var(--wp--preset--color--mainspring-white) !important;
}

/* ==========================================================================
   CUSTOM RESPONSIVE ROW
   ========================================================================== */

@media screen and (max-width: 1200px) {
    .custom-responsive-row {
        display: grid !important; 
        grid-template-columns: repeat(3, 1fr) !important; 
        width: 100% !important;
        gap: 30px !important; 
    }
    .custom-responsive-row > * {
        min-width: 0 !important; 
    }
    .custom-responsive-row > :nth-child(4) {
        grid-column-start: 2 !important;
    }
}

@media screen and (max-width: 760px) {
    .custom-responsive-row {
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    .custom-responsive-row > :nth-child(4) {
        grid-column-start: auto !important;
    }
}

@media screen and (max-width: 600px) {
    .custom-responsive-row {
        grid-template-columns: 1fr !important; 
        gap: 50px !important; 
    }
	.custom-responsive-row .wp-block-group {
		text-align:center;
	}
	.custom-responsive-row .wp-container-core-group-is-layout-49a87719 > * + * {
		margin-block-start: 50px; 
	}
	.custom-responsive-row figure.wp-block-image {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ==========================================================================
   FLUID SPACING OVERRIDES
   ========================================================================== */

:root {
    --wp--preset--spacing--sm: 20px;
    --wp--preset--spacing--md: 40px;
    --wp--preset--spacing--lg: 60px;
}

@media screen and (max-width: 1024px) {
    :root {
        --wp--preset--spacing--sm: 20px;
        --wp--preset--spacing--md: 30px;
        --wp--preset--spacing--lg: 60px;
    }
}

@media screen and (max-width: 820px) {
    :root {
        --wp--preset--spacing--sm: 20px; 
        --wp--preset--spacing--md: 20px;
        --wp--preset--spacing--lg: 40px;
    }
}

/* ==========================================================================
   FSE STICKY NAV FIX: Unwrap the Header Template Part
   ========================================================================== */
   
header.wp-block-template-part {
    display: contents !important;
}

/* ==========================================================================
   HERO ANIMATION IFRAME RESPONSIVE HEIGHT
   ========================================================================== */

@media screen and (max-width: 767px) {
    /* 1. Stop the wrapper from forcing 100vh on mobile */
    .hero-flex-wrapper {
        height: auto !important;
        min-height: 0 !important;
    }
    
    /* 2. Perfect shrink-wrap math: 14vw (logo) + 198px (padding/text) */
    iframe.hero-animation-iframe {
        height: calc(5vw + 198px) !important;
        min-height: 0 !important; 
        border: none !important;
        display: block !important;
    }
}

/* Adjust slightly for smaller screens where logo jumps to 15vw */
@media screen and (max-width: 479px) {
    iframe.hero-animation-iframe {
        height: calc(4vw + 185px) !important; 
    }
}


/* ==========================================================================
   Default Breakpoints
   ========================================================================== */
@media only screen and (max-width: 820px) {
	.is-style-columns-reverse {
		flex-direction: column-reverse;
	}
}
/* ==========================================================================
   MAINSPRING: PEOPLE DIRECTORY STYLES
   ========================================================================== */

.mainspring-people-directory {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--lg);
}

.person-card {
    display: flex;
    gap: var(--wp--preset--spacing--md);
    align-items: flex-start;
}

.person-image-wrapper {
    flex: 0 0 250px;
    aspect-ratio: 3 / 4 !important; /* THE FIX: Move the math to the container! */
    border-radius: 4px;
    overflow: hidden;
}

.person-image {
    width: 100% !important;
    height: 100% !important; /* THE FIX: Force the image to exactly match the container */
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}
.person-details {
    flex: 1;
}

.person-name {
    margin: 0 0 5px 0 !important;
    font-size: 28px;
    color: var(--wp--preset--color--mainspring-black);
}

.person-position {
    font-family: rockwell, serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--wp--preset--color--mainspring-dark-gray);
    margin-bottom: 15px;
}

.person-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0 15px;
    margin-bottom: 15px;
    font-family: franklin-gothic-atf, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.person-contact-info a {
    color: var(--wp--preset--color--mainspring-blue);
    text-decoration: none;
}

.person-contact-info a:hover {
    color: var(--wp--preset--color--mainspring-black);
}

/* Mobile Layout: Stack the image on top of the text */
@media screen and (max-width: 600px) {
    .person-card {
        flex-direction: column;
    }
    
    .person-image-wrapper {
        flex: 1 1 auto;
        width: 100%!important;
        max-width: none!important;
		height:auto;
    }
}

/* ==========================================================================
   MAINSPRING: PEOPLE LIST STYLES (CONTACT PAGE FORMAT)
   ========================================================================== */

/* 1. The Dynamic Grid Wrapper (Strictly 1 or 2 columns, NEVER 3) */
.mainspring-people-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(max(min(100%, 380px), calc(50% - 40px)), 1fr)) !important;
    column-gap: 60px !important; 
    row-gap: 0 !important;
    
    /* THE SIDEBAR SAVIOR: Brings back Container Queries! */
    container-type: inline-size !important; 
}

/* 2. Base Layout (Mockup 1: Desktop Side-by-Side) */
.people-list-item {
    display: flex !important;
    flex-direction: row !important; 
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 24px 0 !important;
    border-top: 1.5px solid var(--wp--preset--color--mainspring-black) !important;
    gap: 16px !important;
	max-width:700px;
}

/* 3. Left Side Typography */
.people-list-left {
    flex: 1 1 auto !important;
    min-width: 0 !important; 
}
.people-list-name {
    font-family: rockwell, serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--wp--preset--color--mainspring-black) !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
}
.people-list-title {
    font-family: franklin-gothic-atf, sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--wp--preset--color--mainspring-black) !important;
}

/* 4. Right Side Typography */
.people-list-right {
    flex: 0 0 auto !important; 
    min-width: 0 !important; 
    text-align: right !important; 
    word-break: break-word !important; 
}
.people-list-email,
.people-list-phone {
    display: block !important;
    font-family: franklin-gothic-atf, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--wp--preset--color--mainspring-blue) !important;
    text-decoration: none !important;
    line-height: 1.6 !important;
}
.people-list-email:hover,
.people-list-phone:hover {
    color: var(--wp--preset--color--mainspring-black) !important;
}

/* ==========================================================================
   RESPONSIVE & SIDEBAR OVERRIDES (Mockups 2 & 3)
   ========================================================================== */

/* TABLET MOCKUP: Stack the text when the entire browser gets small */
@media screen and (max-width: 1024px) {
    .people-list-item {
        flex-direction: column !important; 
        gap: 8px !important;
    }
    .people-list-right {
        text-align: left !important; 
    }
}

/* SIDEBAR FIX: Stack the text when the browser is wide, but the column is narrow! */
@container (max-width: 500px) {
    .people-list-item {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .people-list-right {
        text-align: left !important;
    }
}

/* ==========================================================================
   MAINSPRING: FLUID GOOGLE MAPS COLUMN
   ========================================================================== */

/* 1. Force the parent column to use Flexbox so it can stretch */
body .wp-block-column.fluid-map-column,
.editor-styles-wrapper .wp-block-column.fluid-map-column,
.map-columns .wp-block-cover {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important; /* Forces this column to match the height of the column next to it */
    padding: 0 !important; /* Optional: remove if you want space around the map */
    min-height: 500px; /* Safety net for mobile devices */
}

/* 2. Target the Custom HTML block and the iFrame itself */
body .fluid-map-column .wp-block-html,
body .fluid-map-column iframe,
.editor-styles-wrapper .fluid-map-column .wp-block-html,
.editor-styles-wrapper .fluid-map-column iframe {
    flex-grow: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important; /* Forces the iframe to stretch to the bottom */
    border: none !important;
    display: block !important;
    margin: 0 !important;
}

/* 3. Mobile Override: Give the map a fixed height when columns stack */
@media screen and (max-width: 600px) {
    body .wp-block-column.fluid-map-column,
    .editor-styles-wrapper .wp-block-column.fluid-map-column {
        min-height: 350px !important; 
    }
	.map-columns .wp-block-cover {
		display:none!important;
		/* min-height: 200px; /* Safety net for mobile devices */
	}
}

/* 1. Establish the main boundary and stacking context */
.linked-cover-box {
  position: relative !important;
  z-index: 0; 
}

/* 2. Push the background image and dark overlay to the very back */
.linked-cover-box .wp-block-cover__image-background,
.linked-cover-box .wp-block-cover__background {
  z-index: -1 !important;
}

/* 3. Strip positioning so the invisible link can escape */
.linked-cover-box .wp-block-cover__inner-container,
.linked-cover-box p {
  position: static !important;
}

/* 4. Stretch the invisible link across the entire box */
.linked-cover-box a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10; 
}

/* 5. Clean up the text link styling and add text-shadow */
.linked-cover-box a {
  color: inherit !important;
  text-decoration: none !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7) !important;
}

/* Optional hover effect for the text */
.linked-cover-box a:hover {
  color: inherit !important;
}

/* ==========================================================================
   MAINSPRING: FULL SUBSCRIBE FORM (PAGE LEVEL)
   ========================================================================== */

.mainspring-form-container.full-subscribe-layout {
    max-width: 600px;
    width: 100%;
}

.mainspring-full-form .form-row {
    margin-bottom: 24px;
}

/* Names sit side-by-side on desktop */
.mainspring-full-form .form-row-names {
    display: flex;
    flex-wrap: wrap; /* Allows them to stack if things get too tight */
    gap: var(--wp--preset--spacing--small, 16px) !important; 
}

.mainspring-full-form .form-group {
    flex: 1;
    min-width: 200px; /* Prevents fields from squishing into oblivion */
    display: flex;
    flex-direction: column;
}

.mainspring-full-form label {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--wp--preset--color--mainspring-black);
    margin-bottom: 8px;
}

.mainspring-full-form label .required {
    color: var(--wp--preset--color--mainspring-red);
}

.mainspring-full-form input {
    width: 100%;
    /* THE OVERFLOW FIX: Forces padding and borders to stay inside the 100% width limit */
    box-sizing: border-box !important; 
    max-width: 100%;
    
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 2px;
    font-family: var(--wp--preset--font-family--body);
    font-size: 16px;
    color: var(--wp--preset--color--mainspring-black);
    background-color: var(--wp--preset--color--mainspring-white);
    transition: border-color 0.2s ease;
}

.mainspring-full-form input:focus {
    outline: none;
    border-color: var(--wp--preset--color--mainspring-blue);
}

/* The Submit Button */
.mainspring-full-form .full-submit-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 200px;
    padding: 16px 32px;
    background-color: var(--wp--preset--color--mainspring-blue);
    color: var(--wp--preset--color--mainspring-white);
    font-family: var(--wp--preset--font-family--heading);
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.mainspring-full-form .full-submit-btn:hover {
    background-color: var(--wp--preset--color--mainspring-black);
    transform: translateY(-2px);
}

/* Success Message Styling */
.mainspring-form-container .custom-success-message {
    padding: 24px;
    background-color: var(--wp--preset--color--mainspring-off-white);
    border-left: 4px solid var(--wp--preset--color--mainspring-green);
    border-radius: 2px;
}

.mainspring-form-container .custom-success-message p {
    margin: 0;
    font-size: 16px;
    color: var(--wp--preset--color--mainspring-dark-gray);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .mainspring-full-form .form-row-names {
        flex-direction: column;
        gap: 24px;
    }
    .mainspring-full-form .full-submit-btn {
        width: 100%;
    }
}