/* ============================================
   SIGNUP PAGE HEADER/FOOTER FIX - COMPLETE
   ============================================ */

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

/* Header container - reduce padding to shrink height */
body.page-template-signup .wp-site-blocks > .wp-block-group:first-child {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* Header inner container */
body.page-template-signup .wp-site-blocks > .wp-block-group:first-child > .wp-block-group {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem !important;
    flex-wrap: nowrap !important;
}

/* Logo - force correct size */
body.page-template-signup .wp-site-blocks > .wp-block-group:first-child .wp-block-image img {
    height: 60px !important;
    width: auto !important;
    max-width: 300px !important;
}

/* Navigation menu - center the items themselves */
body.page-template-signup .wp-site-blocks > .wp-block-group:first-child nav {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
}

body.page-template-signup .wp-site-blocks > .wp-block-group:first-child nav ul {
    display: flex !important;
    gap: 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

body.page-template-signup .wp-site-blocks > .wp-block-group:first-child nav li {
    margin: 0 !important;
    padding: 0 !important;
}

body.page-template-signup .wp-site-blocks > .wp-block-group:first-child nav a {
    font-size: 1rem !important;
    color: #000 !important;
    text-decoration: none !important;
}

/* Buttons container */
body.page-template-signup .wp-site-blocks > .wp-block-group:first-child .wp-block-buttons {
    display: flex !important;
    gap: 1rem !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

body.page-template-signup .wp-site-blocks > .wp-block-group:first-child .wp-block-button {
    display: inline-block !important;
    margin: 0 !important;
}

/* Log In button - white background with red hover */
body.page-template-signup .wp-site-blocks > .wp-block-group:first-child .wp-block-button:first-child a {
    background-color: var(--wp--preset--color--base-2) !important;
    color: var(--wp--preset--color--contrast) !important;
    padding: 4px 24px !important;
    border: none !important;
    font-weight: 400 !important;
    border-radius: 9999px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-family: var(--wp--preset--font-family--outfit) !important;
}

body.page-template-signup .wp-site-blocks > .wp-block-group:first-child .wp-block-button:first-child a:hover {
    background-color: #bd2025 !important;
    color: #fff !important;
}

/* Sign Up button - black background with red hover */
body.page-template-signup .wp-site-blocks > .wp-block-group:first-child .wp-block-button:last-child a {
    background-color: var(--wp--preset--color--contrast) !important;
    color: var(--wp--preset--color--base-2) !important;
    padding: 4px 24px !important;
    border-radius: 9999px !important;
    font-weight: 400 !important;
    transition: background-color 0.2s ease !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    display: inline-block !important;
    text-decoration: none !important;
    font-family: var(--wp--preset--font-family--outfit) !important;
}

body.page-template-signup .wp-site-blocks > .wp-block-group:first-child .wp-block-button:last-child a:hover {
    background-color: #bd2025 !important;
}

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

/* Footer main container */
body.page-template-signup .has-contrast-2-background-color {
    background-color: var(--wp--preset--color--contrast-2) !important;
    padding-top: 3rem !important;
    padding-bottom: 1rem !important;
}

/* Footer content wrapper */
body.page-template-signup .has-contrast-2-background-color > div {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* Main columns grid (logo column | spacer | three-column section) */
body.page-template-signup .has-contrast-2-background-color > .wp-block-columns {
    display: grid !important;
    grid-template-columns: 2fr 1fr 2fr !important;
    gap: 3rem !important;
    align-items: start !important;
    margin-bottom: 0 !important;
}

/* Remove flex-basis from columns */
body.page-template-signup .has-contrast-2-background-color .wp-block-columns > .wp-block-column {
    margin: 0 !important;
    padding: 0 !important;
    flex-basis: 0 !important;
}

/* Logo in footer - larger size */
body.page-template-signup .has-contrast-2-background-color .wp-block-column:nth-child(1) .wp-block-image {
    margin-bottom: 1rem !important;
}

body.page-template-signup .has-contrast-2-background-color .wp-block-column:nth-child(1) .wp-block-image img {
    max-width: 350px !important;
    height: auto !important;
}

/* Description text */
body.page-template-signup .has-contrast-2-background-color .wp-block-column:nth-child(1) > .wp-block-group > p {
    color: var(--wp--preset--color--base-2) !important;
    margin-bottom: 1rem !important;
}

/* Social icons and phone container - HORIZONTAL, vertically centered */
body.page-template-signup .has-contrast-2-background-color .wp-block-column:nth-child(1) > .wp-block-group > .wp-block-group:last-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
}

/* Social icons wrapper - horizontal */
body.page-template-signup .has-contrast-2-background-color .wp-block-column:nth-child(1) .wp-block-group.is-nowrap {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Phone number - on same line, vertically centered */
body.page-template-signup .has-contrast-2-background-color .wp-block-column:nth-child(1) > .wp-block-group > .wp-block-group:last-child > p {
    margin: 0 !important;
}

/* Phone number link styling */
body.page-template-signup .has-contrast-2-background-color a[href^="tel"] {
    color: var(--wp--preset--color--accent-5) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
}

/* Third column - Product/Support/Resources container */
body.page-template-signup .has-contrast-2-background-color .wp-block-column:nth-child(3) > .wp-block-group {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 2rem !important;
}

/* Individual column groups (Product, Support, Resources) - equal width */
body.page-template-signup .has-contrast-2-background-color .wp-block-column:nth-child(3) > .wp-block-group > .wp-block-group {
    flex: 1 !important;
    padding: 0 !important;
}

/* Column headings */
body.page-template-signup .has-contrast-2-background-color h2.wp-block-heading {
    color: var(--wp--preset--color--base-2) !important;
    font-size: var(--wp--preset--font-size--medium) !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

/* Navigation lists in footer */
body.page-template-signup .has-contrast-2-background-color .wp-block-group > .wp-block-group nav {
    display: block !important;
}

body.page-template-signup .has-contrast-2-background-color nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

body.page-template-signup .has-contrast-2-background-color nav li {
    margin: 0 !important;
    padding: 0 !important;
}

body.page-template-signup .has-contrast-2-background-color nav a {
    color: var(--wp--preset--color--base-2) !important;
    text-decoration: none !important;
    font-size: var(--wp--preset--font-size--small) !important;
    display: block !important;
}

body.page-template-signup .has-contrast-2-background-color nav a:hover {
    text-decoration: underline !important;
}

/* Copyright section - no border */
body.page-template-signup .has-contrast-2-background-color .alignwide:last-child {
    margin-top: 2rem !important;
    padding-top: 0 !important;
    border-top: none !important;
}

body.page-template-signup .has-contrast-2-background-color .alignwide:last-child p {
    text-align: center !important;
    color: var(--wp--preset--color--base-2) !important;
    font-size: var(--wp--preset--font-size--small) !important;
    margin: 0 !important;
}

/* ============= RESPONSIVE ============= */

@media (max-width: 782px) {
    /* Stack header on mobile */
    body.page-template-signup .wp-site-blocks > .wp-block-group:first-child > .wp-block-group {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    /* Stack footer columns on mobile */
    body.page-template-signup .has-contrast-2-background-color > .wp-block-columns {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    body.page-template-signup .has-contrast-2-background-color .wp-block-column:nth-child(3) > .wp-block-group {
        flex-direction: column !important;
        gap: 2rem !important;
    }
}