/*
 * uktg-buddypress.css
 * BuddyPress registration form, special link colours,
 * colour helpers, bbPress spinner fix.
 * Load order: 6 of 6
 */

/* ==========================================================================
   30. BUDDYPRESS REGISTRATION FORM
   ========================================================================== */

.caps-lock-warning,
.password-input-wrapper .notice,
#buddypress .caps-lock-warning,
div[class*="caps"] { display: none !important; }

#buddypress .info { display: none !important; }

body.register {
    background-image: url('https://uktherapyguild.co.uk/wp-content/uploads/2025/08/TherapyLogin.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

#buddypress #register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

#buddypress #register-page form {
    background: white !important;
    padding: 50px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25) !important;
    max-width: 680px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

#buddypress #register-page form > * {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
    clear: both !important;
    box-sizing: border-box !important;
}

#buddypress .register-section,
#buddypress div.register-section,
#buddypress .layout-wrap,
#buddypress .layout-wrap > div,
#buddypress #register-page .default-profile,
#buddypress #register-page .extended-profile,
#buddypress #basic-details-section,
#buddypress #profile-details-section,
#buddypress #register-page form > div > div {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    display: block !important;
    clear: both !important;
    margin-bottom: 40px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
}

#buddypress .layout-wrap,
#buddypress #register-page form > div {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    float: none !important;
    gap: 0 !important;
}

#buddypress .register-section h2 {
    font-size: 24px !important;
    margin-bottom: 25px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #e5e5e5 !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
}

#buddypress .editfield label {
    display: block !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    color: #374151 !important;
    font-size: 14px !important;
}

#buddypress input[type="text"],
#buddypress input[type="email"],
#buddypress input[type="password"],
#buddypress input[type="tel"] {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    margin-bottom: 10px !important;
    transition: all 0.2s ease !important;
    background: white !important;
    color: #1a1a1a !important;
    box-sizing: border-box !important;
}

#buddypress input[type="text"]:focus,
#buddypress input[type="email"]:focus,
#buddypress input[type="password"]:focus,
#buddypress input[type="tel"]:focus {
    border-color: #BFAA7C !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(191,170,124,0.1) !important;
}

#buddypress .password-strength {
    margin: 8px 0 12px 0 !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

#buddypress .description {
    color: #6b7280 !important;
    font-size: 13px !important;
    margin: 8px 0 20px 0 !important;
    line-height: 1.5 !important;
}

#buddypress .field-visibility-settings-toggle,
#buddypress .field-visibility-settings p {
    color: #9ca3af !important;
    font-size: 12px !important;
    font-style: italic !important;
    margin: 10px 0 25px 0 !important;
    line-height: 1.4 !important;
}

#buddypress .field-visibility-settings a {
    color: #BFAA7C !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

#buddypress .editfield { margin-bottom: 25px !important; }

#buddypress .register-privacy-policy {
    margin: 30px 0 25px 0 !important;
    padding: 16px !important;
    background: #f9fafb !important;
    border-radius: 6px !important;
    border-left: 3px solid #BFAA7C !important;
}

#buddypress .register-privacy-policy label {
    font-weight: 400 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    color: #4b5563 !important;
}

#buddypress .register-privacy-policy a {
    color: #BFAA7C !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

#buddypress input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin-right: 8px !important;
    cursor: pointer !important;
    accent-color: #BFAA7C !important;
}

#buddypress #signup_submit,
#buddypress input[type="submit"] {
    background: #BFAA7C !important;
    color: white !important;
    padding: 14px 40px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-shadow: 0 2px 8px rgba(191,170,124,0.3) !important;
}

#buddypress #signup_submit:hover,
#buddypress input[type="submit"]:hover {
    background: #ab9a6d !important;
    box-shadow: 0 4px 12px rgba(191,170,124,0.4) !important;
}

@media (max-width: 768px) {
    #buddypress #register-page { padding: 30px 15px !important; }
    #buddypress #register-page form { padding: 35px 25px !important; }
}


/* ==========================================================================
   31. SPECIAL LINK COLOURS & ACCESSIBILITY
   ========================================================================== */

nav a[href*="logout"],
.menu a[href*="logout"] { color: #c74343 !important; }

nav a[href*="logout"]:hover,
.menu a[href*="logout"]:hover { color: #a33636 !important; }

nav a[href*="register"],
nav a[href*="signup"],
.menu a[href*="register"] {
    color: #8a7050 !important;
    font-weight: 600 !important;
}

nav a:focus-visible,
.menu a:focus-visible {
    outline: 2px solid #b8956a !important;
    outline-offset: 3px !important;
}


/* ==========================================================================
   33. BBPRESS STYLE PACK — AJAX SUBMIT SPINNER FIX
   The "Submitting" button and spinner should be hidden by default
   and only shown by the BSP plugin JS when a form is being submitted.
   ========================================================================== */

#bsp_topic_submit,
#bsp_reply_submit {
    display: none !important;
}

#bsp_topic_submit.bsp-ajax-submitting,
#bsp_reply_submit.bsp-ajax-submitting {
    display: inline-block !important;
}


/* ==========================================================================
   32. COLOUR HELPERS (CTA text colours used in Elementor widgets)
   ========================================================================== */

.uas-status-text  { color: #6b6b6b; }
.course-price-note { color: #5f5f5f; }
.payment-info-text { color: #5f5f5f; }
.cta-secondary    { color: #5a4a28; }

