﻿/* ==========================================================================
   Redesign_Members.css
   Consolidated styles for member pages
   ========================================================================== */

/* ==========================================================================
   Registered charity picker (controls/CharityPicker.ascx)
   Styled to match the MDB wizard look. No transforms on hover/focus of
   interactive elements (avoids the known first-click-drop bug).
   ========================================================================== */
.charity-picker [hidden] { display: none !important; }

.charity-picker .cp-search-wrap { position: relative; }
.charity-picker .cp-search { padding-right: 2.5rem; }
.charity-picker .cp-search-wrap .cp-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #006E7B;
    cursor: pointer;
}
.charity-picker .cp-search-wrap .cp-toggle:hover { color: #008AA0; }
.charity-picker .cp-search-wrap .cp-toggle:focus-visible { outline: 2px solid #008AA0; outline-offset: -2px; }

.charity-picker .cp-results {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 1065;
    max-height: 18rem;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #FFFFFF;
    border: 1px solid #008AA0;
    border-radius: .375rem;
    box-shadow: 0 .5rem 1rem rgba(60, 60, 59, .175);
}

.charity-picker .cp-option {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .55rem .85rem;
    cursor: pointer;
    border-bottom: 1px solid #eceaea;
}
.charity-picker .cp-option:last-child { border-bottom: 0; }

.charity-picker .cp-option:hover,
.charity-picker .cp-option.cp-active {
    background-color: rgba(0, 138, 160, .12);
}

.charity-picker .cp-opt-name { color: #3C3C3B; font-weight: 600; line-height: 1.25; }
.charity-picker .cp-opt-meta { color: #4D5149; font-size: .8125rem; }

.charity-picker .cp-confirm {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    background-color: rgba(0, 138, 160, .07);
    border: 1px solid #008AA0;
    border-radius: .375rem;
}
.charity-picker .cp-confirm-name { color: #006E7B; }
.charity-picker .cp-confirm-meta { color: #4D5149; }

.charity-picker .cp-change,
.charity-picker .cp-manual-toggle,
.charity-picker .cp-manual-cancel {
    color: #006E7B;
    text-decoration: underline;
    white-space: nowrap;
}
.charity-picker .cp-change:hover,
.charity-picker .cp-manual-toggle:hover,
.charity-picker .cp-manual-cancel:hover { color: #008AA0; }

.charity-picker .cp-search:focus-visible,
.charity-picker .cp-change:focus-visible,
.charity-picker .cp-manual-toggle:focus-visible,
.charity-picker .cp-manual-cancel:focus-visible {
    outline: 2px solid #008AA0;
    outline-offset: 2px;
}

.charity-picker .cp-manual-toggle-wrap { margin-top: .5rem; }
.charity-picker .cp-manual { margin-top: .75rem; }

/* ==========================================================================
   Hero Section Styles
   ========================================================================== */
.hero-section .hero-background {
    position: relative;
}

.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-section .card-body {
    z-index: 2;
}

/* MyMessages Add-specific hero styling */
.members-mymessages-add .hero-section .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* MyMessages Modify-specific hero styling */
.members-mymessages-modify .hero-section .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* MyMessages Delete-specific hero styling */
.members-mymessages-delete .hero-section .card-body {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
}

/* MyMessages No Space-specific hero styling */
.members-mymessages-nospace .hero-section .card-body {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
}

/* MyVault Modify-specific hero styling */
.members-myvault-modify .hero-section .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}

.hero-title i {
    color: #008AA0;
    filter: drop-shadow(1px 1px 3px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

/* Delete page specific hero icon color */
.members-mymessages-delete .hero-title i {
    color: #dc3545 !important;
}

/* No Space page specific hero icon color */
.members-mymessages-nospace .hero-title i {
    color: #ffc107 !important;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.5);
}

.hero-description {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a1a1a;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-features .feature-item i {
    color: #008AA0;
    font-size: 1rem;
    filter: drop-shadow(1px 1px 2px rgba(255, 255, 255, 0.6));
}

.hero-icon i {
    font-size: 4rem;
    color: #008AA0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    opacity: 0.9;
}

/* ==========================================================================
   Shared File Upload and Drag & Drop Styles
   ========================================================================== */
/* Keyframe animations used by both MyMessages and MyVault */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Character counter styling - shared by both pages */
.character-counter {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease-in-out;
}

.character-counter input[readonly] {
    background: transparent !important;
    border: none !important;
    font-size: inherit;
    color: inherit;
    padding: 0;
    width: auto;
    min-width: 3rem;
    text-align: center;
}

/* Enhanced file upload section - shared styling */
.file-upload-section {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-section:hover {
    border-color: #008AA0;
    background-color: rgba(0, 138, 160, 0.05);
}

.file-upload-section.drag-over {
    border-color: #008AA0;
    background-color: rgba(0, 138, 160, 0.1);
    transform: scale(1.02);
}

.file-upload-section .upload-error {
    margin-top: 15px;
    text-align: left;
}

.file-upload-section .file-info {
    animation: fadeInUp 0.3s ease-out;
}

.upload-error {
    animation: shake 0.5s ease-in-out;
}

.file-upload-section .btn {
    pointer-events: auto;
}

.file-upload-input {
    cursor: pointer !important;
}

/* File info display during upload process */
.file-info {
    border: 1px solid #e9ecef !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    animation: fadeIn 0.3s ease;
}

/* Attachment preview area */
.attachment-preview {
    max-height: 400px;
    overflow-y: auto;
}

/* ==========================================================================
   MyMessages Add Page Specific Styles
   ========================================================================== */
/* Adjust character counter for MyMessages (smaller font for longer messages) */
.members-mymessages-add .character-counter {
    font-size: 0.75rem;
}

/* Alternative file upload styling for MyMessages */
.members-mymessages-add .file-upload-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 1.5rem;
}

.members-mymessages-add .file-upload-section.drag-over {
    border-color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
}

/* ==========================================================================
   MyMessages Modify Page Specific Styles
   ========================================================================== */
/* Adjust character counter for MyMessages Modify (smaller font for longer messages) */
.members-mymessages-modify .character-counter {
    font-size: 0.75rem;
}

/* Alternative file upload styling for MyMessages Modify */
.members-mymessages-modify .file-upload-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 1.5rem;
}

.members-mymessages-modify .file-upload-section.drag-over {
    border-color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
}

/* Enhanced card borders for MyMessages Modify */
.members-mymessages-modify .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   MyVault Modify Page Specific Styles
   ========================================================================== */
/* MyVault Modify uses standard character counter size for shorter notes */
.members-myvault-modify .character-counter {
    font-size: 0.875rem;
}

/* Alternative file upload styling for MyVault Modify */
.members-myvault-modify .file-upload-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 1.5rem;
}

.members-myvault-modify .file-upload-section:hover {
    border-color: #6610f2;
    background-color: rgba(102, 16, 242, 0.05);
}

.members-myvault-modify .file-upload-section.drag-over {
    border-color: #6610f2;
    background-color: rgba(102, 16, 242, 0.1);
}

/* Enhanced card borders for MyVault Modify */
.members-myvault-modify .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* MyVault specific card header styling */
.members-myvault-modify .card-header {
    background: linear-gradient(135deg, #6610f2, #520dc2) !important;
    border-bottom: none;
}

/* MyVault specific icon colors */
.members-myvault-modify .text-primary {
    color: #6610f2 !important;
}

.members-myvault-modify .hero-title i,
.members-myvault-modify .hero-features .feature-item i,
.members-myvault-modify .hero-icon i {
    color: #6610f2 !important;
    filter: drop-shadow(1px 1px 3px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.members-myvault-modify .breadcrumb-modern .breadcrumb-item a,
.members-myvault-modify .breadcrumb-modern .breadcrumb-item.active {
    color: #6610f2 !important;
}

.members-myvault-modify .form-floating > .form-control:focus {
    border-color: #6610f2 !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 16, 242, 0.25) !important;
}

.members-myvault-modify .form-text i {
    color: #6610f2 !important;
}

/* File wrapper (legacy support) */
.file-upload-wrapper {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-wrapper:hover {
    border-color: #008AA0;
    background-color: rgba(0, 138, 160, 0.05);
}

.file-upload-wrapper.file-upload-drag-over {
    border-color: #198754 !important;
    background-color: rgba(25, 135, 84, 0.1) !important;
    transform: scale(1.01);
}

/* ==========================================================================
   MyVault Add Page Specific Styles
   ========================================================================== */
/* MyVault uses slightly more padding */
.members-myvault-add .file-upload-section {
    padding: 2rem;
}

/* Card styling for MyVault add page */
.members-myvault-add .hero-section .card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.members-myvault-add .card {
    border-radius: 0.5rem;
}

.members-myvault-add .card-header {
    border-bottom: none;
    background: linear-gradient(135deg, #008AA0, #006a7a) !important;
}

/* ==========================================================================
   Breadcrumb Styling (Shared)
   ========================================================================== */
.breadcrumb-modern {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-modern .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-modern .breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: #008AA0;
    font-weight: 600;
}

.breadcrumb-modern .breadcrumb-item a {
    color: #008AA0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: #006B7D;
    text-decoration: underline;
}

/* Alternative breadcrumb styling */
.breadcrumb-modern {
    background: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

/* Enhanced floating form labels */
.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
    border: 1px solid #ced4da;
}

.form-floating > .form-control:focus {
    border-color: #008AA0;
    box-shadow: 0 0 0 0.2rem rgba(0, 138, 160, 0.25);
}

.form-floating > .form-control::placeholder {
    color: transparent;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #6c757d;
    font-weight: 400;
    opacity: 1;
    transform: scale(1) translateY(0) translateX(0);
}

.form-floating > .form-control[readonly] ~ label,
.form-floating > .form-control[disabled] ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: #6c757d;
    font-weight: 500;
}

.form-floating > textarea.form-control {
    min-height: 120px;
    resize: vertical;
    padding-top: 1rem;
}

.form-floating > textarea.pw-textarea {
    min-height: 400px;
}

.form-floating > textarea.form-control ~ label {
    height: auto;
    padding-top: 1rem;
}

.form-floating > label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -0.25rem;
    right: -0.25rem;
    height: 0.125rem;
    background: white;
    z-index: -1;
}

/* Form text and spacing */
.form-text {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 0.375rem;
}

.form-text i {
    color: #008AA0;
    opacity: 0.8;
    margin-right: 0.25rem;
}

.form-text strong {
    color: #495057;
}

.form-floating + .form-text {
    margin-top: 0.5rem;
}

.form-text + .character-counter {
    margin-top: 0.5rem;
}

/* Tighter line spacing for multi-line field hints (bulk reference code generator).
   .form-text is inline in this MDB build, so line-height on the inline <small> does not control
   the spacing of its wrapped lines (the containing block's line-height does). Making it block lets
   the element's own line-height apply. Scoped via the extra class so only these hints are affected. */
.form-text.pw-fieldhint {
    display: block;
    line-height: 1.2;
}

/* Enhanced button styles */
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-info:hover,
.btn-outline-secondary:hover {
    transform: translateY(-1px);
}

/* Enhanced form validation */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    background: #fff;
    border: 1px solid #dc3545;
    border-radius: 0.375rem;
    padding: 0.5rem;
    position: relative;
}

.invalid-feedback::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #dc3545;
}

.invalid-feedback::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 16px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
}

.form-floating > .form-control.is-invalid ~ label {
    color: #dc3545;
}

.form-floating > .form-control.is-valid ~ label {
    color: #198754;
}

.invalid-feedback {
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced card borders for MyMessages */
.members-mymessages-add .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* GridView and table enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(0, 138, 160, 0.05);
}

.btn[disabled] {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Storage Components
   ========================================================================== */
.storage-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.storage-progress {
    height: 12px;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

.storage-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #008AA0, #006B7D);
    border-radius: 20px;
    transition: width 0.5s ease;
}

/* ==========================================================================
   File Icons and Visual Elements
   ========================================================================== */
.file-icon {
    width: 40px;
    height: 40px;
    background: #008AA0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Enhanced Spacing System
   ========================================================================== */
.mb-6 {
    margin-bottom: 4rem !important;
}

.extra-section-spacing {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* Specific section spacing */
#pnlMessagesForm > .card:not(:last-child),
#pnlVaultForm > .card:not(:last-child) {
    margin-bottom: 3rem !important;
}

#pnlMessagesForm > .alert,
#pnlVaultForm > .alert {
    margin-bottom: 3rem !important;
}

#pnlTellMeMoreNotWL {
    margin-bottom: 3rem !important;
}

/* ==========================================================================
   Button Stabilization System
   ========================================================================== */
.action-buttons-wrapper {
    position: relative;
    min-height: 60px;
}

.button-container {
    position: relative;
    height: auto;
    min-height: 48px;
}

.stable-button {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    min-height: 48px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    vertical-align: middle !important;
    border: 2px solid transparent !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: none !important;
    transform: none !important;
    backface-visibility: visible !important;
    will-change: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.stable-button:hover,
.stable-button:active,
.stable-button:visited {
    transform: none !important;
    text-decoration: none !important;
}

.stable-button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    transform: none !important;
}

/* LinkButton fixes */
.btn.linkbutton-fix {
    display: inline-block !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    transition: none !important;
    transform: none !important;
}

.btn.linkbutton-fix:hover,
.btn.linkbutton-fix:active,
.btn.linkbutton-fix:focus,
.btn.linkbutton-fix:visited {
    text-decoration: none !important;
    transform: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Prevent layout shift */
.action-buttons-wrapper .row {
    margin: 0 !important;
}

.action-buttons-wrapper .col-md-6 {
    padding: 0 15px !important;
}

.card-footer .btn {
    min-width: auto !important;
    white-space: nowrap !important;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out !important;
}

.card-footer .btn:active {
    transform: none !important;
}

/* ==========================================================================
   Card Grid System
   ========================================================================== */
.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-footer {
    margin-top: auto;
}

.min-w-0 {
    min-width: 0;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.card .row.g-2 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

/* Content preview areas */
.message-preview,
.note-preview {
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.3;
}

/* ==========================================================================
   Form Components (primarily for MyMessages)
   ========================================================================== */
/* ASP.NET Checkbox fix for MDBootstrap conflicts */
.mymessages_form .form-check span {
    display: contents !important;
    position: static !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.mymessages_form .form-check span::before,
.mymessages_form .form-check span::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    position: static !important;
}

.mymessages_form .form-check input[type="hidden"] {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
}

.mymessages_form .form-check input[type="checkbox"] {
    display: none !important;
}

.mymessages_form .form-check input[type="checkbox"].form-check-input {
    display: inline-block !important;
    position: relative !important;
    width: 1rem !important;
    height: 1rem !important;
    margin-right: 0.375rem !important;
    vertical-align: top !important;
    background-color: #fff !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    print-color-adjust: exact !important;
    float: none !important;
}

.mymessages_form .form-check input[type="checkbox"].form-check-input::before,
.mymessages_form .form-check input[type="checkbox"].form-check-input::after {
    display: none !important;
    content: none !important;
}

.mymessages_form .form-check input[type="checkbox"].form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}

.mymessages_form .form-check input[type="checkbox"].form-check-input:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.mymessages_form .form-check input[type="checkbox"].form-check-input:disabled {
    pointer-events: none !important;
    filter: none !important;
    opacity: 0.5 !important;
}

.mymessages_form .form-check .form-check-label {
    cursor: pointer !important;
    line-height: 1.5 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    display: inline !important;
    vertical-align: top !important;
}

.mymessages_form .form-check {
    display: block !important;
    min-height: 1.5rem !important;
    padding-left: 0 !important;
    margin-bottom: 0.125rem !important;
    margin-left: 0 !important;
    text-align: left !important;
}

.mymessages_form .form-check span[class*="form-check"],
.mymessages_form .form-check span[class*="checkbox"] {
    background: none !important;
    border: none !important;
    position: static !important;
    display: contents !important;
}

.mymessages_form .card-body .form-check {
    margin-left: 24px !important;
    padding-left: 0 !important;
    position: relative !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (min-width: 768px) {
    .card-footer .btn-sm {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle,
    .hero-description {
        text-align: center;
    }
    
    .hero-features .row {
        justify-content: center;
    }
    
    .hero-icon i {
        font-size: 3rem;
        margin-top: 1rem;
    }
    
    .mb-6 {
        margin-bottom: 3rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .file-upload-section {
        padding: 1.5rem 1rem;
    }
    
    .members-myvault-add .file-upload-section {
        padding: 1.5rem 1rem;
    }
    
    .members-mymessages-add .file-upload-section {
        padding: 1.5rem 1rem;
    }
    
    .members-mymessages-modify .file-upload-section {
        padding: 1.5rem 1rem;
    }
    
    .members-myvault-modify .file-upload-section {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-features .feature-item {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .mb-6 {
        margin-bottom: 2.5rem !important;
    }
    
    .breadcrumb-modern {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .hero-section .card-body {
        padding: 1.5rem 1rem !important;
    }
    
    /* Single column layout on mobile */
    .card .row.g-2 .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .card .row.g-2 .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .card-footer .d-flex {
        flex-direction: column;
    }
    
    /* Smaller file icon on mobile */
    .file-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   MyMessages No Space Page Specific Styles
   ========================================================================== */

/* Storage info items styling */
.members-mymessages-nospace .storage-info-item {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.members-mymessages-nospace .storage-info-item:hover {
    transform: translateX(5px);
}

/* Option cards styling */
.members-mymessages-nospace .option-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.members-mymessages-nospace .option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 138, 160, 0.1), transparent);
    transition: left 0.5s ease;
}

.members-mymessages-nospace .option-card:hover::before {
    left: 100%;
}

/* Storage progress bar for no space page */
.members-mymessages-nospace .storage-progress {
    height: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
    border: 2px solid #e9ecef;
    position: relative;
}

.members-mymessages-nospace .storage-progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.members-mymessages-nospace .storage-progress-full {
    background: linear-gradient(90deg, #dc3545, #c82333) !important;
    animation: dangerPulse 2s ease-in-out infinite;
}

@keyframes dangerPulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% { 
        opacity: 0.9;
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.3);
    }
}

/* Enhanced card borders for MyMessages No Space */
.members-mymessages-nospace .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Warning card specific styling - Fixed to prevent readability issues */
.members-mymessages-nospace .card.border-warning {
    border: 2px solid #ffc107 !important;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3), 0 0 20px rgba(255, 193, 7, 0.2) !important;
    position: relative;
}

/* Storage badge enhancements */
.members-mymessages-nospace .badge {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

.members-mymessages-nospace .badge.bg-primary {
    background: linear-gradient(135deg, #0d6efd, #0056b3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

.members-mymessages-nospace .badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #087990) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

.members-mymessages-nospace .badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    animation: dangerBadgePulse 2s ease-in-out infinite;
}

.members-mymessages-nospace .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #000000 !important;
}

@keyframes dangerBadgePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
}

/* Button enhancements for no space page */
.members-mymessages-nospace .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.members-mymessages-nospace .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.members-mymessages-nospace .btn:hover::before {
    left: 100%;
}

.members-mymessages-nospace .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Specific styling for outline-danger button */
.members-mymessages-nospace .btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
    background-color: transparent;
}

.members-mymessages-nospace .btn-outline-danger:hover {
    color: #ffffff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3) !important;
}

.members-mymessages-nospace .btn-outline-danger:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.members-mymessages-nospace .btn-outline-danger:active {
    color: #ffffff !important;
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* ==========================================================================
   MyVault No Space Page Specific Styles
   ========================================================================== */

/* MyVault No Space hero styling */
.members-myvault-nospace .hero-section .card-body {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
}

/* MyVault No Space hero icon color */
.members-myvault-nospace .hero-title i {
    color: #ffc107 !important;
}

/* Storage info items styling */
.members-myvault-nospace .storage-info-item {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.members-myvault-nospace .storage-info-item:hover {
    transform: translateX(5px);
}

/* Option cards styling - using MyVault purple color scheme */
.members-myvault-nospace .option-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.members-myvault-nospace .option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 16, 242, 0.1), transparent);
    transition: left 0.5s ease;
}

.members-myvault-nospace .option-card:hover::before {
    left: 100%;
}

/* Storage progress bar for MyVault no space page */
.members-myvault-nospace .storage-progress {
    height: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
    border: 2px solid #e9ecef;
    position: relative;
}

.members-myvault-nospace .storage-progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.members-myvault-nospace .storage-progress-full {
    background: linear-gradient(90deg, #dc3545, #c82333) !important;
    animation: vaultDangerPulse 2s ease-in-out infinite;
}

@keyframes vaultDangerPulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% { 
        opacity: 0.9;
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.3);
    }
}

/* Enhanced card borders for MyVault No Space */
.members-myvault-nospace .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Warning card specific styling */
.members-myvault-nospace .card.border-warning {
    border: 2px solid #ffc107 !important;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3), 0 0 20px rgba(255, 193, 7, 0.2) !important;
    position: relative;
}

/* Storage badge enhancements with MyVault theme */
.members-myvault-nospace .badge {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

.members-myvault-nospace .badge.bg-primary {
    background: linear-gradient(135deg, #6610f2, #520dc2) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

.members-myvault-nospace .badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0, #087990) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

.members-myvault-nospace .badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    animation: vaultDangerBadgePulse 2s ease-in-out infinite;
}

.members-myvault-nospace .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #000000 !important;
}

@keyframes vaultDangerBadgePulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
}

/* Button enhancements for MyVault no space page */
.members-myvault-nospace .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.members-myvault-nospace .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.members-myvault-nospace .btn:hover::before {
    left: 100%;
}

.members-myvault-nospace .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Specific styling for warning button with MyVault theme */
.members-myvault-nospace .btn-warning {
    color: #000000 !important;
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    border-color: #ffc107 !important;
}

.members-myvault-nospace .btn-warning:hover {
    color: #000000 !important;
    background: linear-gradient(135deg, #e0a800, #d39e00) !important;
    border-color: #e0a800 !important;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3) !important;
}

.members-myvault-nospace .btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
    color: #000000 !important;
}

.members-myvault-nospace .btn-warning:active {
    color: #000000 !important;
    background: linear-gradient(135deg, #d39e00, #c69500) !important;
    border-color: #d39e00 !important;
}

/* CRITICAL: Force Cancel button to maintain its styling for MyVault */
.members-myvault-nospace .btn-outline-secondary {
    color: #6c757d !important;
    background-color: transparent !important;
    border-color: #6c757d !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.members-myvault-nospace .btn-outline-secondary:hover {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.members-myvault-nospace .btn-outline-secondary:focus {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25) !important;
}

.members-myvault-nospace .btn-outline-secondary:active,
.members-myvault-nospace .btn-outline-secondary.active {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Ensure button styling is preserved after JavaScript interactions */
.members-myvault-nospace .btn-outline-secondary:not(:disabled):not(.disabled) {
    color: #6c757d !important;
    background-color: transparent !important;
    border-color: #6c757d !important;
}

.members-myvault-nospace .btn-outline-secondary:not(:disabled):not(.disabled):hover {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* MyVault theme colors for text elements */
.members-myvault-nospace .text-primary {
    color: #6610f2 !important;
}

.members-myvault-nospace .breadcrumb-modern .breadcrumb-item a,
.members-myvault-nospace .breadcrumb-modern .breadcrumb-item.active {
    color: #6610f2 !important;
}

.members-myvault-nospace .breadcrumb-modern .breadcrumb-item a:hover {
    color: #520dc2 !important;
}

/* Card header override for MyVault theme */
.members-myvault-nospace .card-header.bg-primary {
    background: linear-gradient(135deg, #6610f2, #520dc2) !important;
    border-bottom: none;
}

/* Form labels with MyVault theme */
.members-myvault-nospace .form-label.fw-bold {
    color: #6610f2 !important;
}

/* File attachment icon styling */
.members-myvault-nospace .bg-info,
.members-myvault-nospace .bg-secondary {
    background: linear-gradient(135deg, var(--bs-bg-opacity, 1), rgba(255, 255, 255, 0.1)) !important;
}

/* Success state enhancements */
.members-myvault-nospace .text-success {
    color: #198754 !important;
}

.members-myvault-nospace .fa-check-circle {
    animation: vaultSuccessBounce 0.6s ease-out;
}

@keyframes vaultSuccessBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced alert styling for MyVault remove pages */
.members-myvault-nospace .alert-warning .fa-info-circle,
.members-myvault-nospace .alert-warning .fa-lightbulb {
    color: #ffc107 !important;
    filter: drop-shadow(1px 1px 2px rgba(255, 255, 255, 0.8));
}

/* Badge enhancements for MyVault remove pages */
.members-myvault-nospace .badge {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

.members-myvault-nospace .badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

.members-myvault-nospace .badge.bg-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #6610f2 !important;
    border: 1px solid rgba(102, 16, 242, 0.2);
}

/* Responsive design for MyVault remove file page */
@media (max-width: 575.98px) {
    .members-myvault-nospace .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    .members-myvault-nospace .card-body {
        padding: 1rem !important;
    }
    
    .members-myvault-nospace .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   MyMessages Remove Attachment Page Specific Styles
   ========================================================================== */

/* MyMessages Remove hero styling */
.members-mymessages-remove .hero-section .card-body {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
}

/* MyMessages Remove hero icon color */
.members-mymessages-remove .hero-title i {
    color: #ffc107 !important;
}

/* Enhanced card borders for MyMessages Remove */
.members-mymessages-remove .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Warning card specific styling for remove attachment */
.members-mymessages-remove .card.border-warning {
    border: 2px solid #ffc107 !important;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3), 0 0 20px rgba(255, 193, 7, 0.2) !important;
    position: relative;
}

/* Attachment detail animations */
.members-mymessages-remove .attachment-info-item {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.members-mymessages-remove .attachment-info-item:hover {
    transform: translateX(5px);
}

/* Button enhancements for remove page */
.members-mymessages-remove .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.members-mymessages-remove .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.members-mymessages-remove .btn:hover::before {
    left: 100%;
}

.members-mymessages-remove .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Specific styling for warning button */
.members-mymessages-remove .btn-warning {
    color: #000000 !important;
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    border-color: #ffc107 !important;
}

.members-mymessages-remove .btn-warning:hover {
    color: #000000 !important;
    background: linear-gradient(135deg, #e0a800, #d39e00) !important;
    border-color: #e0a800 !important;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3) !important;
}

.members-mymessages-remove .btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
    color: #000000 !important;
}

.members-mymessages-remove .btn-warning:active {
    color: #000000 !important;
    background: linear-gradient(135deg, #d39e00, #c69500) !important;
    border-color: #d39e00 !important;
}

/* CRITICAL: Force Cancel button to maintain its styling */
.members-mymessages-remove .btn-outline-secondary {
    color: #6c757d !important;
    background-color: transparent !important;
    border-color: #6c757d !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.members-mymessages-remove .btn-outline-secondary:hover {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.members-mymessages-remove .btn-outline-secondary:focus {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25) !important;
}

.members-mymessages-remove .btn-outline-secondary:active,
.members-mymessages-remove .btn-outline-secondary.active {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Ensure button styling is preserved after JavaScript interactions */
.members-mymessages-remove .btn-outline-secondary:not(:disabled):not(.disabled) {
    color: #6c757d !important;
    background-color: transparent !important;
    border-color: #6c757d !important;
}

.members-mymessages-remove .btn-outline-secondary:not(:disabled):not(.disabled):hover {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* File attachment icon styling */
.members-mymessages-remove .bg-info,
.members-mymessages-remove .bg-secondary {
    background: linear-gradient(135deg, var(--bs-bg-opacity, 1), rgba(255, 255, 255, 0.1)) !important;
}

/* Success state enhancements */
.members-mymessages-remove .text-success {
    color: #198754 !important;
}

.members-mymessages-remove .fa-check-circle {
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced alert styling for remove pages */
.members-mymessages-remove .alert-warning .fa-info-circle,
.members-mymessages-remove .alert-warning .fa-lightbulb {
    color: #ffc107 !important;
    filter: drop-shadow(1px 1px 2px rgba(255, 255, 255, 0.8));
}

/* Badge enhancements for remove pages */
.members-mymessages-remove .badge {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

.members-mymessages-remove .badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

/* Responsive design for remove attachment page */
@media (max-width: 575.98px) {
    .members-mymessages-remove .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    .members-mymessages-remove .card-body {
        padding: 1rem !important;
    }
    
    .members-mymessages-remove .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   END MyMessages Remove Attachment Page Specific Styles
   ========================================================================== */

/* ==========================================================================
   MyVault Remove File Page Specific Styles
   ========================================================================== */

/* MyVault Remove hero styling */
.members-myvault-remove .hero-section .card-body {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
}

/* MyVault Remove hero icon color */
.members-myvault-remove .hero-title i {
    color: #ffc107 !important;
}

/* Enhanced card borders for MyVault Remove */
.members-myvault-remove .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Warning card specific styling for remove file */
.members-myvault-remove .card.border-warning {
    border: 2px solid #ffc107 !important;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3), 0 0 20px rgba(255, 193, 7, 0.2) !important;
    position: relative;
}

/* File detail animations */
.members-myvault-remove .file-info-item {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.members-myvault-remove .file-info-item:hover {
    transform: translateX(5px);
}

/* Button enhancements for remove page with MyVault theme */
.members-myvault-remove .btn {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.members-myvault-remove .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.members-myvault-remove .btn:hover::before {
    left: 100%;
}

.members-myvault-remove .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

/* Specific styling for warning button with MyVault theme */
.members-myvault-remove .btn-warning {
    color: #000000 !important;
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    border-color: #ffc107 !important;
}

.members-myvault-remove .btn-warning:hover {
    color: #000000 !important;
    background: linear-gradient(135deg, #e0a800, #d39e00) !important;
    border-color: #e0a800 !important;
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3) !important;
}

.members-myvault-remove .btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
    color: #000000 !important;
}

.members-myvault-remove .btn-warning:active {
    color: #000000 !important;
    background: linear-gradient(135deg, #d39e00, #c69500) !important;
    border-color: #d39e00 !important;
}

/* CRITICAL: Force Cancel button to maintain its styling for MyVault */
.members-myvault-remove .btn-outline-secondary {
    color: #6c757d !important;
    background-color: transparent !important;
    border-color: #6c757d !important;
    border-width: 1px !important;
    border-style: solid !important;
}

.members-myvault-remove .btn-outline-secondary:hover {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.members-myvault-remove .btn-outline-secondary:focus {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25) !important;
}

.members-myvault-remove .btn-outline-secondary:active,
.members-myvault-remove .btn-outline-secondary.active {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Ensure button styling is preserved after JavaScript interactions */
.members-myvault-remove .btn-outline-secondary:not(:disabled):not(.disabled) {
    color: #6c757d !important;
    background-color: transparent !important;
    border-color: #6c757d !important;
}

.members-myvault-remove .btn-outline-secondary:not(:disabled):not(.disabled):hover {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* MyVault theme colors for text elements */
.members-myvault-remove .text-primary {
    color: #6610f2 !important;
}

.members-myvault-remove .breadcrumb-modern .breadcrumb-item a,
.members-myvault-remove .breadcrumb-modern .breadcrumb-item.active {
    color: #6610f2 !important;
}

.members-myvault-remove .breadcrumb-modern .breadcrumb-item a:hover {
    color: #520dc2 !important;
}

/* Card header override for MyVault theme */
.members-myvault-remove .card-header.bg-primary {
    background: linear-gradient(135deg, #6610f2, #520dc2) !important;
    border-bottom: none;
}

/* Form labels with MyVault theme */
.members-myvault-remove .form-label.fw-bold {
    color: #6610f2 !important;
}

/* File attachment icon styling */
.members-myvault-remove .bg-info,
.members-myvault-remove .bg-secondary {
    background: linear-gradient(135deg, var(--bs-bg-opacity, 1), rgba(255, 255, 255, 0.1)) !important;
}

/* Success state enhancements */
.members-myvault-remove .text-success {
    color: #198754 !important;
}

.members-myvault-remove .fa-check-circle {
    animation: vaultSuccessBounce 0.6s ease-out;
}

@keyframes vaultSuccessBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Enhanced alert styling for MyVault remove pages */
.members-myvault-remove .alert-warning .fa-info-circle,
.members-myvault-remove .alert-warning .fa-lightbulb {
    color: #ffc107 !important;
    filter: drop-shadow(1px 1px 2px rgba(255, 255, 255, 0.8));
}

/* Badge enhancements for MyVault remove pages */
.members-myvault-remove .badge {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
}

.members-myvault-remove .badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
}

.members-myvault-remove .badge.bg-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #6610f2 !important;
    border: 1px solid rgba(102, 16, 242, 0.2);
}

/* Responsive design for MyVault remove file page */
@media (max-width: 575.98px) {
    .members-myvault-remove .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    .members-myvault-remove .card-body {
        padding: 1rem !important;
    }
    
    .members-myvault-remove .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   Join MyWill Trial Page Specific Styles
   ========================================================================== */

/* Hero section styling for join page */
.members-join-mywilltrial .hero-section .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* Action cards container - ensure equal heights */
.members-join-mywilltrial .row.g-3 {
    display: flex;
    flex-wrap: wrap;
}

.members-join-mywilltrial .row.g-3 > [class*="col-"] {
    display: flex;
}

/* Action cards - base styles with FIXED dimensions to prevent resizing */
.members-join-mywilltrial a.card.h-100.hover-shadow {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 200px !important;
    background: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    box-sizing: border-box !important;
}

/* Action cards hover effects - CSS only */
.members-join-mywilltrial a.card.h-100.hover-shadow:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #008AA0 !important;
}

/* CRITICAL: Prevent size change on click/active/focus */
.members-join-mywilltrial a.card.h-100.hover-shadow:active,
.members-join-mywilltrial a.card.h-100.hover-shadow:focus,
.members-join-mywilltrial a.card.h-100.hover-shadow:focus-visible,
.members-join-mywilltrial a.card.h-100.hover-shadow:focus-within {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    border-color: #008AA0 !important;
    outline: none !important;
    width: 100% !important;
    min-height: 200px !important;
}

/* Remove any outline that might affect sizing */
.members-join-mywilltrial a.card.h-100.hover-shadow:focus {
    outline: 2px solid #008AA0 !important;
    outline-offset: 2px !important;
}

/* Card body inside action cards */
.members-join-mywilltrial a.card.h-100.hover-shadow .card-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Icon circle base styles - ensures perfect circles */
.members-join-mywilltrial .icon-circle {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.members-join-mywilltrial .icon-circle i {
    font-size: 1.5rem !important;
    line-height: 1 !important;
}

/* Icon circle color variants */
.members-join-mywilltrial .icon-circle-primary {
    background-color: rgba(0, 138, 160, 0.1) !important;
}

.members-join-mywilltrial .icon-circle-primary i {
    color: #008AA0 !important;
}

.members-join-mywilltrial .icon-circle-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.members-join-mywilltrial .icon-circle-info i {
    color: #0dcaf0 !important;
}

.members-join-mywilltrial .icon-circle-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.members-join-mywilltrial .icon-circle-success i {
    color: #198754 !important;
}

.members-join-mywilltrial .icon-circle-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.members-join-mywilltrial .icon-circle-warning i {
    color: #ffc107 !important;
    font-size: 1.75rem !important;
}

/* Warning card styling for create account section */
.members-join-mywilltrial .card.border-warning {
    border-width: 2px !important;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2) !important;
}

/* Success card styling */
.members-join-mywilltrial .card.border-success {
    border-width: 2px !important;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.15) !important;
}

/* Create Account button styling */
.members-join-mywilltrial .btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    border-color: #ffc107 !important;
    transition: all 0.3s ease;
}

.members-join-mywilltrial .btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00) !important;
    border-color: #e0a800 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4) !important;
}

.members-join-mywilltrial .btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
}

/* Card title styling */
.members-join-mywilltrial .card-title {
    font-weight: 600;
    color: #2c3e50;
}

/* Card text styling */
.members-join-mywilltrial .card-text {
    line-height: 1.5;
}

/* Success header styling */
.members-join-mywilltrial .card-header.bg-success {
    background: linear-gradient(135deg, #198754, #157347) !important;
    border-bottom: none;
}

/* Primary header styling */
.members-join-mywilltrial .card-header.bg-primary {
    background: linear-gradient(135deg, #008AA0, #006a7a) !important;
    border-bottom: none;
}

/* Light header styling */
.members-join-mywilltrial .card-header.bg-light {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-bottom: 1px solid #dee2e6;
}

/* Alert styling within cards */
.members-join-mywilltrial .alert.border-start {
    border-radius: 0.5rem;
}

/* Memorial link button */
.members-join-mywilltrial .btn-outline-secondary {
    border-width: 2px;
    font-weight: 500;
}

.members-join-mywilltrial .btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

/* Home button styling */
.members-join-mywilltrial .btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
}

.members-join-mywilltrial .btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 138, 160, 0.2);
}

/* Horizontal rule styling */
.members-join-mywilltrial hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    opacity: 1;
}

/* Large icons in cards */
.members-join-mywilltrial .fa-5x {
    font-size: 4rem !important;
}

/* Text coloring overrides */
.members-join-mywilltrial .text-primary {
    color: #008AA0 !important;
}

/* Lead text styling */
.members-join-mywilltrial .lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: #495057;
}

/* Responsive design for join page */
@media (max-width: 991.98px) {
    .members-join-mywilltrial .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .members-join-mywilltrial .hero-subtitle,
    .members-join-mywilltrial .hero-description {
        text-align: center;
    }
    
    .members-join-mywilltrial .card.border-warning .d-flex.align-items-start {
        flex-direction: column;
        text-align: center;
    }
    
    .members-join-mywilltrial .card.border-warning .ms-4 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }
    
    .members-join-mywilltrial .card.border-warning .flex-shrink-0 {
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .members-join-mywilltrial .icon-circle {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
    }
    
    .members-join-mywilltrial .icon-circle i {
        font-size: 1.25rem !important;
    }
    
    .members-join-mywilltrial .icon-circle-warning i {
        font-size: 1.5rem !important;
    }
    
    .members-join-mywilltrial a.card.h-100.hover-shadow .card-body {
        padding: 1rem !important;
    }
    
    .members-join-mywilltrial a.card.h-100.hover-shadow {
        min-height: 180px !important;
    }
    
    .members-join-mywilltrial a.card.h-100.hover-shadow:active,
    .members-join-mywilltrial a.card.h-100.hover-shadow:focus,
    .members-join-mywilltrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 180px !important;
    }
    
    .members-join-mywilltrial .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .members-join-mywilltrial .hero-title {
        font-size: 1.75rem;
    }
    
    .members-join-mywilltrial .card-body {
        padding: 1rem !important;
    }
    
    .members-join-mywilltrial .lead {
        font-size: 1rem;
    }
    
    .members-join-mywilltrial .fa-5x {
        font-size: 3rem !important;
    }
    
    .members-join-mywilltrial .icon-circle {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }
    
    .members-join-mywilltrial .icon-circle i {
        font-size: 1rem !important;
    }
    
    .members-join-mywilltrial .icon-circle-warning i {
        font-size: 1.25rem !important;
    }
    
    .members-join-mywilltrial a.card.h-100.hover-shadow {
        min-height: 160px !important;
    }
    
    .members-join-mywilltrial a.card.h-100.hover-shadow:active,
    .members-join-mywilltrial a.card.h-100.hover-shadow:focus,
    .members-join-mywilltrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 160px !important;
    }
}

/* ==========================================================================
   Members Join Any Trial Page Styles
   Extends the same styling as join_mywilltrial for consistent design
   ========================================================================== */
.members-join-anytrial .hero-section .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: 0.5rem;
}

.members-join-anytrial .row.g-3 {
    display: flex;
    flex-wrap: wrap;
}

.members-join-anytrial .row.g-3 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.members-join-anytrial a.card.h-100.hover-shadow {
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: all 0.3s ease;
    border-color: #e0e0e0;
    background-color: #ffffff;
    min-height: 200px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0.5rem;
}

.members-join-anytrial a.card.h-100.hover-shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: #008AA0;
}

.members-join-anytrial a.card.h-100.hover-shadow:active,
.members-join-anytrial a.card.h-100.hover-shadow:focus,
.members-join-anytrial a.card.h-100.hover-shadow:focus-visible,
.members-join-anytrial a.card.h-100.hover-shadow:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: #008AA0;
    outline: 3px solid #008AA0;
    outline-offset: 2px;
}

.members-join-anytrial a.card.h-100.hover-shadow:focus {
    outline: 3px solid #008AA0;
    outline-offset: 2px;
}

.members-join-anytrial a.card.h-100.hover-shadow .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 1.5rem;
}

/* Icon circle styling for join-anytrial */
.members-join-anytrial .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    background-color: rgba(0, 138, 160, 0.1);
}

.members-join-anytrial .icon-circle i {
    font-size: 1.5rem;
    color: #008AA0;
}

.members-join-anytrial .icon-circle-primary {
    background-color: rgba(0, 138, 160, 0.1);
}

.members-join-anytrial .icon-circle-primary i {
    color: #008AA0;
}

.members-join-anytrial .icon-circle-info {
    background-color: rgba(23, 162, 184, 0.1);
}

.members-join-anytrial .icon-circle-info i {
    color: #17a2b8;
}

.members-join-anytrial .icon-circle-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.members-join-anytrial .icon-circle-success i {
    color: #28a745;
}

.members-join-anytrial .icon-circle-warning {
    background-color: rgba(255, 193, 7, 0.15);
}

.members-join-anytrial .icon-circle-warning i {
    color: #d39e00;
}

/* Card border colors */
.members-join-anytrial .card.border-warning {
    border-width: 2px !important;
    border-color: #ffc107 !important;
    background-color: #fffbeb;
}

.members-join-anytrial .card.border-success {
    border-width: 2px !important;
    border-color: #28a745 !important;
}

/* Warning button styling */
.members-join-anytrial .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.members-join-anytrial .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
    transform: translateY(-2px);
}

.members-join-anytrial .btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}

/* Typography */
.members-join-anytrial .card-title {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.members-join-anytrial .card-text {
    color: #6c757d;
    line-height: 1.5;
}

/* Card header colors */
.members-join-anytrial .card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-bottom: none;
}

.members-join-anytrial .card-header.bg-primary {
    background: linear-gradient(135deg, #008AA0 0%, #00b4d8 100%) !important;
    border-bottom: none;
}

.members-join-anytrial .card-header.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 1px solid #dee2e6;
}

/* Alert styling */
.members-join-anytrial .alert.border-start {
    border-left-width: 4px !important;
}

/* Button outline styles */
.members-join-anytrial .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.members-join-anytrial .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.members-join-anytrial .btn-outline-primary {
    border-color: #008AA0;
    color: #008AA0;
}

.members-join-anytrial .btn-outline-primary:hover {
    background-color: #008AA0;
    border-color: #008AA0;
    color: #fff;
}

/* Horizontal rule */
.members-join-anytrial hr {
    border-color: #dee2e6;
    opacity: 0.5;
}

/* Large icon styling */
.members-join-anytrial .fa-5x {
    font-size: 3rem;
}

/* Primary text color */
.members-join-anytrial .text-primary {
    color: #008AA0 !important;
}

/* Lead text */
.members-join-anytrial .lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Responsive adjustments for join-anytrial */
@media (max-width: 991.98px) {
    .members-join-anytrial .hero-title {
        font-size: 1.75rem;
    }

    .members-join-anytrial .hero-subtitle,
    .members-join-anytrial .hero-description {
        font-size: 1rem;
    }

    .members-join-anytrial .card.border-warning .d-flex.align-items-start {
        flex-direction: column;
    }

    .members-join-anytrial .card.border-warning .ms-4 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .members-join-anytrial .card.border-warning .flex-shrink-0 {
        margin-bottom: 0.5rem;
    }

    /* Icon circle on medium screens */
    .members-join-anytrial .icon-circle {
        width: 50px;
        height: 50px;
    }

    .members-join-anytrial .icon-circle i {
        font-size: 1.25rem;
    }

    .members-join-anytrial .icon-circle-warning i {
        font-size: 1.25rem;
    }

    .members-join-anytrial a.card.h-100.hover-shadow .card-body {
        padding: 1.25rem;
    }

    .members-join-anytrial a.card.h-100.hover-shadow {
        min-height: 180px;
    }

    .members-join-anytrial a.card.h-100.hover-shadow:active,
    .members-join-anytrial a.card.h-100.hover-shadow:focus,
    .members-join-anytrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 180px;
    }
}

@media (max-width: 575.98px) {
    .members-join-anytrial .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    .members-join-anytrial .hero-title {
        font-size: 1.5rem;
    }

    .members-join-anytrial .card-body {
        padding: 1rem;
    }

    .members-join-anytrial .lead {
        font-size: 1rem;
    }

    .members-join-anytrial .fa-5x {
        font-size: 2.5rem;
    }

    .members-join-anytrial .icon-circle {
        width: 45px;
        height: 45px;
    }

    .members-join-anytrial .icon-circle i {
        font-size: 1rem !important;
    }

    .members-join-anytrial .icon-circle-warning i {
        font-size: 1.25rem !important;
    }

    .members-join-anytrial a.card.h-100.hover-shadow {
        min-height: 160px !important;
    }

    .members-join-anytrial a.card.h-100.hover-shadow:active,
    .members-join-anytrial a.card.h-100.hover-shadow:focus,
    .members-join-anytrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 160px !important;
    }
}

/* ==========================================================================
   Members Join Estate Trial Page Styles
   Extends the same styling as join_mywilltrial for consistent design
   ========================================================================== */
.members-join-estatetrial .hero-section .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: 0.5rem;
}

.members-join-estatetrial .row.g-3 {
    display: flex;
    flex-wrap: wrap;
}

.members-join-estatetrial .row.g-3 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.members-join-estatetrial a.card.h-100.hover-shadow {
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: all 0.3s ease;
    border-color: #e0e0e0;
    background-color: #ffffff;
    min-height: 200px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0.5rem;
}

.members-join-estatetrial a.card.h-100.hover-shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: #008AA0;
}

.members-join-estatetrial a.card.h-100.hover-shadow:active,
.members-join-estatetrial a.card.h-100.hover-shadow:focus,
.members-join-estatetrial a.card.h-100.hover-shadow:focus-visible,
.members-join-estatetrial a.card.h-100.hover-shadow:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: #008AA0;
    outline: 3px solid #008AA0;
    outline-offset: 2px;
}

.members-join-estatetrial a.card.h-100.hover-shadow:focus {
    outline: 3px solid #008AA0;
    outline-offset: 2px;
}

.members-join-estatetrial a.card.h-100.hover-shadow .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 1.5rem;
}

/* Icon circle styling for join-estatetrial */
.members-join-estatetrial .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    background-color: rgba(0, 138, 160, 0.1);
}

.members-join-estatetrial .icon-circle i {
    font-size: 1.5rem;
    color: #008AA0;
}

.members-join-estatetrial .icon-circle-primary {
    background-color: rgba(0, 138, 160, 0.1);
}

.members-join-estatetrial .icon-circle-primary i {
    color: #008AA0;
}

.members-join-estatetrial .icon-circle-info {
    background-color: rgba(23, 162, 184, 0.1);
}

.members-join-estatetrial .icon-circle-info i {
    color: #17a2b8;
}

.members-join-estatetrial .icon-circle-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.members-join-estatetrial .icon-circle-success i {
    color: #28a745;
}

.members-join-estatetrial .icon-circle-warning {
    background-color: rgba(255, 193, 7, 0.15);
}

.members-join-estatetrial .icon-circle-warning i {
    color: #d39e00;
}

/* Card border colors */
.members-join-estatetrial .card.border-warning {
    border-width: 2px !important;
    border-color: #ffc107 !important;
    background-color: #fffbeb;
}

.members-join-estatetrial .card.border-success {
    border-width: 2px !important;
    border-color: #28a745 !important;
}

/* Warning button styling */
.members-join-estatetrial .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.members-join-estatetrial .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
    transform: translateY(-2px);
}

.members-join-estatetrial .btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}

/* Typography */
.members-join-estatetrial .card-title {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.members-join-estatetrial .card-text {
    color: #6c757d;
    line-height: 1.5;
}

/* Card header colors */
.members-join-estatetrial .card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-bottom: none;
}

.members-join-estatetrial .card-header.bg-primary {
    background: linear-gradient(135deg, #008AA0 0%, #00b4d8 100%) !important;
    border-bottom: none;
}

.members-join-estatetrial .card-header.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 1px solid #dee2e6;
}

/* Alert styling */
.members-join-estatetrial .alert.border-start {
    border-left-width: 4px !important;
}

/* Button outline styles */
.members-join-estatetrial .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.members-join-estatetrial .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.members-join-estatetrial .btn-outline-primary {
    border-color: #008AA0;
    color: #008AA0;
}

.members-join-estatetrial .btn-outline-primary:hover {
    background-color: #008AA0;
    border-color: #008AA0;
    color: #fff;
}

/* Horizontal rule */
.members-join-estatetrial hr {
    border-color: #dee2e6;
    opacity: 0.5;
}

/* Large icon styling */
.members-join-estatetrial .fa-5x {
    font-size: 3rem;
}

/* Primary text color */
.members-join-estatetrial .text-primary {
    color: #008AA0 !important;
}

/* Lead text */
.members-join-estatetrial .lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Document cards styling */
.members-join-estatetrial .card.h-100.border {
    transition: all 0.3s ease;
}

.members-join-estatetrial .card.h-100.border:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.members-join-estatetrial .card.h-100.border .card-header {
    background-color: #fff;
}

.members-join-estatetrial .d-grid.gap-2 .btn {
    text-align: left;
    padding: 0.5rem 0.75rem;
}

.members-join-estatetrial .d-grid.gap-2 .btn i {
    margin-right: 0.5rem;
}

/* Responsive adjustments for join-estatetrial */
@media (max-width: 991.98px) {
    .members-join-estatetrial .hero-title {
        font-size: 1.75rem;
    }

    .members-join-estatetrial .hero-subtitle,
    .members-join-estatetrial .hero-description {
        font-size: 1rem;
    }

    .members-join-estatetrial .card.border-warning .d-flex.align-items-start {
        flex-direction: column;
    }

    .members-join-estatetrial .card.border-warning .ms-4 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .members-join-estatetrial .card.border-warning .flex-shrink-0 {
        margin-bottom: 0.5rem;
    }

    /* Icon circle on medium screens */
    .members-join-estatetrial .icon-circle {
        width: 50px;
        height: 50px;
    }

    .members-join-estatetrial .icon-circle i {
        font-size: 1.25rem;
    }

    .members-join-estatetrial .icon-circle-warning i {
        font-size: 1.25rem;
    }

    .members-join-estatetrial a.card.h-100.hover-shadow .card-body {
        padding: 1.25rem;
    }

    .members-join-estatetrial a.card.h-100.hover-shadow {
        min-height: 180px;
    }

    .members-join-estatetrial a.card.h-100.hover-shadow:active,
    .members-join-estatetrial a.card.h-100.hover-shadow:focus,
    .members-join-estatetrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 180px;
    }
}

@media (max-width: 575.98px) {
    .members-join-estatetrial .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    .members-join-estatetrial .hero-title {
        font-size: 1.5rem;
    }

    .members-join-estatetrial .card-body {
        padding: 1rem;
    }

    .members-join-estatetrial .lead {
        font-size: 1rem;
    }

    .members-join-estatetrial .fa-5x {
        font-size: 2.5rem;
    }

    .members-join-estatetrial .icon-circle {
        width: 45px;
        height: 45px;
    }

    .members-join-estatetrial .icon-circle i {
        font-size: 1rem !important;
    }

    .members-join-estatetrial .icon-circle-warning i {
        font-size: 1.25rem !important;
    }

    .members-join-estatetrial a.card.h-100.hover-shadow {
        min-height: 160px !important;
    }

    .members-join-estatetrial a.card.h-100.hover-shadow:active,
    .members-join-estatetrial a.card.h-100.hover-shadow:focus,
    .members-join-estatetrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 160px !important;
    }
}

/* ==========================================================================
   Members Join MyExpatWill Trial Page Styles
   Extends the same styling as join_mywilltrial for consistent design
   ========================================================================== */
.members-join-myexpatwilltrial .hero-section .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: 0.5rem;
}

.members-join-myexpatwilltrial .row.g-3 {
    display: flex;
    flex-wrap: wrap;
}

.members-join-myexpatwilltrial .row.g-3 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.members-join-myexpatwilltrial a.card.h-100.hover-shadow {
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: all 0.3s ease;
    border-color: #e0e0e0;
    background-color: #ffffff;
    min-height: 200px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0.5rem;
}

.members-join-myexpatwilltrial a.card.h-100.hover-shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: #008AA0;
}

.members-join-myexpatwilltrial a.card.h-100.hover-shadow:active,
.members-join-myexpatwilltrial a.card.h-100.hover-shadow:focus,
.members-join-myexpatwilltrial a.card.h-100.hover-shadow:focus-visible,
.members-join-myexpatwilltrial a.card.h-100.hover-shadow:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: #008AA0;
    outline: 3px solid #008AA0;
    outline-offset: 2px;
}

.members-join-myexpatwilltrial a.card.h-100.hover-shadow:focus {
    outline: 3px solid #008AA0;
    outline-offset: 2px;
}

.members-join-myexpatwilltrial a.card.h-100.hover-shadow .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 1.5rem;
}

/* Icon circle styling for join-myexpatwilltrial */
.members-join-myexpatwilltrial .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    background-color: rgba(0, 138, 160, 0.1);
}

.members-join-myexpatwilltrial .icon-circle i {
    font-size: 1.5rem;
    color: #008AA0;
}

.members-join-myexpatwilltrial .icon-circle-primary {
    background-color: rgba(0, 138, 160, 0.1);
}

.members-join-myexpatwilltrial .icon-circle-primary i {
    color: #008AA0;
}

.members-join-myexpatwilltrial .icon-circle-info {
    background-color: rgba(23, 162, 184, 0.1);
}

.members-join-myexpatwilltrial .icon-circle-info i {
    color: #17a2b8;
}

.members-join-myexpatwilltrial .icon-circle-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.members-join-myexpatwilltrial .icon-circle-success i {
    color: #28a745;
}

.members-join-myexpatwilltrial .icon-circle-warning {
    background-color: rgba(255, 193, 7, 0.15);
}

.members-join-myexpatwilltrial .icon-circle-warning i {
    color: #d39e00;
}

/* Card border colors */
.members-join-myexpatwilltrial .card.border-warning {
    border-width: 2px !important;
    border-color: #ffc107 !important;
    background-color: #fffbeb;
}

.members-join-myexpatwilltrial .card.border-success {
    border-width: 2px !important;
    border-color: #28a745 !important;
}

/* Warning button styling */
.members-join-myexpatwilltrial .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.members-join-myexpatwilltrial .btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #212529;
    transform: translateY(-2px);
}

.members-join-myexpatwilltrial .btn-warning:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}

/* Typography */
.members-join-myexpatwilltrial .card-title {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.members-join-myexpatwilltrial .card-text {
    color: #6c757d;
    line-height: 1.5;
}

/* Card header colors */
.members-join-myexpatwilltrial .card-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-bottom: none;
}

.members-join-myexpatwilltrial .card-header.bg-primary {
    background: linear-gradient(135deg, #008AA0 0%, #00b4d8 100%) !important;
    border-bottom: none;
}

.members-join-myexpatwilltrial .card-header.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 1px solid #dee2e6;
}

/* Alert styling */
.members-join-myexpatwilltrial .alert.border-start {
    border-left-width: 4px !important;
}

/* Button outline styles */
.members-join-myexpatwilltrial .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.members-join-myexpatwilltrial .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.members-join-myexpatwilltrial .btn-outline-primary {
    border-color: #008AA0;
    color: #008AA0;
}

.members-join-myexpatwilltrial .btn-outline-primary:hover {
    background-color: #008AA0;
    border-color: #008AA0;
    color: #fff;
}

/* Horizontal rule */
.members-join-myexpatwilltrial hr {
    border-color: #dee2e6;
    opacity: 0.5;
}

/* Large icon styling */
.members-join-myexpatwilltrial .fa-5x {
    font-size: 3rem;
}

/* Primary text color */
.members-join-myexpatwilltrial .text-primary {
    color: #008AA0 !important;
}

/* Lead text */
.members-join-myexpatwilltrial .lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Document cards styling */
.members-join-myexpatwilltrial .card.h-100.border {
    transition: all 0.3s ease;
}

.members-join-myexpatwilltrial .card.h-100.border:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.members-join-myexpatwilltrial .card.h-100.border .card-header {
    background-color: #fff;
}

.members-join-myexpatwilltrial .d-grid.gap-2 .btn {
    text-align: left;
    padding: 0.5rem 0.75rem;
}

.members-join-myexpatwilltrial .d-grid.gap-2 .btn i {
    margin-right: 0.5rem;
}

/* Responsive adjustments for join-myexpatwilltrial */
@media (max-width: 991.98px) {
    .members-join-myexpatwilltrial .hero-title {
        font-size: 1.75rem;
    }

    .members-join-myexpatwilltrial .hero-subtitle,
    .members-join-myexpatwilltrial .hero-description {
        font-size: 1rem;
    }

    .members-join-myexpatwilltrial .card.border-warning .d-flex.align-items-start {
        flex-direction: column;
    }

    .members-join-myexpatwilltrial .card.border-warning .ms-4 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .members-join-myexpatwilltrial .card.border-warning .flex-shrink-0 {
        margin-bottom: 0.5rem;
    }

    /* Icon circle on medium screens */
    .members-join-myexpatwilltrial .icon-circle {
        width: 50px;
        height: 50px;
    }

    .members-join-myexpatwilltrial .icon-circle i {
        font-size: 1.25rem;
    }

    .members-join-myexpatwilltrial .icon-circle-warning i {
        font-size: 1.25rem;
    }

    .members-join-myexpatwilltrial a.card.h-100.hover-shadow .card-body {
        padding: 1.25rem;
    }

    .members-join-myexpatwilltrial a.card.h-100.hover-shadow {
        min-height: 180px;
    }

    .members-join-myexpatwilltrial a.card.h-100.hover-shadow:active,
    .members-join-myexpatwilltrial a.card.h-100.hover-shadow:focus,
    .members-join-myexpatwilltrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 180px;
    }
}

@media (max-width: 575.98px) {
    .members-join-myexpatwilltrial .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    .members-join-myexpatwilltrial .hero-title {
        font-size: 1.5rem;
    }

    .members-join-myexpatwilltrial .card-body {
        padding: 1rem;
    }

    .members-join-myexpatwilltrial .lead {
        font-size: 1rem;
    }

    .members-join-myexpatwilltrial .fa-5x {
        font-size: 2.5rem;
    }

    .members-join-myexpatwilltrial .icon-circle {
        width: 45px;
        height: 45px;
    }

    .members-join-myexpatwilltrial .icon-circle i {
        font-size: 1rem !important;
    }

    .members-join-myexpatwilltrial .icon-circle-warning i {
        font-size: 1.25rem !important;
    }

    .members-join-myexpatwilltrial a.card.h-100.hover-shadow {
        min-height: 160px !important;
    }

    .members-join-myexpatwilltrial a.card.h-100.hover-shadow:active,
    .members-join-myexpatwilltrial a.card.h-100.hover-shadow:focus,
    .members-join-myexpatwilltrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 160px !important;
    }
}

/* ============================================
   JOIN MYFUNERALTRIAL PAGE STYLES
   Styles for /members/join_myfuneraltrial.aspx
   and /fr/members/join_myfuneraltrial.aspx
   ============================================ */

/* Hero Section */
.members-join-myfuneraltrial .hero-section .card {
    border-radius: 0.5rem;
    overflow: hidden;
}

.members-join-myfuneraltrial .hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.members-join-myfuneraltrial .hero-subtitle {
    font-size: 1.1rem;
    color: #666;
}

.members-join-myfuneraltrial .hero-description {
    font-size: 1rem;
    color: #555;
}

.members-join-myfuneraltrial .hero-icon {
    font-size: 4rem;
    color: #6c757d;
    opacity: 0.3;
}

.members-join-myfuneraltrial .hero-icon i {
    color: #dc3545;
}

/* Icon Circles */
.members-join-myfuneraltrial .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.members-join-myfuneraltrial .icon-circle i {
    font-size: 1.5rem;
}

.members-join-myfuneraltrial .icon-circle-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.members-join-myfuneraltrial .icon-circle-primary i {
    color: #0d6efd;
}

.members-join-myfuneraltrial .icon-circle-success {
    background-color: rgba(25, 135, 84, 0.1);
}

.members-join-myfuneraltrial .icon-circle-success i {
    color: #198754;
}

.members-join-myfuneraltrial .icon-circle-warning {
    background-color: rgba(255, 193, 7, 0.15);
}

.members-join-myfuneraltrial .icon-circle-warning i {
    color: #ffc107;
    font-size: 1.75rem;
}

.members-join-myfuneraltrial .icon-circle-info {
    background-color: rgba(13, 202, 240, 0.1);
}

.members-join-myfuneraltrial .icon-circle-info i {
    color: #0dcaf0;
}

/* Card Hover Effects */
.members-join-myfuneraltrial .hover-shadow {
    transition: all 0.3s ease;
}

.members-join-myfuneraltrial .hover-shadow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.members-join-myfuneraltrial .hover-shadow:focus,
.members-join-myfuneraltrial .hover-shadow:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.members-join-myfuneraltrial .transition-all {
    transition: all 0.3s ease;
}

/* Action Cards */
.members-join-myfuneraltrial a.card {
    cursor: pointer;
}

.members-join-myfuneraltrial a.card:hover .card-title {
    color: #0d6efd !important;
}

.members-join-myfuneraltrial a.card:hover .icon-circle {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Success Alert Cards */
.members-join-myfuneraltrial .card.border-success {
    border-width: 2px !important;
}

/* Warning Alert Card */
.members-join-myfuneraltrial .card.border-warning {
    border-width: 2px !important;
}

/* Thank You Card Header */
.members-join-myfuneraltrial .card-header.bg-success {
    border-bottom: none;
}

/* Quick Actions Card Header */
.members-join-myfuneraltrial .card-header.bg-primary {
    border-bottom: none;
}

/* Other Options Card Header */
.members-join-myfuneraltrial .card-header.bg-light {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Alert with Left Border */
.members-join-myfuneraltrial .alert.border-start.border-success {
    background-color: #f8f9fa;
}

/* Button Styles */
.members-join-myfuneraltrial .btn-warning.text-dark {
    border: none;
}

.members-join-myfuneraltrial .btn-warning.text-dark:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
}

.members-join-myfuneraltrial .btn-warning.text-dark:focus,
.members-join-myfuneraltrial .btn-warning.text-dark:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.members-join-myfuneraltrial .btn-outline-primary:focus,
.members-join-myfuneraltrial .btn-outline-primary:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.members-join-myfuneraltrial .btn-outline-secondary:focus,
.members-join-myfuneraltrial .btn-outline-secondary:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

/* Large Icons */
.members-join-myfuneraltrial .fa-5x {
    font-size: 4rem;
}

/* Text Colors */
.members-join-myfuneraltrial .text-success {
    color: #198754 !important;
}

.members-join-myfuneraltrial .text-warning {
    color: #ffc107 !important;
}

.members-join-myfuneraltrial .text-danger {
    color: #dc3545 !important;
}

/* Lead Text */
.members-join-myfuneraltrial .lead {
    font-size: 1.15rem;
    font-weight: 400;
}

/* Card Title in Action Cards */
.members-join-myfuneraltrial .card-title {
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Card Text Description */
.members-join-myfuneraltrial .card-text {
    line-height: 1.5;
}

/* Horizontal Rule */
.members-join-myfuneraltrial hr {
    border-color: #dee2e6;
    opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .members-join-myfuneraltrial .hero-title {
        font-size: 1.75rem;
    }

    .members-join-myfuneraltrial .hero-icon {
        font-size: 3rem;
    }

    .members-join-myfuneraltrial .fa-5x {
        font-size: 3rem;
    }
}

@media (max-width: 767.98px) {
    .members-join-myfuneraltrial .d-flex.align-items-start {
        flex-direction: column;
    }

    .members-join-myfuneraltrial .d-flex.align-items-start .ms-4 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .members-join-myfuneraltrial .d-flex.align-items-center .ms-4 {
        margin-left: 1rem !important;
    }

    .members-join-myfuneraltrial .icon-circle {
        width: 50px;
        height: 50px;
    }

    .members-join-myfuneraltrial .icon-circle i {
        font-size: 1.25rem;
    }

    .members-join-myfuneraltrial a.card.h-100.hover-shadow {
        min-height: 180px !important;
    }

    .members-join-myfuneraltrial a.card.h-100.hover-shadow:active,
    .members-join-myfuneraltrial a.card.h-100.hover-shadow:focus,
    .members-join-myfuneraltrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 180px !important;
    }
}

@media (max-width: 575.98px) {
    .members-join-myfuneraltrial .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    .members-join-myfuneraltrial .hero-title {
        font-size: 1.5rem;
    }

    .members-join-myfuneraltrial .card-body {
        padding: 1rem;
    }

    .members-join-myfuneraltrial .lead {
        font-size: 1rem;
    }

    .members-join-myfuneraltrial .fa-5x {
        font-size: 2.5rem;
    }

    .members-join-myfuneraltrial .icon-circle {
        width: 45px;
        height: 45px;
    }

    .members-join-myfuneraltrial .icon-circle i {
        font-size: 1rem !important;
    }

    .members-join-myfuneraltrial .icon-circle-warning i {
        font-size: 1.25rem !important;
    }

    .members-join-myfuneraltrial a.card.h-100.hover-shadow {
        min-height: 160px !important;
    }

    .members-join-myfuneraltrial a.card.h-100.hover-shadow:active,
    .members-join-myfuneraltrial a.card.h-100.hover-shadow:focus,
    .members-join-myfuneraltrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 160px !important;
    }
}

/* =====================================================
   JOIN MYLIFELOCKERTRIAL PAGE STYLES
   ===================================================== */

.members-join-mylifelockertrial .hero-section .card {
    border-radius: 0.5rem;
}

.members-join-mylifelockertrial .hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
}

.members-join-mylifelockertrial .hero-subtitle {
    font-size: 1rem;
    color: #666;
}

.members-join-mylifelockertrial .hero-description {
    font-size: 1rem;
    color: #555;
}

.members-join-mylifelockertrial .hero-icon {
    font-size: 4rem;
    color: rgba(0, 123, 255, 0.15);
}

.members-join-mylifelockertrial .hero-icon i {
    color: rgba(0, 123, 255, 0.25);
}

.members-join-mylifelockertrial .icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.members-join-mylifelockertrial .icon-circle i {
    font-size: 1.25rem;
}

.members-join-mylifelockertrial .icon-circle-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.members-join-mylifelockertrial .icon-circle-primary i {
    color: #0d6efd;
}

.members-join-mylifelockertrial .icon-circle-success {
    background-color: rgba(25, 135, 84, 0.1);
}

.members-join-mylifelockertrial .icon-circle-success i {
    color: #198754;
}

.members-join-mylifelockertrial .icon-circle-warning {
    background-color: rgba(255, 193, 7, 0.15);
}

.members-join-mylifelockertrial .icon-circle-warning i {
    color: #ffc107;
}

.members-join-mylifelockertrial .icon-circle-info {
    background-color: rgba(13, 202, 240, 0.1);
}

.members-join-mylifelockertrial .icon-circle-info i {
    color: #0dcaf0;
}

.members-join-mylifelockertrial .hover-shadow {
    transition: all 0.2s ease-in-out;
}

.members-join-mylifelockertrial .hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.members-join-mylifelockertrial .hover-shadow:focus,
.members-join-mylifelockertrial .hover-shadow:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.members-join-mylifelockertrial .transition-all {
    transition: all 0.2s ease-in-out;
}

.members-join-mylifelockertrial a.card {
    cursor: pointer;
}

.members-join-mylifelockertrial a.card:hover .card-title {
    color: #0d6efd !important;
}

.members-join-mylifelockertrial a.card:hover .icon-circle {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

.members-join-mylifelockertrial .card.border-success {
    border-width: 2px !important;
    border-color: #198754 !important;
}

.members-join-mylifelockertrial .card.border-warning {
    border-width: 2px !important;
    border-color: #ffc107 !important;
}

.members-join-mylifelockertrial .card-header.bg-success {
    background-color: #198754 !important;
    border-bottom: none;
}

.members-join-mylifelockertrial .card-header.bg-primary {
    background-color: #0d6efd !important;
    border-bottom: none;
}

.members-join-mylifelockertrial .card-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

.members-join-mylifelockertrial .alert.border-start.border-success {
    background-color: #f8f9fa;
    border-color: #198754 !important;
}

.members-join-mylifelockertrial .btn-warning.text-dark {
    font-weight: 600;
}

.members-join-mylifelockertrial .btn-warning.text-dark:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
}

.members-join-mylifelockertrial .btn-warning.text-dark:focus,
.members-join-mylifelockertrial .btn-warning.text-dark:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5);
}

.members-join-mylifelockertrial .btn-outline-primary:focus,
.members-join-mylifelockertrial .btn-outline-primary:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.members-join-mylifelockertrial .btn-outline-secondary:focus,
.members-join-mylifelockertrial .btn-outline-secondary:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

.members-join-mylifelockertrial .fa-5x {
    font-size: 5rem;
}

.members-join-mylifelockertrial .text-success {
    color: #198754 !important;
}

.members-join-mylifelockertrial .text-warning {
    color: #ffc107 !important;
}

.members-join-mylifelockertrial .text-danger {
    color: #dc3545 !important;
}

.members-join-mylifelockertrial .lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

.members-join-mylifelockertrial .card-title {
    font-weight: 600;
    color: #333;
    transition: color 0.2s ease-in-out;
}

.members-join-mylifelockertrial .card-text {
    line-height: 1.5;
}

.members-join-mylifelockertrial hr {
    border-top: 1px solid #dee2e6;
    opacity: 0.5;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .members-join-mylifelockertrial .hero-title {
        font-size: 1.5rem;
    }

    .members-join-mylifelockertrial .hero-icon {
        display: none;
    }

    .members-join-mylifelockertrial .fa-5x {
        font-size: 3rem;
    }

    .members-join-mylifelockertrial .d-flex.align-items-start {
        flex-direction: column;
    }

    .members-join-mylifelockertrial .d-flex.align-items-start .ms-4 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .members-join-mylifelockertrial .d-flex.align-items-center .ms-4 {
        margin-left: 1rem !important;
    }

    .members-join-mylifelockertrial .icon-circle {
        width: 48px;
        height: 48px;
    }

    .members-join-mylifelockertrial .icon-circle i {
        font-size: 1rem;
    }

    .members-join-mylifelockertrial a.card.h-100.hover-shadow {
        min-height: auto !important;
    }

    .members-join-mylifelockertrial a.card.h-100.hover-shadow:active,
    .members-join-mylifelockertrial a.card.h-100.hover-shadow:focus,
    .members-join-mylifelockertrial a.card.h-100.hover-shadow:focus-visible {
        min-height: auto !important;
    }

    .members-join-mylifelockertrial .btn-lg {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .members-join-mylifelockertrial .hero-title {
        font-size: 1.25rem;
    }

    .members-join-mylifelockertrial .card-body {
        padding: 1rem !important;
    }

    .members-join-mylifelockertrial .lead {
        font-size: 1rem;
    }

    .members-join-mylifelockertrial .fa-5x {
        font-size: 2.5rem;
    }

    .members-join-mylifelockertrial .icon-circle {
        width: 40px;
        height: 40px;
    }

    .members-join-mylifelockertrial .icon-circle i {
        font-size: 0.875rem;
    }

    .members-join-mylifelockertrial .icon-circle-warning i {
        font-size: 1rem;
    }

    .members-join-mylifelockertrial a.card.h-100.hover-shadow {
        min-height: 160px !important;
    }

    .members-join-mylifelockertrial a.card.h-100.hover-shadow:active,
    .members-join-mylifelockertrial a.card.h-100.hover-shadow:focus,
    .members-join-mylifelockertrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 160px !important;
    }
}

/* =====================================================
   JOIN MYLIVINGWILLTRIAL PAGE STYLES
   ===================================================== */

.members-join-mylivingwilltrial .hero-section .card {
    border-radius: 0.5rem;
}

.members-join-mylivingwilltrial .hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
}

.members-join-mylivingwilltrial .hero-subtitle {
    font-size: 1rem;
    color: #666;
}

.members-join-mylivingwilltrial .hero-description {
    font-size: 1rem;
    color: #555;
}

.members-join-mylivingwilltrial .hero-icon {
    font-size: 4rem;
    color: rgba(0, 123, 255, 0.15);
}

.members-join-mylivingwilltrial .hero-icon i {
    color: rgba(0, 123, 255, 0.25);
}

.members-join-mylivingwilltrial .icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.members-join-mylivingwilltrial .icon-circle i {
    font-size: 1.25rem;
}

.members-join-mylivingwilltrial .icon-circle-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.members-join-mylivingwilltrial .icon-circle-primary i {
    color: #0d6efd;
}

.members-join-mylivingwilltrial .icon-circle-success {
    background-color: rgba(25, 135, 84, 0.1);
}

.members-join-mylivingwilltrial .icon-circle-success i {
    color: #198754;
}

.members-join-mylivingwilltrial .icon-circle-warning {
    background-color: rgba(255, 193, 7, 0.15);
}

.members-join-mylivingwilltrial .icon-circle-warning i {
    color: #ffc107;
}

.members-join-mylivingwilltrial .icon-circle-info {
    background-color: rgba(13, 202, 240, 0.1);
}

.members-join-mylivingwilltrial .icon-circle-info i {
    color: #0dcaf0;
}

.members-join-mylivingwilltrial .hover-shadow {
    transition: all 0.2s ease-in-out;
}

.members-join-mylivingwilltrial .hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.members-join-mylivingwilltrial .hover-shadow:focus,
.members-join-mylivingwilltrial .hover-shadow:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.members-join-mylivingwilltrial .transition-all {
    transition: all 0.2s ease-in-out;
}

.members-join-mylivingwilltrial a.card {
    cursor: pointer;
}

.members-join-mylivingwilltrial a.card:hover .card-title {
    color: #0d6efd !important;
}

.members-join-mylivingwilltrial a.card:hover .icon-circle {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

.members-join-mylivingwilltrial .card.border-success {
    border-width: 2px !important;
    border-color: #198754 !important;
}

.members-join-mylivingwilltrial .card.border-warning {
    border-width: 2px !important;
    border-color: #ffc107 !important;
}

.members-join-mylivingwilltrial .card-header.bg-success {
    background-color: #198754 !important;
    border-bottom: none;
}

.members-join-mylivingwilltrial .card-header.bg-primary {
    background-color: #0d6efd !important;
    border-bottom: none;
}

.members-join-mylivingwilltrial .card-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

.members-join-mylivingwilltrial .alert.border-start.border-success {
    background-color: #f8f9fa;
    border-color: #198754 !important;
}

.members-join-mylivingwilltrial .btn-warning.text-dark {
    font-weight: 600;
}

.members-join-mylivingwilltrial .btn-warning.text-dark:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
}

.members-join-mylivingwilltrial .btn-warning.text-dark:focus,
.members-join-mylivingwilltrial .btn-warning.text-dark:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5);
}

.members-join-mylivingwilltrial .btn-outline-primary:focus,
.members-join-mylivingwilltrial .btn-outline-primary:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.members-join-mylivingwilltrial .btn-outline-secondary:focus,
.members-join-mylivingwilltrial .btn-outline-secondary:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

.members-join-mylivingwilltrial .fa-5x {
    font-size: 5rem;
}

.members-join-mylivingwilltrial .text-success {
    color: #198754 !important;
}

.members-join-mylivingwilltrial .text-warning {
    color: #ffc107 !important;
}

.members-join-mylivingwilltrial .text-danger {
    color: #dc3545 !important;
}

.members-join-mylivingwilltrial .lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

.members-join-mylivingwilltrial .card-title {
    font-weight: 600;
    color: #333;
    transition: color 0.2s ease-in-out;
}

.members-join-mylivingwilltrial .card-text {
    line-height: 1.5;
}

.members-join-mylivingwilltrial hr {
    border-top: 1px solid #dee2e6;
    opacity: 0.5;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .members-join-mylivingwilltrial .hero-title {
        font-size: 1.5rem;
    }

    .members-join-mylivingwilltrial .hero-icon {
        display: none;
    }

    .members-join-mylivingwilltrial .fa-5x {
        font-size: 3rem;
    }

    .members-join-mylivingwilltrial .d-flex.align-items-start {
        flex-direction: column;
    }

    .members-join-mylivingwilltrial .d-flex.align-items-start .ms-4 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .members-join-mylivingwilltrial .d-flex.align-items-center .ms-4 {
        margin-left: 1rem !important;
    }

    .members-join-mylivingwilltrial .icon-circle {
        width: 48px;
        height: 48px;
    }

    .members-join-mylivingwilltrial .icon-circle i {
        font-size: 1rem;
    }

    .members-join-mylivingwilltrial a.card.h-100.hover-shadow {
        min-height: auto !important;
    }

    .members-join-mylivingwilltrial a.card.h-100.hover-shadow:active,
    .members-join-mylivingwilltrial a.card.h-100.hover-shadow:focus,
    .members-join-mylivingwilltrial a.card.h-100.hover-shadow:focus-visible {
        min-height: auto !important;
    }

    .members-join-mylivingwilltrial .btn-lg {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .members-join-mylivingwilltrial .hero-title {
        font-size: 1.25rem;
    }

    .members-join-mylivingwilltrial .card-body {
        padding: 1rem !important;
    }

    .members-join-mylivingwilltrial .lead {
        font-size: 1rem;
    }

    .members-join-mylivingwilltrial .fa-5x {
        font-size: 2.5rem;
    }

    .members-join-mylivingwilltrial .icon-circle {
        width: 40px;
        height: 40px;
    }

    .members-join-mylivingwilltrial .icon-circle i {
        font-size: 0.875rem;
    }

    .members-join-mylivingwilltrial .icon-circle-warning i {
        font-size: 1rem;
    }

    .members-join-mylivingwilltrial a.card.h-100.hover-shadow {
        min-height: 160px !important;
    }

    .members-join-mylivingwilltrial a.card.h-100.hover-shadow:active,
    .members-join-mylivingwilltrial a.card.h-100.hover-shadow:focus,
    .members-join-mylivingwilltrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 160px !important;
    }
}

/* =====================================================
   JOIN MYMESSAGESTRIAL PAGE STYLES
   ===================================================== */

.members-join-mymessagestrial .hero-section .card {
    border-radius: 0.5rem;
}

.members-join-mymessagestrial .hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
}

.members-join-mymessagestrial .hero-subtitle {
    font-size: 1rem;
    color: #666;
}

.members-join-mymessagestrial .hero-description {
    font-size: 1rem;
    color: #555;
}

.members-join-mymessagestrial .hero-icon {
    font-size: 4rem;
    color: rgba(0, 123, 255, 0.15);
}

.members-join-mymessagestrial .hero-icon i {
    color: rgba(0, 123, 255, 0.25);
}

.members-join-mymessagestrial .icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.members-join-mymessagestrial .icon-circle i {
    font-size: 1.25rem;
}

.members-join-mymessagestrial .icon-circle-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.members-join-mymessagestrial .icon-circle-primary i {
    color: #0d6efd;
}

.members-join-mymessagestrial .icon-circle-success {
    background-color: rgba(25, 135, 84, 0.1);
}

.members-join-mymessagestrial .icon-circle-success i {
    color: #198754;
}

.members-join-mymessagestrial .icon-circle-warning {
    background-color: rgba(255, 193, 7, 0.15);
}

.members-join-mymessagestrial .icon-circle-warning i {
    color: #ffc107;
}

.members-join-mymessagestrial .icon-circle-info {
    background-color: rgba(13, 202, 240, 0.1);
}

.members-join-mymessagestrial .icon-circle-info i {
    color: #0dcaf0;
}

.members-join-mymessagestrial .hover-shadow {
    transition: all 0.2s ease-in-out;
}

.members-join-mymessagestrial .hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.members-join-mymessagestrial .hover-shadow:focus,
.members-join-mymessagestrial .hover-shadow:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.members-join-mymessagestrial .transition-all {
    transition: all 0.2s ease-in-out;
}

.members-join-mymessagestrial a.card {
    cursor: pointer;
}

.members-join-mymessagestrial a.card:hover .card-title {
    color: #0d6efd !important;
}

.members-join-mymessagestrial a.card:hover .icon-circle {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

.members-join-mymessagestrial .card.border-success {
    border-width: 2px !important;
    border-color: #198754 !important;
}

.members-join-mymessagestrial .card.border-warning {
    border-width: 2px !important;
    border-color: #ffc107 !important;
}

.members-join-mymessagestrial .card-header.bg-success {
    background-color: #198754 !important;
    border-bottom: none;
}

.members-join-mymessagestrial .card-header.bg-primary {
    background-color: #0d6efd !important;
    border-bottom: none;
}

.members-join-mymessagestrial .card-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

.members-join-mymessagestrial .alert.border-start.border-success {
    background-color: #f8f9fa;
    border-color: #198754 !important;
}

.members-join-mymessagestrial .btn-warning.text-dark {
    font-weight: 600;
}

.members-join-mymessagestrial .btn-warning.text-dark:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
}

.members-join-mymessagestrial .btn-warning.text-dark:focus,
.members-join-mymessagestrial .btn-warning.text-dark:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5);
}

.members-join-mymessagestrial .btn-outline-primary:focus,
.members-join-mymessagestrial .btn-outline-primary:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.members-join-mymessagestrial .btn-outline-secondary:focus,
.members-join-mymessagestrial .btn-outline-secondary:focus-visible {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

.members-join-mymessagestrial .fa-5x {
    font-size: 5rem;
}

.members-join-mymessagestrial .text-success {
    color: #198754 !important;
}

.members-join-mymessagestrial .text-warning {
    color: #ffc107 !important;
}

.members-join-mymessagestrial .text-danger {
    color: #dc3545 !important;
}

.members-join-mymessagestrial .lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

.members-join-mymessagestrial .card-title {
    font-weight: 600;
    color: #333;
    transition: color 0.2s ease-in-out;
}

.members-join-mymessagestrial .card-text {
    line-height: 1.5;
}

.members-join-mymessagestrial hr {
    border-top: 1px solid #dee2e6;
    opacity: 0.5;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .members-join-mymessagestrial .hero-title {
        font-size: 1.5rem;
    }

    .members-join-mymessagestrial .hero-icon {
        display: none;
    }

    .members-join-mymessagestrial .fa-5x {
        font-size: 3rem;
    }

    .members-join-mymessagestrial .d-flex.align-items-start {
        flex-direction: column;
    }

    .members-join-mymessagestrial .d-flex.align-items-start .ms-4 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .members-join-mymessagestrial .d-flex.align-items-center .ms-4 {
        margin-left: 1rem !important;
    }

    .members-join-mymessagestrial .icon-circle {
        width: 48px;
        height: 48px;
    }

    .members-join-mymessagestrial .icon-circle i {
        font-size: 1rem;
    }

    .members-join-mymessagestrial a.card.h-100.hover-shadow {
        min-height: auto !important;
    }

    .members-join-mymessagestrial a.card.h-100.hover-shadow:active,
    .members-join-mymessagestrial a.card.h-100.hover-shadow:focus,
    .members-join-mymessagestrial a.card.h-100.hover-shadow:focus-visible {
        min-height: auto !important;
    }

    .members-join-mymessagestrial .btn-lg {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .members-join-mymessagestrial .hero-title {
        font-size: 1.25rem;
    }

    .members-join-mymessagestrial .card-body {
        padding: 1rem !important;
    }

    .members-join-mymessagestrial .lead {
        font-size: 1rem;
    }

    .members-join-mymessagestrial .fa-5x {
        font-size: 2.5rem;
    }

    .members-join-mymessagestrial .icon-circle {
        width: 40px;
        height: 40px;
    }

    .members-join-mymessagestrial .icon-circle i {
        font-size: 0.875rem;
    }

    .members-join-mymessagestrial .icon-circle-warning i {
        font-size: 1rem;
    }

    .members-join-mymessagestrial a.card.h-100.hover-shadow {
        min-height: 160px !important;
    }

    .members-join-mymessagestrial a.card.h-100.hover-shadow:active,
    .members-join-mymessagestrial a.card.h-100.hover-shadow:focus,
    .members-join-mymessagestrial a.card.h-100.hover-shadow:focus-visible {
        min-height: 160px !important;
    }
}

/* ==========================================================================
   WCAG 2.2 AA fix for wizard help sidebar accordion buttons
   Ensures text is visible and meets 4.5:1 contrast ratio against dark teal background
   ========================================================================== */

/* Target the accordion buttons with high specificity to override MDB/Bootstrap */
.tellmemorefaq .accordion .accordion-item .accordion-header .accordion-button,
.tellmemorefaq .accordion .accordion-item .accordion-header .accordion-button.btn,
.tellmemorefaq .accordion .accordion-item .accordion-header .accordion-button.btn-link,
.tellmemorefaq .accordion .accordion-item .accordion-header .accordion-button.btn.btn-link,
.tellmemorefaq .accordion .accordion-item .accordion-header .accordion-button.btn.btn-link.collapsed,
.left_faq_section .accordion .accordion-item .accordion-header .accordion-button,
.left_faq_section .accordion .accordion-item .accordion-header .accordion-button.btn,
.left_faq_section .accordion .accordion-item .accordion-header .accordion-button.btn-link,
.left_faq_section .accordion .accordion-item .accordion-header .accordion-button.btn.btn-link,
.left_faq_section .accordion .accordion-item .accordion-header .accordion-button.btn.btn-link.collapsed,
#TellMeMoreContent .accordion-button,
#TellMeMoreContent .accordion-button.btn-link,
#TellMeMoreContent .btn-link {
    color: #ffffff !important;
    text-decoration: none !important;
    background-color: transparent !important;
}

    .tellmemorefaq .accordion-button:hover,
    .tellmemorefaq .accordion-button:focus,
    .tellmemorefaq .btn-link:hover,
    .tellmemorefaq .btn-link:focus,
    .left_faq_section .accordion-button:hover,
    .left_faq_section .accordion-button:focus,
    .left_faq_section .btn-link:hover,
    .left_faq_section .btn-link:focus,
    #TellMeMoreContent .accordion-button:hover,
    #TellMeMoreContent .accordion-button:focus,
    #TellMeMoreContent .btn-link:hover,
    #TellMeMoreContent .btn-link:focus {
        color: #ffd700 !important;
        text-decoration: underline !important;
    }

/* Accordion body text */
.tellmemorefaq .accordion-body,
.tellmemorefaq .accordion-body p,
.left_faq_section .accordion-body,
.left_faq_section .accordion-body p,
#TellMeMoreContent .accordion-body,
#TellMeMoreContent .accordion-body p {
    color: #ffffff !important;
}

/* Heading */
.tellmemorefaq h4,
.left_faq_section h4,
#TellMeMoreContent h4 {
    color: #ffffff !important;
}

/* Accordion item borders for visibility */
.tellmemorefaq .accordion-item,
.left_faq_section .accordion-item,
#TellMeMoreContent .accordion-item {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background-color: transparent !important;
}

/* Plus/minus icon (::after pseudo-element) */
.tellmemorefaq .accordion-button::after,
.left_faq_section .accordion-button::after,
#TellMeMoreContent .accordion-button::after {
    filter: brightness(0) invert(1) !important; /* Makes the icon white */
}

/* ==========================================================================
   MySecurity - Delay Control (hours/days toggle)
   ========================================================================== */
.security-delay-control {
    display: flex;
    align-items: center;
}

.security-delay-control .security-delay-number {
    width: 80px !important;
    text-align: center;
    border-radius: 0.375rem 0 0 0.375rem;
    border-right: none;
    flex-shrink: 0;
}

.security-delay-control .security-delay-toggle {
    display: flex;
    flex-shrink: 0;
}

.security-delay-control .security-delay-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.security-delay-control .security-delay-toggle label {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4D5149;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-left: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    margin: 0;
    line-height: 1.5;
    white-space: nowrap;
}

.security-delay-control .security-delay-toggle label:last-of-type {
    border-radius: 0 0.375rem 0.375rem 0;
}

.security-delay-control .security-delay-toggle input[type="radio"]:checked + label {
    background-color: #006E7B;
    color: #ffffff;
    border-color: #006E7B;
}

.security-delay-control .security-delay-toggle input[type="radio"]:focus + label {
    box-shadow: 0 0 0 0.2rem rgba(0, 110, 123, 0.25);
    z-index: 1;
    position: relative;
}

@media (max-width: 575.98px) {
    .security-delay-control .security-delay-number {
        width: 65px !important;
    }

    .security-delay-control .security-delay-toggle label {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ==========================================================================
   MySecurity - Service Cards (responsive layout)
   ========================================================================== */
.security-service-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    background-color: #fff;
}

.security-service-card:nth-child(even) {
    background-color: #f8f9fa;
}

.security-service-icon {
    min-width: 90px;
}

.security-service-icon img {
    max-width: 70px;
    height: auto;
}

.security-service-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.security-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.security-status-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.security-status-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-status-option img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.security-status-option .form-check {
    margin-bottom: 0;
}

.security-status-option a {
    font-size: 0.8125rem;
}

@media (max-width: 991.98px) {
    .security-service-card .security-section-label {
        margin-top: 1rem;
    }

    .security-service-icon {
        margin-bottom: 0.5rem;
    }
}

/* Couple account note - add clearance for the steps_icon positioned above member_info on mobile */
@media only screen and (max-width: 575.98px) {
    .couple-account-note {
        margin-bottom: 3.5rem;
    }
}

/* =====================================================
   RestrictMyWillUntilReviewed feature
   Scoped to the MyWill release-restriction alert on
   mywill.aspx, printandship.aspx, bluenotary.aspx and the
   affiliate read-only badge on myreferencecode.aspx.
   All colours from the approved brand palette in CLAUDE.md.
   ===================================================== */
.mywill-review-restriction {
    border-left: 4px solid #E19717; /* brand orange */
}

.mywill-review-restriction .alert-heading {
    color: #4D5149; /* brand dark */
    font-weight: 600;
}

/* Read-only badge on myreferencecode.aspx affiliate card */
.badge.badge-restriction {
    background-color: #D9CFCB; /* brand stone */
    color: #3C3C3B; /* brand dark */
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
}

/* WCAG 2.2 AA: disabled release buttons get a not-allowed cursor */
.btn.disabled[aria-disabled="true"],
.btn:disabled {
    cursor: not-allowed;
}

/* ==========================================================================
   Executor Notification Card (mywill_executor / myexpatwill_executor)
   Used by the "Notify my Executor" opt-in card inside each Executor panel.
   ========================================================================== */
.pw-notify-executor-card {
    background: #ffffff;
    border: 1px solid #D9CFCB;
    border-left: 4px solid #D9CFCB;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(60, 60, 59, 0.08);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.pw-notify-executor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.pw-notify-executor-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.pw-notify-executor-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #008AA0;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pw-notify-executor-title {
    color: #3C3C3B;
    font-weight: 600;
    margin: 0.25rem 0 0.25rem;
}

.pw-notify-executor-subtitle {
    color: #4D5149;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Enabled state: accent shift so active Executor notifications stand out */
.pw-notify-executor-card.is-enabled {
    border-left-color: #008AA0;
    background: #f6fbfc;
}

/* Preview Email link: always interactive, sits on its own row below the subtitle */
.pw-notify-executor-preview-row {
    margin-bottom: 1rem;
}

.pw-notify-executor-preview {
    color: #008AA0;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.pw-notify-executor-preview:hover,
.pw-notify-executor-preview:focus {
    color: #006E7B;
    text-decoration: underline;
}

/* Custom toggle switch (replaces the MDB form-switch that rendered poorly).
   The underlying checkbox is display:none; all click handling and state updates are
   driven by JavaScript (InitNotifyExecutorCards in ClientFunctions.js) which toggles
   the .is-enabled class on the parent .pw-notify-executor-card. The track's visual
   state is driven purely by that class. */
.pw-notify-switch {
    display: inline-block;
    position: relative;
    width: 3rem;
    height: 1.625rem;
    margin: 0;
    flex-shrink: 0;
    vertical-align: middle;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pw-notify-switch__input {
    /* Fully hidden - JS toggles its .checked property so the value still submits */
    display: none !important;
}

.pw-notify-switch__track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #c4b9b5;
    border: 1px solid #a8a09c;
    border-radius: 999px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    pointer-events: none;
}

.pw-notify-switch__track::before {
    content: '';
    position: absolute;
    top: 0.1rem;
    left: 0.1rem;
    width: 1.25rem;
    height: 1.25rem;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(60, 60, 59, 0.35);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ON state: driven by the .is-enabled class on the parent card (set by JS) */
.pw-notify-executor-card.is-enabled .pw-notify-switch__track {
    background: #008AA0;
    border-color: #006E7B;
}

.pw-notify-executor-card.is-enabled .pw-notify-switch__track::before {
    transform: translateX(1.375rem);
}

.pw-notify-switch:hover .pw-notify-switch__track {
    border-color: #7d7672;
}

.pw-notify-executor-card.is-enabled .pw-notify-switch:hover .pw-notify-switch__track {
    border-color: #008AA0;
}

.pw-notify-switch:focus-within .pw-notify-switch__track {
    outline: 2px solid #008AA0;
    outline-offset: 2px;
}

/* Body: always visible but greyed out when toggle is off */
.pw-notify-executor-body {
    transition: opacity 0.25s ease, filter 0.25s ease;
    padding-top: 0.5rem;
}

.pw-notify-executor-card:not(.is-enabled) .pw-notify-executor-body {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(70%);
    border-top: 1px dashed #D9CFCB;
    margin-top: 0.75rem;
    padding-top: 1rem;
}

.pw-notify-executor-card:not(.is-enabled) .pw-notify-executor-body .form-control,
.pw-notify-executor-card:not(.is-enabled) .pw-notify-executor-body .form-check-input {
    background-color: #f4f1ef;
}

.pw-notify-executor-privacy {
    background: #f4f1ef;
    border-radius: 0.375rem;
    padding: 1rem 1.1rem;
    margin-top: 0.5rem;
}

.pw-notify-executor-privacy-label {
    color: #3A5469;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

/* ============================================================================
   Member Statistics Report - Chart cards, canvases, data-table toggles
   ============================================================================ */

.pw-chart-card {
    background-color: #ffffff;
    border: 1px solid rgba(77, 81, 73, 0.15);
    border-radius: 10px;
    padding: 1.25rem 1.25rem 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(60, 60, 59, 0.06);
}

.pw-chart-card h4 {
    color: #3C3C3B;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    text-align: center;
}

.pw-chart-canvas-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.pw-chart-canvas-wrapper.pw-h-260 { height: 260px; }
.pw-chart-canvas-wrapper.pw-h-280 { height: 280px; }
.pw-chart-canvas-wrapper.pw-h-300 { height: 300px; }
.pw-chart-canvas-wrapper.pw-h-320 { height: 320px; }
.pw-chart-canvas-wrapper.pw-h-360 { height: 360px; }
.pw-chart-canvas-wrapper.pw-h-380 { height: 380px; }
.pw-chart-canvas-wrapper.pw-h-400 { height: 400px; }
.pw-chart-canvas-wrapper.pw-h-420 { height: 420px; }
.pw-chart-canvas-wrapper.pw-h-440 { height: 440px; }
.pw-chart-canvas-wrapper.pw-h-500 { height: 500px; }
.pw-chart-canvas-wrapper.pw-h-600 { height: 600px; }

.pw-chart-canvas-wrapper canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
}

.pw-chart-circular-inner {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    aspect-ratio: 1;
    max-width: 100%;
}

.pw-chart-grid-2,
.pw-chart-grid-3 {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

/* Grid items default to min-width:auto and min-height:auto, which lets a Chart.js canvas push the row beyond its intended size; reset so the wrapper's explicit height is authoritative. */
.pw-chart-grid-2 > div,
.pw-chart-grid-3 > div {
    min-width: 0;
    min-height: 0;
}

@media (min-width: 768px) {
    .pw-chart-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pw-chart-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
    .pw-chart-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pw-chart-caption {
    display: block;
    color: #4D5149;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.25rem;
}

.pw-data-table-toggle-wrapper {
    text-align: right;
    margin: 0.5rem 0 0.75rem;
}

.pw-data-table-toggle {
    background-color: transparent;
    border: 1px solid #008AA0;
    color: #008AA0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pw-data-table-toggle:hover {
    background-color: #008AA0;
    color: #ffffff;
}

.pw-data-table-toggle:focus-visible {
    background-color: #008AA0;
    color: #ffffff;
    outline: 3px solid #E19717;
    outline-offset: 2px;
}

.pw-data-table-collapsed {
    display: none;
}

.pw-chart-section-intro {
    color: #4D5149;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.pw-notify-executor-privacy p {
    color: #4D5149;
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
}

/* ============================================================================
   Administrator Sales Dashboard - top-of-page combo chart for full Admins
   ============================================================================ */

.pw-admin-sales-chart {
    margin-top: 1.5rem;
    padding-top: 1.75rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .pw-admin-sales-chart {
        margin-top: 2rem;
        padding-top: 2.25rem;
    }
}

.pw-admin-sales-card.pw-chart-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f1ef 100%);
    border: 1px solid rgba(0, 138, 160, 0.22);
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1rem;
    box-shadow: 0 6px 22px rgba(60, 60, 59, 0.10);
    position: relative;
    overflow: hidden;
}

/* Loading overlay shown while a site-selector click is navigating the page. */
.pw-admin-sales-spinner-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 16px;
    z-index: 20;
}

.pw-admin-sales-card.pw-admin-sales-loading .pw-admin-sales-spinner-overlay {
    display: flex;
}

.pw-admin-sales-card.pw-admin-sales-loading .pw-admin-sales-site-btn {
    pointer-events: none;
    opacity: 0.55;
}

.pw-admin-sales-card.pw-admin-sales-loading {
    cursor: progress;
}

.pw-admin-sales-spinner {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(0, 138, 160, 0.18);
    border-top-color: #008AA0;
    border-radius: 50%;
    animation: pwAdminSalesSpin 0.85s linear infinite;
}

@keyframes pwAdminSalesSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .pw-admin-sales-spinner {
        animation-duration: 2s;
    }
}

.pw-admin-sales-card.pw-chart-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #008AA0 0%, #E19717 50%, #3A5469 100%);
}

.pw-admin-sales-header {
    text-align: left;
    margin-bottom: 1.25rem;
}

.pw-admin-sales-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #008AA0;
    margin-bottom: 0.25rem;
}

.pw-admin-sales-title {
    color: #3C3C3B;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}

.pw-admin-sales-subtitle {
    color: #4D5149;
    font-size: 0.9rem;
    font-weight: 500;
}

.pw-admin-sales-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .pw-admin-sales-kpis {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.pw-admin-sales-kpi {
    background-color: #ffffff;
    border: 1px solid rgba(77, 81, 73, 0.12);
    border-left: 4px solid #D9CFCB;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.pw-admin-sales-kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #4D5149;
    text-transform: uppercase;
}

.pw-admin-sales-kpi-value {
    color: #3C3C3B;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.pw-admin-sales-kpi-revenue { border-left-color: #4D5149; }
.pw-admin-sales-kpi-revenue .pw-admin-sales-kpi-value { color: #006E7B; }

.pw-admin-sales-kpi-new { border-left-color: #008AA0; }
.pw-admin-sales-kpi-ext { border-left-color: #E19717; }
.pw-admin-sales-kpi-other { border-left-color: #3A5469; }

.pw-admin-sales-site-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}

.pw-admin-sales-site-btn {
    display: inline-block;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(77, 81, 73, 0.25);
    border-radius: 999px;
    background-color: #ffffff;
    color: #4D5149;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.2;
}

.pw-admin-sales-site-btn:hover,
.pw-admin-sales-site-btn:focus-visible {
    border-color: #008AA0;
    color: #006E7B;
    background-color: #ffffff;
    text-decoration: none;
}

.pw-admin-sales-site-btn:focus-visible {
    outline: 3px solid #E19717;
    outline-offset: 2px;
}

.pw-admin-sales-site-btn-active,
.pw-admin-sales-site-btn-active:hover,
.pw-admin-sales-site-btn-active:focus-visible {
    background-color: #008AA0;
    border-color: #006E7B;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 138, 160, 0.25);
}

.pw-admin-sales-legend {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.25rem;
}

.pw-admin-sales-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #3C3C3B;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
}

.pw-admin-sales-legend-swatch {
    display: inline-block;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.pw-admin-sales-legend-swatch-bar {
    width: 22px;
    height: 14px;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
}

.pw-admin-sales-legend-swatch-line {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    align-self: center;
}

.pw-admin-sales-legend-swatch-line-dashed {
    width: 28px;
    height: 0;
    border: 0;
    border-top: 2.5px dashed #DC2626;
    border-radius: 0;
    align-self: center;
    background-color: transparent;
}

.pw-admin-sales-kpi-delta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.pw-admin-sales-kpi-delta-arrow {
    font-size: 0.75rem;
    line-height: 1;
}

.pw-admin-sales-kpi-delta-up { color: #006E7B; }
/* Down color matches the chart's gross-sales line (#DC2626), which deliberately sits outside the
   brand palette for contrast. Reusing it here keeps "negative change" visually consistent with
   the comparison line on the chart. */
.pw-admin-sales-kpi-delta-down { color: #DC2626; }
.pw-admin-sales-kpi-delta-flat { color: #4D5149; }
.pw-admin-sales-kpi-delta-new { color: #4D5149; font-style: italic; }

@media (min-width: 768px) {
    .pw-admin-sales-card.pw-chart-card { padding: 1.75rem 1.75rem 1.25rem; }
    .pw-admin-sales-title { font-size: 1.6rem; }
}

/* Mobile tweaks for the Executive Dashboard. The chart itself switches to 5
   weekly buckets at this breakpoint (via pwAggregateWeeklyIfNarrow in
   MembersFunctions.js); here we also tighten the surrounding chrome so the
   legend and card padding don't crowd out the chart area on narrow screens. */
@media (max-width: 767px) {
    .pw-admin-sales-card.pw-chart-card { padding: 1rem 0.9rem 0.75rem; }
    .pw-admin-sales-title { font-size: 1.15rem; }
    .pw-admin-sales-subtitle { font-size: 0.8rem; }
    .pw-admin-sales-kpi { padding: 0.6rem 0.75rem; }
    .pw-admin-sales-kpi-label { font-size: 0.68rem; }
    .pw-admin-sales-kpi-value { font-size: 1.15rem; }
    .pw-admin-sales-kpi-delta { font-size: 0.7rem; }
    .pw-admin-sales-legend {
        gap: 0.35rem 0.75rem;
        margin: 0 0 0.75rem;
    }
    .pw-admin-sales-legend-item { font-size: 0.78rem; }
    .pw-admin-sales-legend-swatch-bar { width: 16px; height: 10px; }
    .pw-admin-sales-legend-swatch-line,
    .pw-admin-sales-legend-swatch-line-dashed { width: 18px; }
    .pw-admin-sales-site-btn { font-size: 0.78rem; padding: 0.35rem 0.75rem; }
}

/* Phone-width tweaks (below Bootstrap's 'sm' breakpoint). On these viewports
   the card previously felt cramped because the 420px chart wrapper, 2x2 KPI
   grid, and 8-item vertical legend each claimed a full viewport's worth of
   height. Here we tighten everything further, hide the 4 prior-year legend
   entries (their faded/dashed styling plus the "vs. last year" KPI deltas
   make the intent self-evident), and shorten the canvas to 260px so the
   chart stays in the visible screen without forcing long scrolls. */
@media (max-width: 575px) {
    .pw-admin-sales-card.pw-chart-card { padding: 0.75rem 0.6rem 0.5rem; }
    .pw-admin-sales-eyebrow { font-size: 0.7rem; }
    .pw-admin-sales-title { font-size: 1rem; line-height: 1.25; }
    .pw-admin-sales-subtitle { font-size: 0.72rem; }
    .pw-admin-sales-header { margin-bottom: 0.75rem; }
    .pw-admin-sales-site-selector { gap: 0.3rem; margin: 0 0 0.75rem; }
    .pw-admin-sales-site-btn { font-size: 0.7rem; padding: 0.25rem 0.55rem; }
    .pw-admin-sales-kpis { gap: 0.5rem; }
    .pw-admin-sales-kpi { padding: 0.45rem 0.55rem; border-left-width: 3px; }
    .pw-admin-sales-kpi-label { font-size: 0.6rem; }
    .pw-admin-sales-kpi-value { font-size: 0.95rem; }
    .pw-admin-sales-kpi-delta { font-size: 0.62rem; }
    /* Drop the chart canvas and its legend on narrow phones. MDB's Chart.js
       bundle reserves ~100px at the top of the canvas for the suppressed
       legend box and strips the axis max/offset config we'd need to make
       the plot read well in the remaining pixels, so below 'sm' we'd be
       shipping a visually broken chart either way. The KPI tiles above
       already communicate the 30-day totals AND the year-over-year deltas,
       so an exec glancing at the dashboard on a phone still gets the full
       story; the chart returns at >=576px where the plot has room to breathe. */
    .pw-admin-sales-legend { display: none; }
    .pw-chart-canvas-wrapper { display: none; }
}

.executorlogo {
    max-height: 200px;
    max-width: 200px;
}

/* ============================================================
 * MyTeam service - split-pane card hierarchy
 * Used by /members/myteam.aspx and /members/myteam_search.aspx
 * (and /fr/members/ mirrors). Members area serves unpurged CSS,
 * so no PurgeCSS safelist is needed.
 * ============================================================ */
.mt-page {
    --mt-teal: #008AA0;
    --mt-teal-deep: #006E7B;
    --mt-ochre: #E19717;
    --mt-ochre-deep: #A66800;
    --mt-slate: #3A5469;
    --mt-ink: #3C3C3B;
    --mt-paper: #FFFFFF;
    --mt-page-bg: #F7F4F1;
    --mt-rule: #D9CFCB;
    --mt-rule-soft: rgba(217, 207, 203, 0.55);
    --mt-shadow-card: 0 1px 0 rgba(60, 60, 59, 0.04), 0 12px 28px -16px rgba(60, 60, 59, 0.18);
    --mt-shadow-card-hover: 0 1px 0 rgba(60, 60, 59, 0.04), 0 18px 36px -18px rgba(60, 60, 59, 0.28);
    color: var(--mt-ink);
}

.mt-page__header {
    margin-bottom: 1.75rem;
}

.mt-page__title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--mt-ink);
    margin-bottom: 0.25rem;
}

.mt-page__title sup {
    font-size: 0.5em;
    vertical-align: super;
    color: var(--mt-slate);
}

.mt-page__subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--mt-slate);
    display: inline;
}

.mt-page__lede {
    color: var(--mt-slate);
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: 70ch;
}

.mt-section-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mt-slate);
    margin: 0 0 0.75rem 0;
}

.mt-breadcrumb {
    margin-top: 0.75rem;
}

.mt-breadcrumb__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--mt-slate);
}

.mt-breadcrumb__item {
    display: inline-flex;
    align-items: center;
}

.mt-breadcrumb__separator {
    margin: 0 0.5rem;
    color: var(--mt-rule);
}

.mt-breadcrumb__link {
    color: var(--mt-teal);
    text-decoration: none;
}

.mt-breadcrumb__link:hover {
    color: var(--mt-teal-deep);
    text-decoration: underline;
}

.mt-privacy {
    margin-bottom: 1.5rem;
}

.mt-privacy__alert {
    border-left: 3px solid var(--mt-ochre);
}

/* Roll-up stats grid */
.mt-rollup {
    background: var(--mt-paper);
    border: 1px solid var(--mt-rule);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--mt-shadow-card);
}

.mt-rollup__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem 1.5rem;
}

.mt-rollup__stat {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0;
}

.mt-rollup__value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--mt-ink);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.mt-rollup__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mt-slate);
    margin-top: 0.125rem;
}

/* Grouped roll-up stats: 3 sections (Team, Client status, Client activity) with
   accent-colored left rules to convey which numbers belong together. The Team
   section's "total accounts" is the parent stat (rendered larger), with managers/
   professionals/clients beneath as its breakdown. The Client groups carry an
   ochre rule to mark them as client-scoped metrics. */
.mt-rollup__groups {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .mt-rollup__groups {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.mt-rollup__group {
    padding: 0.25rem 0 0.25rem 1rem;
    border-left: 3px solid var(--mt-rule);
    min-width: 0;
}

.mt-rollup__group--team {
    border-left-color: var(--mt-teal);
}

.mt-rollup__group--clients {
    border-left-color: var(--mt-ochre);
}

.mt-rollup__group-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mt-slate);
    margin: 0 0 0.5rem;
}

.mt-rollup__stat--hero .mt-rollup__value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mt-teal-deep);
}

.mt-rollup__stat--hero .mt-rollup__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mt-ink);
}

.mt-rollup__breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem 1.25rem;
    margin-top: 0.625rem;
}

.mt-rollup__breakdown .mt-rollup__value {
    font-size: 1.125rem;
}

.mt-rollup__breakdown .mt-rollup__label {
    font-size: 0.75rem;
}

/* Toolbar (view tabs + actions) */
.mt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.5rem 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--mt-rule);
}

.mt-toolbar--search {
    border-bottom: none;
    padding-top: 0.5rem;
    margin-top: 1rem;
}

.mt-tabs {
    display: inline-flex;
    background: var(--mt-paper);
    border: 1px solid var(--mt-rule);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.mt-tab {
    border: 0;
    background: transparent;
    color: var(--mt-slate);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.mt-tab:hover {
    color: var(--mt-ink);
}

.mt-tab--active {
    background: var(--mt-teal);
    color: #FFFFFF;
}

.mt-tab--active:hover {
    color: #FFFFFF;
}

.mt-tab:focus-visible,
.mt-card:focus-visible,
.mt-icon-btn:focus-visible,
.mt-action-menu__item:focus-visible {
    outline: 3px solid var(--mt-teal);
    outline-offset: 2px;
}

.mt-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.mt-btn {
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mt-btn-link {
    color: var(--mt-slate);
    font-size: 0.8125rem;
    text-decoration: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.mt-btn-link:hover {
    color: var(--mt-teal);
    text-decoration: underline;
}

/* Empty state */
.mt-empty {
    background: var(--mt-paper);
    border: 1px dashed var(--mt-rule);
    border-radius: 14px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--mt-slate);
}

.mt-empty__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mt-ink);
    margin-bottom: 0.5rem;
}

.mt-empty__body {
    font-size: 0.9375rem;
    color: var(--mt-slate);
}

/* Tree container (formerly a split pane with a context panel; the right pane was removed
   because it duplicated the card content. Class names kept for back-compat with existing
   selectors.) */
.mt-split {
    display: block;
}

.mt-split__left {
    min-width: 0;
}

/* Card */
.mt-card-wrap {
    position: relative;
    margin-left: 0;
}

.mt-card-wrap[data-mt-depth="2"] { padding-left: 28px; }
.mt-card-wrap[data-mt-depth="3"] { padding-left: 56px; }
.mt-card-wrap[data-mt-depth="4"] { padding-left: 84px; }
.mt-card-wrap[data-mt-depth="5"] { padding-left: 112px; }
.mt-card-wrap[data-mt-depth="6"] { padding-left: 140px; }
.mt-card-wrap[data-mt-depth="7"] { padding-left: 168px; }
.mt-card-wrap[data-mt-depth="8"] { padding-left: 196px; }

/* Hairline connector lines for nested cards */
.mt-card-wrap[data-mt-depth]:not([data-mt-depth="1"])::before {
    content: "";
    position: absolute;
    left: calc((var(--mt-depth-px, 28px)) - 14px);
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--mt-rule);
}

.mt-card-wrap[data-mt-depth="2"] { --mt-depth-px: 28px; }
.mt-card-wrap[data-mt-depth="3"] { --mt-depth-px: 56px; }
.mt-card-wrap[data-mt-depth="4"] { --mt-depth-px: 84px; }
.mt-card-wrap[data-mt-depth="5"] { --mt-depth-px: 112px; }
.mt-card-wrap[data-mt-depth="6"] { --mt-depth-px: 140px; }
.mt-card-wrap[data-mt-depth="7"] { --mt-depth-px: 168px; }
.mt-card-wrap[data-mt-depth="8"] { --mt-depth-px: 196px; }

.mt-card-wrap[data-mt-depth]:not([data-mt-depth="1"])::after {
    content: "";
    position: absolute;
    left: calc((var(--mt-depth-px, 28px)) - 14px);
    top: 32px;
    width: 12px;
    height: 1px;
    background: var(--mt-rule);
}

.mt-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: var(--mt-paper);
    border: 1px solid var(--mt-rule);
    border-radius: 14px;
    padding: 0.875rem 1rem;
    margin-bottom: 0.625rem;
    box-shadow: var(--mt-shadow-card);
    transition: box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 180ms ease;
    position: relative;
}

.mt-card:hover {
    border-color: rgba(0, 138, 160, 0.3);
    box-shadow: var(--mt-shadow-card-hover);
    transform: translateY(-1px);
}

.mt-card--search {
    flex-wrap: wrap;
}

/* Expandable list of clients beneath an affiliate card. Uses native <details>/<summary>
   so open/close works without JS. The whole block sits inside .mt-card-wrap, indented
   slightly under the card so the visual association is clear. */
.mt-card__clients {
    margin: -0.25rem 0 0.625rem 2.5rem;
    border-left: 2px solid var(--mt-rule-soft);
    padding-left: 0.875rem;
    font-size: 0.8125rem;
}

.mt-card__clients-toggle {
    list-style: none;
    cursor: pointer;
    color: var(--mt-slate);
    padding: 0.25rem 0;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 150ms ease;
}

.mt-card__clients-toggle::-webkit-details-marker {
    display: none;
}

.mt-card__clients-toggle:hover {
    color: var(--mt-teal-deep);
}

.mt-card__clients-chevron {
    font-size: 0.6875rem;
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mt-card__clients[open] .mt-card__clients-chevron {
    transform: rotate(90deg);
}

.mt-card__clients-list {
    list-style: none;
    margin: 0.25rem 0 0.5rem 0;
    padding: 0;
    border-top: 1px dashed var(--mt-rule-soft);
    padding-top: 0.375rem;
}

.mt-card__clients-item {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: var(--mt-ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mt-card__clients-name {
    font-weight: 600;
}

.mt-card__clients-email {
    color: var(--mt-slate);
}

.mt-card__clients-userid {
    color: var(--mt-slate);
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.mt-card__clients-userid-label {
    color: var(--mt-slate);
    opacity: 0.75;
    margin-right: 0.125rem;
}

.mt-card__clients-login {
    margin-left: auto;
    color: var(--mt-slate);
    text-decoration: none;
    width: 1.875rem;
    height: 1.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 150ms ease, color 150ms ease;
}

.mt-card__clients-login:hover,
.mt-card__clients-login:focus-visible {
    background: var(--mt-rule-soft);
    color: var(--mt-teal-deep);
    outline: none;
}

/* When a search "View in tree" link targets a specific client, the URL carries
   ?highlight=<id>; the JS auto-expands the parent's client list and adds this
   class to the matching <li> so the user can find it at a glance. */
.mt-card__clients-item--highlight {
    background: rgba(225, 151, 23, 0.18);
    box-shadow: inset 0 0 0 1px var(--mt-ochre);
}

/* In list view the affiliate cards are flattened, so the client list's vertical-rule
   indent doesn't make sense. */
.mt-page[data-mt-active-view="list"] .mt-card__clients {
    margin-left: 0;
}

/* Org Chart view is a high-level visual hierarchy. Hiding the per-card client list there
   keeps every tile the same height so the chart reads cleanly; users can switch to Tree
   or List view to see client details. The Expand all / Collapse all buttons are also
   hidden because there's nothing to expand or collapse in this flat, disclosure-less view. */
.mt-page[data-mt-active-view="orgchart"] .mt-card__clients {
    display: none;
}

.mt-page[data-mt-active-view="orgchart"] #mt-btn-expand-all,
.mt-page[data-mt-active-view="orgchart"] #mt-btn-collapse-all {
    display: none;
}

.mt-card__chevron {
    border: 0;
    background: transparent;
    color: var(--mt-slate);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}

.mt-card__chevron:hover {
    background: var(--mt-rule-soft);
    color: var(--mt-ink);
}

.mt-card__chevron-icon {
    display: inline-block;
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mt-card[aria-expanded="true"] .mt-card__chevron-icon,
.mt-card__chevron[aria-expanded="true"] .mt-card__chevron-icon {
    transform: rotate(90deg);
}

.mt-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--mt-rule);
    flex-shrink: 0;
}

.mt-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.mt-card__name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--mt-ink);
    line-height: 1.2;
}

.mt-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--mt-slate);
    flex-wrap: wrap;
}

.mt-card__email {
    color: var(--mt-slate);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 22ch;
}

.mt-card__userid {
    color: var(--mt-slate);
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.mt-card__userid-label {
    color: var(--mt-slate);
    opacity: 0.75;
    margin-right: 0.125rem;
}

.mt-card__stats {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--mt-slate);
    font-variant-numeric: tabular-nums;
}

.mt-card__path {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--mt-slate);
}

.mt-card__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

/* Role badges - tracked-out small caps */
.mt-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.5;
    white-space: nowrap;
}

.mt-role-badge--manager {
    background: var(--mt-teal);
    color: #FFFFFF;
}

.mt-role-badge--professional {
    /* Use ink-on-ochre for AA contrast (white-on-ochre fails on small text). */
    background: var(--mt-ochre);
    color: var(--mt-ink);
}

.mt-role-badge--client {
    background: transparent;
    color: var(--mt-slate);
    border: 1px solid var(--mt-slate);
}

/* Icon button (Login, View clients, focus, kebab) */
.mt-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--mt-slate);
    border-radius: 8px;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
    text-decoration: none;
}

.mt-icon-btn:hover {
    background: var(--mt-rule-soft);
    color: var(--mt-teal);
    border-color: var(--mt-rule);
}

/* Action menu (kebab dropdown) */
.mt-action-menu {
    position: relative;
}

/* Lift the card-wrap above its siblings while its kebab menu is open so the dropdown
   paints over later cards instead of being clipped behind them. */
.mt-card-wrap:has(.mt-action-menu--open) {
    z-index: 50;
}

.mt-action-menu__list {
    list-style: none;
    margin: 0;
    padding: 0.25rem;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 220px;
    background: var(--mt-paper);
    border: 1px solid var(--mt-rule);
    border-radius: 10px;
    box-shadow: var(--mt-shadow-card-hover);
    display: none;
    z-index: 30;
}

.mt-action-menu.mt-action-menu--open .mt-action-menu__list {
    display: block;
}

.mt-action-menu__item {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--mt-ink);
    font-size: 0.875rem;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}

.mt-action-menu__item:hover {
    background: var(--mt-rule-soft);
    color: var(--mt-ink);
    text-decoration: none;
}

.mt-action-menu__item--danger {
    color: #B7382F;
}

.mt-action-menu__item--danger:hover {
    background: rgba(183, 56, 47, 0.08);
    color: #B7382F;
}

/* List view: flat, dense single-column directory style. Every card is visible regardless of expand state. */
.mt-page[data-mt-active-view="list"] .mt-card-wrap {
    padding-left: 0 !important;
}

.mt-page[data-mt-active-view="list"] .mt-card-wrap::before,
.mt-page[data-mt-active-view="list"] .mt-card-wrap::after {
    display: none;
}

.mt-page[data-mt-active-view="list"] .mt-card {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.375rem;
    border-radius: 8px;
}

.mt-page[data-mt-active-view="list"] .mt-card__avatar {
    width: 32px;
    height: 32px;
}

.mt-page[data-mt-active-view="list"] .mt-card__chevron {
    display: none;
}

.mt-page[data-mt-active-view="list"] .mt-card__stats {
    font-size: 0.8125rem;
}

/* Org Chart view: horizontal tile grid. Cards become equal-width tiles with stacked content. */
.mt-page[data-mt-active-view="orgchart"] .mt-split__left {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-content: flex-start;
    align-items: stretch;
}

.mt-page[data-mt-active-view="orgchart"] .mt-card-wrap {
    flex: 0 1 260px;
    min-width: 220px;
    padding-left: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mt-page[data-mt-active-view="orgchart"] .mt-card-wrap::before,
.mt-page[data-mt-active-view="orgchart"] .mt-card-wrap::after {
    display: none;
}

.mt-page[data-mt-active-view="orgchart"] .mt-card {
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.875rem;
    margin-bottom: 0;
}

.mt-page[data-mt-active-view="orgchart"] .mt-card__chevron {
    display: none;
}

.mt-page[data-mt-active-view="orgchart"] .mt-card__avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 0.5rem;
}

.mt-page[data-mt-active-view="orgchart"] .mt-card__body {
    width: 100%;
    text-align: center;
}

.mt-page[data-mt-active-view="orgchart"] .mt-card__meta {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.mt-page[data-mt-active-view="orgchart"] .mt-card__actions {
    margin-top: 0.5rem;
    margin-left: 0;
}

/* Picker (used by Move and Delegate modals) */
.mt-picker {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--mt-rule);
    border-radius: 10px;
    padding: 0.5rem;
}

.mt-picker__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mt-picker__item {
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
}

.mt-picker__item:hover {
    background: var(--mt-rule-soft);
}

.mt-picker__label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--mt-ink);
    margin: 0;
}

.mt-picker__role {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mt-slate);
}

/* Search-form layout */
.mt-search__form {
    background: var(--mt-paper);
    border: 1px solid var(--mt-rule);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

/* asp:RadioButtonList with RepeatLayout="UnorderedList" RepeatDirection="Horizontal" renders
   <ul><li><input><label></li>...</ul>; this strips the list bullets and lays out each
   <li> as an inline-flex pair with proper spacing between groups so each radio is
   unambiguously associated with its label. */
.mt-search__form .mt-search__radios {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
}

.mt-search__form .mt-search__radios li {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
}

.mt-search__form .mt-search__radios input[type="radio"] {
    margin: 0;
}

.mt-search__form .mt-search__radios label {
    margin: 0;
    font-size: 0.875rem;
    color: var(--mt-ink);
}

/* MDB datepicker toggle button looks tight against the form-outline border by default; give
   it a touch more clickable area inside our form. */
.mt-search__form .datepicker-toggle-button {
    background: transparent;
    border: 0;
    padding: 0.25rem 0.5rem;
    color: var(--mt-slate);
    cursor: pointer;
}

.mt-search__form .datepicker-toggle-button:hover,
.mt-search__form .datepicker-toggle-button:focus-visible {
    color: var(--mt-teal-deep);
    outline: none;
}

.mt-search__results {
    margin-top: 1rem;
}

.mt-search__path {
    font-size: 0.8125rem;
    color: var(--mt-slate);
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mt-card,
    .mt-tab,
    .mt-card__chevron-icon,
    .mt-icon-btn {
        transition: none;
    }
    .mt-card:hover {
        transform: none;
    }
}

/* Font Awesome icon styled to fill the circular .feature_img tile (used by MyTeam in the Affiliate Services panel) */
.feature_img .feature_img__icon {
    font-size: 64px;
    color: #008AA0;
    line-height: 120px;
    vertical-align: middle;
}

/* ---- Team Sales rollup, per-card sales, and report launcher --------------
   The Team Sales section reuses .mt-rollup (card) and .mt-rollup__groups (the
   3-column grid). Sales groups carry a slate accent rule so they read as a
   distinct category from the teal Team group and the ochre Client groups. */
.mt-sales__caption {
    font-size: 0.8125rem;
    color: var(--mt-slate);
    margin: 0 0 1rem 0;
    max-width: 70ch;
}

.mt-rollup__group--sales {
    border-left-color: var(--mt-slate);
}

.mt-sales__money {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.mt-sales__money-line {
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

.mt-sales__amt {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--mt-ink);
}

.mt-sales__cur {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mt-slate);
    margin-left: 0.125rem;
}

.mt-sales__unpaid {
    display: inline-block;
    margin-left: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mt-ochre-deep);
}

.mt-sales__none {
    font-size: 0.8125rem;
    color: var(--mt-slate);
    font-style: italic;
}

/* Per-card "N sales" pill appended to the card stats line. */
.mt-card__sales-stat {
    color: var(--mt-slate);
    white-space: nowrap;
}

/* Per-card reference-code customers disclosure - mirrors .mt-card__clients with
   a slate rule so it reads as a sales (not hierarchy) list. */
.mt-card__sales-cust {
    margin: -0.25rem 0 0.625rem 2.5rem;
    border-left: 2px solid var(--mt-slate);
    padding-left: 0.875rem;
    font-size: 0.8125rem;
}

.mt-card__sales-toggle {
    list-style: none;
    cursor: pointer;
    color: var(--mt-slate);
    padding: 0.25rem 0;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 150ms ease;
}

.mt-card__sales-toggle::-webkit-details-marker {
    display: none;
}

.mt-card__sales-toggle:hover {
    color: var(--mt-teal-deep);
}

.mt-card__sales-chevron {
    font-size: 0.6875rem;
    transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mt-card__sales-cust[open] .mt-card__sales-chevron {
    transform: rotate(90deg);
}

.mt-card__sales-list {
    list-style: none;
    margin: 0.25rem 0 0.5rem 0;
    padding: 0;
    border-top: 1px dashed var(--mt-rule-soft);
    padding-top: 0.375rem;
}

.mt-card__sales-item {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: var(--mt-ink);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mt-card__sales-name {
    font-weight: 600;
}

.mt-card__sales-email,
.mt-card__sales-date {
    color: var(--mt-slate);
}

.mt-card__sales-amt {
    margin-left: auto;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--mt-teal-deep);
}

.mt-page[data-mt-active-view="list"] .mt-card__sales-cust {
    margin-left: 0;
}

.mt-page[data-mt-active-view="orgchart"] .mt-card__sales-cust {
    display: none;
}

/* Team Sales Report launcher (date range + View / Download buttons). */
.mt-report {
    background: var(--mt-paper);
    border: 1px solid var(--mt-rule);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--mt-shadow-card);
}

.mt-report__scope {
    font-size: 0.8125rem;
    color: var(--mt-slate);
    margin: 0 0 0.75rem 0;
    max-width: 70ch;
}

.mt-report__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.mt-report__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ==========================================================================
   Document Acknowledgment Modal
   Used on download/email pages for MyWill, MyPowerOfAttorney, MyLivingWill,
   and MyFuneral. Implemented as a Bootstrap/MDB modal styled with the
   LegalWills brand palette only (#006E7B, #008AA0, #4D5149, #D9CFCB,
   #E19717, #3A5469, #3C3C3B, #FFFFFF).
   ========================================================================== */
.ack-doc-modal .modal-dialog {
    max-width: 580px;
}

.ack-doc__content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 24px 60px rgba(60, 60, 59, 0.22), 0 6px 18px rgba(60, 60, 59, 0.10);
    position: relative;
}

.ack-doc__ribbon {
    height: 6px;
    background: linear-gradient(90deg, #006E7B 0%, #008AA0 55%, #E19717 100%);
}

.ack-doc__header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 30px 32px 20px;
    border-bottom: 1px solid #D9CFCB;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(217, 207, 203, 0.20) 100%);
    position: relative;
}

.ack-doc__seal {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #006E7B;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 14px rgba(0, 110, 123, 0.30);
    position: relative;
}

.ack-doc__seal::before,
.ack-doc__seal::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ack-doc__seal::before {
    inset: -6px;
    border: 1px solid rgba(0, 110, 123, 0.30);
}

.ack-doc__seal::after {
    inset: -12px;
    border: 1px solid rgba(0, 110, 123, 0.10);
}

.ack-doc__heading {
    flex: 1 1 auto;
    min-width: 0;
}

.ack-doc__eyebrow {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4D5149;
    font-weight: 600;
}

.ack-doc__title {
    margin: 4px 0 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3C3C3B;
    line-height: 1.2;
    letter-spacing: -0.005em;
}

.ack-doc__close {
    margin: 4px 0 0 auto;
    align-self: flex-start;
    flex-shrink: 0;
}

.ack-doc__body {
    padding: 28px 32px 8px;
}

.ack-doc__statement {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: #3C3C3B;
    text-align: left;
    position: relative;
    padding: 0 4px;
}

.ack-doc__divider {
    margin: 24px 0 18px;
    text-align: center;
    color: #E19717;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.ack-doc__divider::before,
.ack-doc__divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #D9CFCB;
}

.ack-doc__divider-mark {
    color: #E19717;
    font-size: 14px;
    line-height: 1;
}

.ack-doc__check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin: 0;
    border: 1px solid #D9CFCB;
    border-radius: 10px;
    background: rgba(217, 207, 203, 0.16);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.ack-doc__check:hover {
    border-color: #008AA0;
    background: #FFFFFF;
}

.ack-doc__check:focus-within {
    border-color: #006E7B;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 110, 123, 0.18);
}

/* Visually-hidden but still focusable so keyboard users can Tab to the
   acknowledgment checkbox and toggle it with Space. The visual checkbox
   is the .ack-doc__check-box sibling that mirrors :checked / :focus-visible
   states from this input. */
.ack-doc__check-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.ack-doc__check-box {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid #4D5149;
    border-radius: 5px;
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ack-doc__check-input:checked + .ack-doc__check-box {
    background: #006E7B;
    border-color: #006E7B;
    color: #FFFFFF;
    transform: scale(1.04);
}

.ack-doc__check-input:focus-visible + .ack-doc__check-box {
    box-shadow: 0 0 0 3px rgba(0, 110, 123, 0.35);
    border-color: #006E7B;
}

.ack-doc__check-label {
    color: #3C3C3B;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ack-doc__footer {
    padding: 18px 32px 24px;
    border-top: 1px solid #D9CFCB;
    background: #FFFFFF;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.ack-doc__cancel {
    background: transparent;
    border: 1px solid #4D5149;
    color: #4D5149;
    font-weight: 600;
    padding: 8px 18px;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ack-doc__cancel:hover,
.ack-doc__cancel:focus {
    background: #4D5149;
    border-color: #4D5149;
    color: #FFFFFF;
}

.ack-doc__cancel:focus-visible {
    outline: 2px solid #006E7B;
    outline-offset: 2px;
}

.ack-doc__close:focus-visible {
    outline: 2px solid #006E7B;
    outline-offset: 2px;
    border-radius: 4px;
}

.ack-doc__continue {
    background: #006E7B;
    border: 1px solid #006E7B;
    color: #FFFFFF;
    font-weight: 600;
    padding: 9px 22px;
    box-shadow: 0 6px 14px rgba(0, 110, 123, 0.22);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    display: inline-flex;
    align-items: center;
}

.ack-doc__continue:hover:not(:disabled),
.ack-doc__continue:focus:not(:disabled) {
    background: #008AA0;
    border-color: #008AA0;
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgba(0, 138, 160, 0.28);
    transform: translateY(-1px);
}

.ack-doc__continue:focus-visible:not(:disabled) {
    outline: 2px solid #FFFFFF;
    outline-offset: -4px;
    box-shadow: 0 0 0 3px rgba(0, 110, 123, 0.45), 0 8px 18px rgba(0, 138, 160, 0.28);
}

.ack-doc__continue:disabled,
.ack-doc__continue[disabled] {
    background: #D9CFCB;
    border-color: #D9CFCB;
    color: #FFFFFF;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
    transform: none;
}

.ack-doc__continue-icon {
    transition: transform 0.18s ease;
}

.ack-doc__continue:hover:not(:disabled) .ack-doc__continue-icon {
    transform: translateX(3px);
}

@media (max-width: 575.98px) {
    .ack-doc__header,
    .ack-doc__body,
    .ack-doc__footer {
        padding-left: 22px;
        padding-right: 22px;
    }
    .ack-doc__seal {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    .ack-doc__title {
        font-size: 1.3rem;
    }
    .ack-doc__statement {
        font-size: 0.95rem;
    }
    .ack-doc__footer {
        flex-direction: column-reverse;
    }
    .ack-doc__footer .ack-doc__cancel,
    .ack-doc__footer .ack-doc__continue {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ack-doc__check,
    .ack-doc__check-box,
    .ack-doc__continue,
    .ack-doc__continue-icon,
    .ack-doc__cancel {
        transition: none;
    }
    .ack-doc__continue:hover:not(:disabled) {
        transform: none;
    }
    .ack-doc__continue:hover:not(:disabled) .ack-doc__continue-icon {
        transform: none;
    }
    .ack-doc__check-input:checked + .ack-doc__check-box {
        transform: none;
    }
}

/* ============================================================================== */
/* Wizard toggle cards (single-select Yes/No used by _distribution_contingency)   */
/* ============================================================================== */
.pw-wiz-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pw-wiz-toggle-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
    color: #3C3C3B;
    font-size: 1rem;
    text-decoration: none;
}
.pw-wiz-toggle-card small {
    font-size: .9rem;
}
.pw-wiz-toggle-link {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 18px;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    color: #3C3C3B;
    text-decoration: none;
    cursor: pointer;
    /* Override the global `a { transition: 0.5s }` rule so the focus/active
       state changes don't progressively animate line-height, padding, etc. */
    transition: none;
    line-height: 2;
}
.pw-wiz-toggle-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
}
.pw-wiz-toggle-link > * {
    position: relative;
    z-index: 2;
}
.pw-wiz-toggle-link:hover,
.pw-wiz-toggle-link:focus,
.pw-wiz-toggle-link:active {
    color: #3C3C3B;
    text-decoration: none;
    outline: none;
}
/* Override the global Redesign.min.css `a:focus` and `a:active` rules so the
   focus/hold state doesn't change the link's geometry, font, or line-height
   (which otherwise turns the link into an inline-flex, fit-content, brown-
   bordered chip and animates a line-height growth on mousedown). Values must
   match the base `.pw-wiz-toggle-link` exactly. */
.pw-wiz-toggle-link:focus,
.pw-wiz-toggle-link:active {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    height: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: inherit;
    font-style: normal;
    letter-spacing: normal;
    line-height: 2;
}
@media (hover: hover) {
    .pw-wiz-toggle-card:hover {
        border-color: #008AA0;
    }
}
.pw-wiz-toggle-card:focus {
    outline: 2px solid #008AA0;
    outline-offset: -2px;
}
/* Selected state is derived from which content panel rendered (pnlSkipBlock vs pnlConfigureBlock).
   Server only flips Visible; CSS picks up the marker class via :has(). */
.pw-wiz-toggle-list:has(~ .pw-skip-active) .pw-toggle-no,
.pw-wiz-toggle-list:has(~ .pw-configure-active) .pw-toggle-yes {
    border-color: #008AA0;
    background: rgba(0,138,160,.04);
}
.pw-wiz-toggle-icon {
    width: 22px;
    height: 22px;
    border: 2px solid #bbb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .7rem;
    color: transparent;
    transition: all .2s ease;
}
.pw-wiz-toggle-list:has(~ .pw-skip-active) .pw-toggle-no .pw-wiz-toggle-icon,
.pw-wiz-toggle-list:has(~ .pw-configure-active) .pw-toggle-yes .pw-wiz-toggle-icon {
    background: #008AA0;
    border-color: #008AA0;
    color: #fff;
}

