/*
Theme Name: Anubis Fitness
Theme URI: https://review.anubisfitness.co.uk
Author: Denzel Nwankwo
Author URI: https://example.com
Description: Custom WordPress theme for Anubis Fitness built with Tailwind CSS and GSAP.
Version: 1.0.0
Text Domain: anubisfitness
*/

/* CSS Reset + Variables */
:root {
    --main-accent: #B4151B;
    --dark-bg: #010101;
    --gold: #F2C043;
    
    /* Fluid Typography Scale (Min: Mobile, Max: 1920px Desktop) */
    --h1-fluid: clamp(3rem, 1rem + 10vw, 8rem);
    --h2-fluid: clamp(2.5rem, 1rem + 8vw, 6rem);
    --h3-fluid: clamp(2rem, 1rem + 6vw, 4.5rem);
    --body-fluid: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
    
    /* Dynamic Spacing & Containers */
    --section-pad: clamp(4rem, 2rem + 8vh, 10rem);
    --container-max: 1440px;
    --gutter: clamp(1rem, 5vw, 4rem);
}

.fluid-container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
    background: var(--dark-bg);
    color: #F7F7F7;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    /* Prevent vertical mobile shift on scroll */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Base Responsive Font */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html { font-size: 14px; }
}

/* Custom Crosshair Cursor */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999999;
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    opacity: 0;
}

#cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999998;
    transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
    opacity: 0;
}

#cursor-cross {
    position: fixed;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999999;
    transition: opacity 0.2s;
    opacity: 0;
}

#cursor-cross::before,
#cursor-cross::after {
    content: '';
    position: absolute;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#cursor-cross::before {
    width: 100%;
    height: 1px;
}

#cursor-cross::after {
    width: 1px;
    height: 100%;
}

/* Restore system cursors for inputs so users can type securely */
input,
textarea,
select,
iframe {
    cursor: auto !important;
}

/* Hover effect on interactive elements */
.is-hovering #cursor-dot {
    width: 0px;
    height: 0px;
}

.is-hovering #cursor-cross {
    opacity: 0;
}

.is-hovering #cursor-outline {
    width: 60px;
    height: 60px;
    border-color: rgba(180, 21, 27, 0.8);
    background-color: rgba(180, 21, 27, 0.15);
    mix-blend-mode: normal;
}

/* Disable Custom Cursor on Mobile & Tablet */
@media (max-width: 1024px) {

    #cursor-dot,
    #cursor-outline,
    #cursor-cross {
        display: none !important;
        visibility: hidden !important;
    }

    body {
        cursor: auto !important;
    }
}

/* Force Default Cursor on Account & Registration Pages */
body.page-id-2075,
body.page-template-default.page,
body[class*="mepr-account"],
body[class*="mepr-signup"],
.mepr-account-container,
.mepr-signup-form,
.mepr-form {
    cursor: auto !important;
}

body.page-id-2075 #cursor-dot,
body.page-id-2075 #cursor-outline,
body.page-id-2075 #cursor-cross,
body[class*="mepr-account"] #cursor-dot,
body[class*="mepr-account"] #cursor-outline,
body[class*="mepr-account"] #cursor-cross,
body[class*="mepr-signup"] #cursor-dot,
body[class*="mepr-signup"] #cursor-outline,
body[class*="mepr-signup"] #cursor-cross {
    display: none !important;
}

/* Texture Overlays */
.noise-texture {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Decorative utilities */
.cta-cutout {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.cta-cutout-small {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.text-outline-white {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    color: transparent;
}

/* Parallax Box */
.heavy-layer {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.8);
}

.reveal-mask {
    display: block;
    overflow: hidden;
}

/* Marquee setup */
.marquee-wrapper {
    position: absolute;
    bottom: 8vh;
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 15;
    mix-blend-mode: overlay;
    opacity: 0.8;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    width: max-content;
}

.marquee-content span {
    font-size: 8rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    padding-right: 4rem;
    text-transform: uppercase;
    line-height: 1;
}

.text-stroke-gold {
    -webkit-text-stroke: 1px #F2C043;
    color: transparent;
}

.text-stroke-white {
    -webkit-text-stroke: 1px #FFF;
    color: transparent;
}

.text-stroke-crimson {
    -webkit-text-stroke: 1px #B4151B;
    color: transparent;
}

/* Map Filter overlay */
#custom-map-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
}

#custom-map-wrap iframe {
    position: relative;
    z-index: 10;
    filter: grayscale(100%) contrast(1.2) sepia(10%) hue-rotate(200deg);
    mix-blend-mode: luminosity;
}

.map-dark-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(1, 1, 1, 1) 0%, rgba(1, 1, 1, 0.2) 100%);
    z-index: 20;
    pointer-events: none;
}

/* Scrollbar hide for slickness */
::-webkit-scrollbar {
    display: none;
}

/* Loader Overrides */
#preloader {
    transform-origin: top;
    background: var(--dark-bg);
}

#load-bar {
    transform-origin: left;
}

/* Membership slider scroll container logic */
#membership-slider {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#membership-slider>div {
    scroll-snap-align: start;
}

/* Membership Card Base Styles */
.membership-card-inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    transition: all 0.5s cubic-bezier(0.2, 0, 0.3, 1);
}

.glow-offpeak:hover {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-10px);
}

.glow-offpeak:hover .membership-card-title {
    color: #fff;
    opacity: 1;
}

.glow-standard:hover {
    filter: drop-shadow(0 0 40px rgba(242, 192, 67, 0.5));
    border-color: rgba(242, 192, 67, 0.7);
    transform: translateY(-10px);
}

.glow-standard:hover .membership-card-title {
    color: #F2C043;
    opacity: 1;
}

.glow-platinum:hover {
    filter: drop-shadow(0 0 40px rgba(180, 21, 27, 0.6));
    border-color: rgba(180, 21, 27, 0.8);
    transform: translateY(-10px);
}

.glow-platinum:hover .membership-card-title {
    color: #B4151B;
    opacity: 1;
}

/* Slashed Decoration */
.slashed-decor {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: -2px;
    color: #fff;
}

/* Quantity Pop Animation */
@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        filter: brightness(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.quantity-pop {
    animation: pop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- MemberPress UI Overrides --- */

/* Form Wrapper container */
.mp_wrapper .mepr-form,
.mp_wrapper .mepr-login-form,
.mp_wrapper .mepr-signup-form,
#mepr_loginform,
form.mepr-signup-form {
    width: 100%;
    max-width: 850px !important;
    margin: 0 auto;
    font-family: 'JetBrains Mono', monospace;
    background: #0A0A0A !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 4rem 3rem !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}

/* Fix for side-by-side squishing on Desktop */
.mepr-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100% !important;
}

/* Force full width for rows that shouldn't be split - ULTRA SPECIFIC */
html body .mp_wrapper .mepr-form .mepr-form-row.mepr-email,
html body .mp_wrapper .mepr-form .mepr-form-row.mepr-password,
html body .mp_wrapper .mepr-form .mepr-form-row.mepr-address-one,
html body .mp_wrapper .mepr-form .mepr-form-row.mepr_coupon,
html body .mp_wrapper .mepr-form .mepr-payment-field,
html body .mp_wrapper .mepr-form .mepr-stripe-elements-fields,
html body .mp_wrapper .mepr-form .mepr-form-row {
    grid-template-columns: 1fr !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

/* Allow split for specific name rows only */
html body .mp_wrapper .mepr-form .mepr-form-row.mepr-first-name,
html body .mp_wrapper .mepr-form .mepr-form-row.mepr-last-name {
    display: inline-block !important;
    width: 48% !important;
}

@media (max-width: 1024px) {
    html body .mp_wrapper .mepr-form .mepr-form-row {
        width: 100% !important;
        display: block !important;
        grid-template-columns: 1fr !important;
    }

    html body .mp_wrapper .mepr-form .mepr-form-row.mepr-first-name,
    html body .mp_wrapper .mepr-form .mepr-form-row.mepr-last-name {
        width: 100% !important;
        display: block !important;
    }
}

/* -------------------------------------------------------------------------
   MOBILE NAVIGATION & HERO TWEAKS
   ------------------------------------------------------------------------- */

/* Prevent Title Clipping */
.hero-title {
    padding-right: 5vw !important;
}

/* Hamburger Icon styling */
.mobile-nav-toggle {
    display: none;
    z-index: 100;
}

@media (max-width: 1024px) {
    .mobile-nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px; /* Accessible 44px touch target */
        height: 44px;
        gap: 6px;
        position: relative;
    }

    /* Invisible hitarea expansion if needed */
    .mobile-nav-toggle::after {
        content: '';
        position: absolute;
        inset: -10px;
    }

    .mobile-nav-toggle span {
        width: 24px;
        height: 2px;
        background-color: white;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .mobile-nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
    .mobile-nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Sidebar Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 400px;
    background: #080808;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    border-left: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
}

.mobile-menu-overlay.is-active {
    transform: translateX(0);
}

/* Dimmer Overlay */
.mobile-menu-dimmer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-dimmer.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-overlay .menu-header {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #F2C043;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-overlay .category-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.mobile-menu-overlay ul {
    list-style: none;
    text-align: left;
}

.mobile-menu-overlay li {
    margin: 0.75rem 0;
    overflow: hidden;
}

.mobile-menu-overlay a {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-menu-overlay a:hover {
    color: #F2C043;
}

.mobile-menu-overlay .menu-footer {
    margin-top: auto;
    padding-top: 2rem;
}

.mobile-menu-overlay .join-btn {
    background: #B4151B;
    color: white;
    width: 100%;
    padding: 1.25rem;
    text-transform: uppercase;
    font-weight: 800;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

@media (max-width: 640px) {

    .mp_wrapper .mepr-form,
    .mp_wrapper .mepr-login-form,
    .mp_wrapper .mepr-signup-form,
    #mepr_loginform,
    form.mepr-signup-form {
        padding: 2rem 1rem !important;
        border-radius: 1rem !important;
    }
}

/* Hide default annoying borders in MP */
.mp_wrapper {
    border: none !important;
}

/* Form Labels - Ultra High Specificity */
html body .mp_wrapper .mepr-form label,
html body .mepr-form label,
html body .mepr-payment-field label,
html body .mepr-stripe-elements-fields label,
html body #mepr-stripe-elements-form label,
html body #mepr_loginform label,
html body form.mepr-signup-form label {
    display: block !important;
    color: #F2C043 !important;
    /* Gold */
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    margin-bottom: 0.8rem !important;
    opacity: 1 !important;
}

/* Form Inputs & Payment Fields - High Specificity */
html body .mp_wrapper .mepr-form input[type="text"],
html body .mp_wrapper .mepr-form input[type="password"],
html body .mp_wrapper .mepr-form input[type="email"],
html body .mp_wrapper .mepr-form input[type="tel"],
html body .mp_wrapper .mepr-form select,
html body .mepr-form .mepr-countries-select,
html body .StripeElement,
html body .mepr-stripe-elements-fields .StripeElement,
html body #mepr_loginform input[type="text"],
html body #mepr_loginform input[type="password"],
html body form.mepr-signup-form input[type="email"],
html body form.mepr-signup-form input[type="text"],
html body form.mepr-signup-form input[type="password"] {
    width: 100% !important;
    background: #0A0A0A !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #F7F7F7 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    padding: 0.8rem 1rem !important;
    margin-bottom: 1.2rem !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    height: auto !important;
    min-height: 48px !important;
}

/* Ensure Stripe Payment Box matches exactly */
.StripeElement,
.mepr-stripe-elements-fields .StripeElement {
    padding: 12px 1rem !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
}

/* Fix for icons and placeholders inside dark inputs */
html body .StripeElement--focus {
    border-color: #F2C043 !important;
}

html body ::placeholder {
    color: #555555 !important;
}

.mp_wrapper .mepr-form input[type="text"]:focus,
.mp_wrapper .mepr-form input[type="password"]:focus,
.mepr-form input[type="email"]:focus,
.mepr-form input[type="tel"]:focus,
.mepr-form select:focus,
#mepr_loginform input[type="text"]:focus,
#mepr_loginform input[type="password"]:focus,
form.mepr-signup-form input[type="text"]:focus,
form.mepr-signup-form input[type="password"]:focus,
form.mepr-signup-form input[type="email"]:focus {
    outline: none !important;
    border-color: #F2C043 !important;
    /* Gold */
    background: #0F0F0F !important;
    box-shadow: 0 0 15px rgba(242, 192, 67, 0.2) !important;
}

/* Fix for International Telephone Input (iti) and Select dropdowns */
.iti__country-list {
    background-color: #0F0F0F !important;
    border: 1px solid #333 !important;
    color: #F7F7F7 !important;
}

.iti__selected-flag {
    background-color: transparent !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.mepr-form select option {
    background-color: #0F0F0F !important;
    color: #F7F7F7 !important;
}

/* Submit Button */
.mp_wrapper .mepr-form input[type="submit"],
#mepr_loginform input[type="submit"],
form.mepr-signup-form input[type="submit"] {
    background: #F2C043 !important;
    color: #010101 !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: none !important;
    padding: 1.2rem 2.5rem !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    width: 100% !important;
    margin-top: 1rem !important;
}

.mp_wrapper .mepr-form input[type="submit"]:hover,
#mepr_loginform input[type="submit"]:hover,
form.mepr-signup-form input[type="submit"]:hover {
    background: #fff !important;
}

/* Links (Forgot Password, etc.) */
.mp_wrapper .mepr-login-actions,
#mepr_loginform .mepr-login-actions {
    margin-top: 2rem !important;
    font-size: 0.8rem !important;
    text-align: center !important;
}

.mp_wrapper .mepr-form a,
#mepr_loginform a,
form.mepr-signup-form a {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mp_wrapper .mepr-form a:hover,
#mepr_loginform a:hover,
form.mepr-signup-form a:hover {
    color: #F2C043 !important;
}

/* --- MemberPress Account Page Table --- */
.mepr-account-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    background: transparent !important;
    margin-top: 2rem !important;
}

.mepr-account-table th {
    background: #000 !important;
    color: #F2C043 !important;
    /* Gold */
    font-family: 'JetBrains Mono', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    font-size: 0.75rem !important;
    padding: 1.5rem 1rem !important;
    border: none !important;
    border-bottom: 2px solid #F2C043 !important;
    text-align: left !important;
}

.mepr-account-table td {
    background: #0A0A0A !important;
    color: #F7F7F7 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    padding: 1.2rem 1rem !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Force dark background on alternating rows to fix the "white-out" issue */
.mepr-account-table tr.mepr-account-row-even td,
.mepr-account-table tr.mepr-account-row-odd td,
.mepr-account-table tr:nth-child(even) td,
.mepr-account-table tr:nth-child(odd) td {
    background: #0A0A0A !important;
    color: #F7F7F7 !important;
}

/* Hover effect for rows */
.mepr-account-table tr:hover td {
    background: #111 !important;
    color: #F2C043 !important;
}

/* Account Navigation Tabs */
#mepr-account-nav {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 3rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 1rem !important;
}

#mepr-account-nav a {
    color: rgba(255, 255, 255, 0.5) !important;
    font-family: 'JetBrains Mono', monospace !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease !important;
}

#mepr-account-nav a.mepr-active-nav-tab,
#mepr-account-nav a:hover {
    color: #F2C043 !important;
    background: rgba(242, 192, 67, 0.1) !important;
}

/* Payment Status Badges */
.mepr-account-table .mepr-status-complete {
    color: #4ADE80 !important;
    /* Green */
    font-weight: bold !important;
}

.mepr-account-table .mepr-status-pending {
    color: #F2C043 !important;
    /* Gold */
}

/* --- QR Code Visibility Fix --- */
/* For standard QR code containers and images */
.mepr-qr-code,
.mepr-qr-code-field,
.qrcode,
.qr-code,
.qr_code,
.mepr-barcode,
[id*="qr-code"],
[class*="qr-code"] {
    background: #FFFFFF !important;
    padding: 1.5rem !important;
    border-radius: 1rem !important;
    display: inline-block !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    margin: 1rem auto !important;
}

.mepr-qr-code img,
.mepr-qr-code-field img,
.qrcode img,
.qr-code img,
.qr_code img {
    display: block !important;
    max-width: 250px !important;
    height: auto !important;
}

/* If QR code is an SVG rendered directly */
.mepr-qr-code svg,
.mepr-qr-code-field svg,
.qrcode svg,
.qr-code svg {
    background: #FFFFFF !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
}

/* =========================================================================
   RESTORED THEME ADDITIONAL CSS (From WordPress Customizer)
   ========================================================================= */

/* Main form container styling */
.mb-0,
.mb-0 p {
    margin-bottom: 0 !important;
}

.page-header .entry-title,
.site-footer .footer-inner,
.site-footer:not(.dynamic-footer),
.site-header .header-inner,
.site-header:not(.dynamic-header),
body:not([class*=elementor-page-]) .site-main {
    max-width: 100%;
}

.mepr-signup-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, .5);
    row-gap: 0;
}

.mepr-signup-form .mepr-hidden {
    display: none;
}

.single-memberpressproduct .page-content,
.page-id-2075 .page-content,
.page-id-1951 .page-content,
.page-id-1952 .page-content,
.page-id-1960 .page-content {
    padding: 0 15px !important;
}

/* Page header styling */
.page-header {
    grid-column: 1 / -1;
    text-align: center;
    margin: 0;
}

.single-memberpressproduct .entry-title,
.page-id-2075 .entry-title,
.page-id-1951 .entry-title,
.page-id-1952 .entry-title,
.page-id-1960 .entry-title,
.page-id-2343 .entry-title {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    margin: 0 !important;
    margin-top: 40px;
}

.single-memberpressproduct .page-header,
.page-id-2075 .page-header,
.page-id-1951 .page-header,
.page-id-1952 .page-header,
.page-id-1960 .page-header,
.page-id-2343 .page-header {
    background-image: url('https://review.anubisfitness.co.uk/wp-content/uploads/2025/07/BG-1920x10800-1.webp');
    padding: 10% 0;
    margin-bottom: 60px;
}

.page-id-2343 .page-header,
.page-id-2343 footer {
    margin-bottom: 0px !important;
    margin-top: 0 !important;
}

/* Price section */
.mepr_price {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #E3CB98, #d4b97a);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(227, 203, 152, 0.3);
    margin-bottom: 20px;
    border: 2px solid #E3CB98;
}

.mepr_price_cell_label {
    font-size: 1.6rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.mepr_price_cell {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
}

/* Form rows styling */
.mp-form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.mepr_first_name,
.mepr_last_name {
    grid-column: span 1;
}

.mepr-address-one,
.mepr-address-two,
.mepr-address-city,
.mepr-address-country,
.mepr-address-state,
.mepr-address-zip {
    grid-column: span 1;
}

.mepr_profile_pic,
.mepr_mobile {
    grid-column: span 1;
}

.mepr_email {
    grid-column: 1 / -1;
}

.mepr_password,
.mepr_password_confirm {
    grid-column: span 1;
    margin-bottom: 20px;
}

/* Profile & Account Form Styling Specifics */
.mepr-account-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.mepr-account-form .mp-form-row {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 0px;
    box-sizing: border-box;
}

/* Make specific fields full width */
.mepr-account-form .mepr_spacer,
.mepr-account-form .mepr-account-change-password,
.mepr-account-form .mepr-share-button,
.mepr-account-form .mepr-qr-code-field {
    flex: 0 0 100% !important;
}

/* QR Code Custom Appended Styles */
.mepr-qr-code-field {
    background: #f8f9fa !important;
    padding: 25px !important;
    border-radius: 12px !important;
    border: 1px solid #e9ecef !important;
    margin: 0px 0 !important;
}

.mepr-field-content {
    display: flex !important;
    align-items: flex-start !important;
    gap: 25px !important;
    flex-wrap: wrap !important;
}

.mepr-field-content img {
    border: 2px solid #E3CB98 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Add robust account table logic back in */
.mp_wrapper .mepr-account-form .mepr-submit {
    width: auto !important;
    display: inline-block !important;
    flex: none !important;
    background: #E3CB98 !important;
    color: #000 !important;
}

/* Subscriptions & Payments Tables Restoration */
#mepr-account-subscriptions-table,
#mepr-account-payments-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

#mepr-account-subscriptions-table thead,
#mepr-account-payments-table thead {
    background: linear-gradient(135deg, #E3CB98, #d4b87a);
}

#mepr-account-subscriptions-table th,
#mepr-account-payments-table th {
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    color: #000;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

#mepr-account-subscriptions-table td,
#mepr-account-payments-table td {
    padding: 20px 16px;
    border: none;
    vertical-align: top;
    color: #333;
}

/* MemberPress Mobile Layout Overrides */
@media (max-width: 768px) {
    .mepr-signup-form {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
        row-gap: 0;
    }

    .mepr_first_name,
    .mepr_last_name,
    .mepr_password,
    .mepr_password_confirm,
    .mepr-address-one,
    .mepr-address-two,
    .mepr-address-city,
    .mepr-address-country,
    .mepr-address-state,
    .mepr-address-zip,
    .mepr_profile_pic,
    .mepr_mobile {
        grid-column: 1 / -1;
    }

    .mepr-account-form .mp-form-row {
        flex: 0 0 100% !important;
    }

    .mepr-field-content {
        flex-direction: column !important;
        text-align: center !important;
    }
}
/* FORCE COUPON AND PAYMENT ONTO THEIR OWN LINES */
html body .mp_wrapper .mepr_coupon, html body .mp_wrapper .mepr-payment-field, html body .mp_wrapper #mepr-stripe-payment-fields-wrapper, html body .mp_wrapper .mepr-payment-method, html body .mp_wrapper #mepr-stripe-elements-form { display: block !important; width: 100% !important; clear: both !important; float: none !important; margin-top: 1.5rem !important; margin-bottom: 2rem !important; } .mepr_coupon { flex: 0 0 100% !important; max-width: 100% !important; }

/* ALIGN COUPON LEFT AND CENTER SIGN UP BUTTON */
html body .mp_wrapper .mepr-form .mepr_coupon { text-align: left !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; width: 100% !important; } html body .mp_wrapper .mepr-form .mepr_coupon label, html body .mp_wrapper .mepr-form .mepr_coupon input { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; } html body .mp_wrapper .mepr-form .mepr-submit { display: block !important; margin: 3rem auto 0 !important; width: 100% !important; max-width: 400px !important; text-align: center !important; } html body .mp_wrapper .mepr-form .mepr-stripe-elements-fields, html body .mp_wrapper .mepr-form #mepr-stripe-payment-fields-wrapper { width: 100% !important; max-width: 100% !important; }


/* -------------------------------------------------------------------------
   FINAL LAYOUT OVERRIDE - NO COLOR CHANGES
   ------------------------------------------------------------------------- */

/* Force Form to Vertical Flex for Order Control */
form.mepr-signup-form, 
.mepr-signup-form,
.mp_wrapper .mepr-form {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 850px !important;
    margin: 0 auto !important;
    float: none !important;
}

/* Row Reset */
.mepr-form-row {
    width: 100% !important;
    display: block !important;
    clear: both !important;
    margin-bottom: 25px !important;
    float: none !important;
}

/* Keep Names Side-by-Side but proportioned */
.mepr-form-row.mepr_first_name, 
.mepr-form-row.mepr_last_name {
    display: inline-block !important;
    width: 48% !important;
    margin-right: 1% !important;
    vertical-align: top !important;
}

/* 1. Aligned Coupon to Left */
.mepr_coupon {
    order: 10 !important;
    width: 100% !important;
    text-align: left !important;
    display: block !important;
    margin: 30px 0 !important;
    padding: 0 !important;
}

.mepr_coupon label, 
.mepr_coupon input,
.mepr-coupon-field {
    display: block !important;
    margin-left: 0 !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 2. Stripe Payment - LONGER and on own line */
.mepr-payment-field, 
#mepr-stripe-payment-fields-wrapper, 
.mepr-stripe-elements-fields,
.mepr-payment-method {
    order: 20 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    clear: both !important;
    margin: 30px 0 !important;
}

/* Ensure Stripe elements stretch to new 850px width */
.StripeElement {
    width: 100% !important;
}

/* 3. Centered Sign Up Button */
.mepr-submit, 
.mepr-form-submit,
.mp_wrapper .mepr-form input[type="submit"] {
    order: 30 !important;
    display: block !important;
    margin: 60px auto !important;
    width: 100% !important;
    max-width: 450px !important;
    text-align: center !important;
    float: none !important;
}

/* Ensure Mobile consistency */
@media (max-width: 768px) {
    .mepr-form-row.mepr_first_name, 
    .mepr-form-row.mepr_last_name {
        width: 100% !important;
        margin-right: 0 !important;
    }
}



/* FIXING STRIPE INPUTS AND COUPON POSITION */
.mepr-signup-form { display: flex !important; flex-direction: column !important; }
.mepr_coupon { order: 5 !important; margin-bottom: 20px !important; }
.mepr-payment-field, #mepr-stripe-payment-fields-wrapper { order: 10 !important; width: 100% !important; }
.mepr-form-submit, .mepr-submit { order: 20 !important; }
/* Ensure Stripe card number, country, and postal code inputs take up full width of the yellow box */
.StripeElement, .mepr-form #mepr-stripe-payment-fields-wrapper .StripeElement, .mepr-form #mepr_stripe_postal_code, .mepr-form .mepr_stripe_country { width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
/* Fix specific Stripe field widths inside MemberPress layout */
.mepr-stripe-elements-form-field.mepr-stripe-elements-cc, .mepr-stripe-elements-form-field.mepr-stripe-elements-country, .mepr-stripe-elements-form-field.mepr-stripe-elements-zip { width: 100% !important; }
/* Coupon toggle text styling */
.mepr-have-coupon-link { display: inline-block !important; margin-bottom: 10px !important; cursor: pointer !important; text-decoration: none !important; }


/* FORCE STRIPE IFRAME FULL WIDTH */
.__PrivateStripeElement, .__PrivateStripeElement iframe, .mepr-stripe-card-element, .mepr-stripe-elements { width: 100% !important; min-width: 100% !important; max-width: 100% !important; display: block !important; box-sizing: border-box !important; }
.mepr-stripe-card-element { padding: 0 !important; border: none !important; }
.mepr_coupon { order: -1 !important; margin-bottom: 40px !important; }
.mepr-payment-field { order: 10 !important; }
.mepr-submit { order: 20 !important; }
/* Ensure the yellow container within MemberPress is also full width */
#mepr-stripe-payment-fields-wrapper, .mepr-stripe-elements-fields { width: 100% !important; max-width: 100% !important; }


/* FIXING COUPON TOGGLE VISIBILITY */
.mepr_coupon.mepr-hidden { display: none !important; }
.mepr_coupon:not(.mepr-hidden) { display: block !important; order: -1 !important; margin-bottom: 40px !important; }
.mepr-have-coupon-link { display: inline-block !important; cursor: pointer !important; text-decoration: underline !important; color: #F2C043 !important; }


/* FINAL STRIPE AND COUPON POSITIONING */
#mepr-stripe-payment-fields-wrapper, .mepr-payment-field { order: 10 !important; width: 100% !important; margin-top: 40px !important; }
.mepr-have-coupon-link { order: 15 !important; display: block !important; width: 100% !important; text-align: left !important; margin-bottom: 10px !important; }
.mepr_coupon { order: 20 !important; width: 100% !important; margin-bottom: 40px !important; }
.mepr-hidden { display: none !important; }
.mepr-form-submit, .mepr-submit { order: 30 !important; }
/* Ensure input boxes are full width in the yellow box */
.mepr-form .StripeElement, .mepr-form #mepr_stripe_postal_code, .mepr-form .mepr_stripe_country { width: 100% !important; max-width: 100% !important; }
/* Recognisable brand icons for the global footer social links. */

/* The legacy footer is still injected by a production WordPress snippet.
 * Keep it out of the rendered page now that the theme owns the contact footer. */
body > footer#contact[style*="background-color: #0a0a0a"] {
    display: none !important;
}

#contact .anubis-social-link {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 2.5rem;
    line-height: 1 !important;
}

#contact .anubis-social-link::before {
    content: none !important;
    display: none !important;
}

#contact .anubis-social-link > i {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 1.25rem;
    line-height: 1;
    text-align: center;
}
#contact a[href*="instagram.com"] { font-size: 0 !important; }
#contact a[href*="instagram.com"]::before { content: ""; display: block; width: 22px; height: 22px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22%230a0a0a%22%3E%3Cpath%20d%3D%22M8%200C5.829%200%205.556.01%204.703.048%203.85.088%203.269.222%202.76.42a3.9%203.9%200%200%200-1.417.923A3.9%203.9%200%200%200%20.42%202.76C.222%203.268.087%203.85.048%204.7.01%205.555%200%205.827%200%208.001c0%202.172.01%202.444.048%203.297.04.852.174%201.433.372%201.942.205.526.478.972.923%201.417.444.445.89.719%201.416.923.51.198%201.09.333%201.942.372C5.555%2015.99%205.827%2016%208%2016s2.444-.01%203.298-.048c.851-.04%201.434-.174%201.943-.372a3.9%203.9%200%200%200%201.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99%2010.445%2016%2010.173%2016%208s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.9%203.9%200%200%200-.923-1.417A3.9%203.9%200%200%200%2013.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01%2010.172%200%207.998%200zm-.717%201.442h.718c2.136%200%202.389.007%203.232.046.78.035%201.204.166%201.486.275.373.145.64.319.92.599s.453.546.598.92c.11.281.24.705.275%201.485.039.843.047%201.096.047%203.231s-.008%202.389-.047%203.232c-.035.78-.166%201.203-.275%201.485a2.5%202.5%200%200%201-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.5%202.5%200%200%201-.92-.598%202.5%202.5%200%200%201-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233s.008-2.388.046-3.231c.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92s.546-.453.92-.598c.282-.11.705-.24%201.485-.276.738-.034%201.024-.044%202.515-.045zm4.988%201.328a.96.96%200%201%200%200%201.92.96.96%200%200%200%200-1.92m-4.27%201.122a4.109%204.109%200%201%200%200%208.217%204.109%204.109%200%200%200%200-8.217m0%201.441a2.667%202.667%200%201%201%200%205.334%202.667%202.667%200%200%201%200-5.334%22%2F%3E%3C%2Fsvg%3E"); }
#contact a[href*="tiktok.com"] { font-size: 0 !important; }
#contact a[href*="tiktok.com"]::before { content: ""; display: block; width: 22px; height: 22px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22%230a0a0a%22%3E%3Cpath%20d%3D%22M9%200h1.98c.144.715.54%201.617%201.235%202.512C12.895%203.389%2013.797%204%2015%204v2c-1.753%200-3.07-.814-4-1.829V11a5%205%200%201%201-5-5v2a3%203%200%201%200%203%203z%22%2F%3E%3C%2Fsvg%3E"); }
#contact a[href*="wa.me"] { font-size: 0 !important; }
#contact a[href*="wa.me"]::before { content: ""; display: block; width: 22px; height: 22px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22%230a0a0a%22%3E%3Cpath%20d%3D%22M13.601%202.326A7.85%207.85%200%200%200%207.994%200C3.627%200%20.068%203.558.064%207.926c0%201.399.366%202.76%201.057%203.965L0%2016l4.204-1.102a7.9%207.9%200%200%200%203.79.965h.004c4.368%200%207.926-3.558%207.93-7.93A7.9%207.9%200%200%200%2013.6%202.326zM7.994%2014.521a6.6%206.6%200%200%201-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56%206.56%200%200%201-1.007-3.505c0-3.626%202.957-6.584%206.591-6.584a6.56%206.56%200%200%201%204.66%201.931%206.56%206.56%200%200%201%201.928%204.66c-.004%203.639-2.961%206.592-6.592%206.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73%200%200%200-.529.247c-.182.198-.691.677-.691%201.654s.71%201.916.81%202.049c.098.133%201.394%202.132%203.383%202.992.47.205.84.326%201.129.418.475.152.904.129%201.246.08.38-.058%201.171-.48%201.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232%22%2F%3E%3C%2Fsvg%3E"); }

