/* Required field asterisks */
.edga-field-wrap label span,
.edga-registration-form label span {
    color: #C73434;
    font-weight: bold;
}

/* Top-of-form error summary */
.edga-registration-errors {
    background-color: #FBEAEA;
    border: 1px solid #8F2D2D;
    border-left: 4px solid #8F2D2D;
    padding: 1rem;
    margin-bottom: 2rem;
}

/* Clean up list spacing inside error summary */
.edga-registration-errors ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.edga-registration-errors li {
    margin-bottom: 0.25rem;
}


/* Lists used for people/cards */
.edga-people-list,
.edga-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

/* Avatar wrapper used in some templates */
.edga-card-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Optional header layout used by some card markup */
.edga-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Status variant used in some older markup */
.edga-status-active {
    background: #E7F1EA;
    color: #2E6B4F;
}

/* Metadata row used by some templates */
.edga-card-meta {
    font-size: 0.9rem;
    color: #2B2B2B;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Logo + number alignment inside meta items */
.edga-card-meta .edga-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.edga-card-meta .edga-meta-item img {
    margin-right: 0 !important;
}

/* Alternative tabs container class */
.edga-tabs-nav {
    display: flex;
    background-color: #F2F2EE;
    padding: 4px;
    border-radius: 8px;
    gap: 0;
    margin-bottom: 2rem;
    overflow-x: auto;
    border: 1px solid #D8D8D4;
}

/* Hover state for tab links */
.edga-tab-link:hover {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Small utilities */
.edga-back-link {
    margin-bottom: 1.5rem;
}
.edga-address-block {
    background: #fff;
    padding: 1rem;
    border: 1px solid #D8D8D4;
    margin-bottom: 1rem;
}

/* Password validation UI */
.edga-password-strength,
.edga-password-match {
    font-size: 0.85em;
    margin-top: 6px;
    font-weight: 600;
}
.edga-password-strength.edga-strength-weak { color: #8F2D2D; }
.edga-password-strength.edga-strength-medium { color: #7A5A1A; }
.edga-password-strength.edga-strength-strong { color: #2E6B4F; }
.edga-password-match.edga-match-ok { color: #2E6B4F; }
.edga-password-match.edga-match-bad { color: #8F2D2D; }

/* Event description readability */
.dtt-event-description h1,
.dtt-event-description h2,
.dtt-event-description h3 {
    margin: 1.5rem 0 1rem;
    color: #333;
}
.dtt-event-description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}
.dtt-event-description li {
    margin-bottom: 0.5rem;
}

/* Table numeric alignment */
.dtt-table th[style*="text-align: right"],
.dtt-table td[style*="text-align: right"] {
    font-variant-numeric: tabular-nums;
}

/* Mobile banner edge pull */
@media (max-width: 600px) {
    .dtt-banner {
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
}

/* Upgrade product list hover affordance */
.edga-product-list label {
    transition: transform 0.1s ease;
    border: 1px solid #D8D8D4;
}
.edga-product-list label:hover:not([style*="not-allowed"]) {
    border-color: #C73434;
    transform: translateX(4px);
}

/* Donation option tile (non-mini version) */
.edga-donation-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #fff;
    border: 1px solid #D8D8D4;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.edga-donation-option:hover {
    border-color: #2F5D7C;
}
.edga-don-amt {
    font-weight: 700;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 4px;
}
.edga-donation-option small {
    font-size: 0.75rem;
    line-height: 1.2;
    color: #666;
    display: block;
}
.edga-donation-radio {
    margin-bottom: 8px;
}

/* Donation section wrapper and supporting text */
.edga-donation-section {
    margin-top: 2rem;
    border-color: #D8D8D4;
    padding: 1.5rem;
}
.edga-donation-heading {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
}
.edga-donation-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #2B2B2B;
    line-height: 1.4;
}
.edga-donation-footer {
    margin: 0;
    font-size: 0.75rem;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

/* Money group focus styling and number input reset */
.edga-input-money-group:focus-within {
    border-color: #1F3A4D;
    box-shadow: 0 0 0 1px #1F3A4D;
}
.edga-input-money-group input[type="number"] {
    border: none !important;
    padding: 0 12px !important;
    margin: 0 !important;
    width: 100% !important;
    font-size: 1.1rem !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    height: 100% !important;
}

/* Player identity wrapper used in some markup */
.edga-player-identity {
    flex-grow: 1;
}

/* Settings UI */
.edga-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.edga-setting-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #777;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}
.edga-manage-row {
    border-top: 1px solid #D8D8D4;
    padding-top: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
}
.edga-link-subtle {
    font-size: 0.85rem;
    color: #2F5D7C;
    text-decoration: none;
    font-weight: 600;
}
.edga-link-subtle:hover {
    text-decoration: underline;
    color: #C73434;
}
.edga-divider {
    color: #D8D8D4;
}

/* Empty state hero */
.edga-empty-hero {
    text-align: center;
    padding: 3rem 1rem;
    background: #FAF9F7;
    border: 2px dashed #D8D8D4;
    border-radius: 8px;
}
.edga-hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.edga-empty-hero h4 {
    margin: 0 0 0.5rem;
    color: #1F3A4D;
}
.edga-empty-hero p {
    max-width: 300px;
    margin: 0 auto 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

/* Secondary button look */
.button.button-secondary {
    background: #fff !important;
    color: #C73434 !important;
    border: 1px solid #C73434 !important;
}
.button.button-secondary:hover {
    background: #FBEAEA !important;
}

/* Delete action link styling */
.edga-delete-inline-form {
    margin-left: 15px;
    display: inline-block;
}
.edga-button-delete-link {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: #8F2D2D !important;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s ease;
}
.edga-button-delete-link:hover {
    color: #C73434 !important;
}

/* Mobile alignment for delete action */
@media (max-width: 600px) {
    .edga-delete-inline-form {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        text-align: center;
    }
}














/* ==========================================================================
   1. CORE UTILITIES & ANIMATIONS
   ========================================================================== */
*, *:before, *:after { box-sizing: border-box; }

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}

.edga-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@keyframes edga-spin { to { transform: rotate(360deg); } }
@keyframes edgaFadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: translateY(0); } }

.edga-loading-spinner {
    display: inline-block; width: 1em; height: 1em; border: 2px solid #C73434;
    border-radius: 50%; border-top-color: transparent; animation: edga-spin 1s linear infinite;
    vertical-align: middle; margin-right: 5px;
}
.edga-loading { pointer-events: none; opacity: 0.8; }

/* ==========================================================================
   2. FORM LAYOUT & PADDING FIXES
   ========================================================================== */
.edga-field-wrap {
    position: relative;
    margin-bottom: 2.5rem !important; /* Space between input blocks */
    width: 100%;
}

.edga-field-wrap.edga-field-error input,
.edga-field-wrap.edga-field-error select,
.edga-password-error { border-color: #8F2D2D !important; }

.edga-registration-form button[type="submit"],
.edga-registration-form .button,
.edga-form-actions {
    margin-top: 3.5rem !important;
    display: flex !important;          /* Changed from inline-block to flex */
    align-items: center;               /* Vertical Center */
    justify-content: center;            /* Horizontal Center */
    width: 100%;                       /* Ensure it spans the container */
    text-align: center;
    text-decoration: none;
}

/* ==========================================================================
   2. FORM LAYOUT & PADDING FIXES (SURGICAL UPDATE)
   ========================================================================== */

/* ... other styles ... */

.edga-form-actions {
    margin-top: 4rem !important;
    display: flex !important;
    flex-direction: column !important; /* Stack buttons vertically */
    align-items: center;
    gap: 1.5rem; /* Space between Save and Cancel */
    width: 100%;
}

/* Ensure the submit button stays prominent */
.edga-form-actions button[type="submit"] {
    width: 100%;
    max-width: 400px; /* Prevents button from being awkwardly wide on desktop */
    margin-top: 0 !important; /* Reset inherited margin */
}

/* Style the cancel link to be further away and less prominent */
.edga-cancel-link {
    color: #666;
    text-decoration: underline;
    font-size: 0.95rem;
    padding: 10px;
    transition: color 0.2s ease;
}

.edga-cancel-link:hover {
    color: #C73434;
}

.edga-input-money-group { 
    display: inline-flex; align-items: stretch; border: 1px solid #D8D8D4; 
    border-radius: 4px; overflow: hidden; background: #fff; width: 100%; max-width: 220px; height: 52px; 
}
.edga-input-prefix { background-color: #F2F2EE; border-right: 1px solid #D8D8D4; padding: 0 15px; display: flex; align-items: center; font-weight: 700; color: #1F3A4D; }
.edga-input-money-group input { border: none !important; box-shadow: none !important; height: 100% !important; padding: 0 12px !important; font-size: 1.1rem !important; }

/* ==========================================================================
   3. CATEGORY SELECTION (Segmented Adult Men / Women)
   ========================================================================== */
.edga-category-options { display: flex; gap: 12px; margin-top: 10px; margin-bottom: 2rem; }

.edga-category-item {
    flex: 1; position: relative; padding: 14px !important; border: 2px solid #D8D8D4;
    border-radius: 8px; background: #fff; text-align: center; cursor: pointer;
    font-weight: 700; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 10px;
}

.edga-category-item:hover { border-color: #2F5D7C; }
.edga-category-item:has(input:checked) { border-color: #1F3A4D; background-color: #F0F7FF; color: #1F3A4D; }



/* ==========================================================================
   5. PLAYER CARDS & IDENTITY
   ========================================================================== */
.edga-household-summary, .edga-info-box { border: 1px solid #D8D8D4; padding: 2rem; background: #FAF9F7; margin-bottom: 2rem; width: 100%; }

.edga-player-card, .edga-household-person {
    background: #fff; border: 1px solid #D8D8D4; padding: 1.5rem;
    display: flex; align-items: flex-start; gap: 1.5rem; margin-bottom: 1.5rem; 
    border-radius: 8px; width: 100% !important; 
}

.edga-card-content { flex-grow: 1; width: 100%; }
.edga-card-main-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; width: 100%; margin-bottom: 10px; }
.edga-card-name { margin: 0; font-size: 1.25rem; font-weight: 800; color: #000; }
.edga-person-role { font-size: 0.85rem; color: #2B2B2B; display: block; margin-top: 2px; }

/* Sticky Avatar Colors */
.edga-initials-badge { width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
.edga-badge-color-0 { background-color: #1F3A4D; color: #fff; }
.edga-badge-color-1 { background-color: #C73434; color: #fff; }
.edga-badge-color-2 { background-color: #2E6B4F; color: #fff; }
.edga-badge-color-3 { background-color: #E1B84A; color: #2B2B2B; }
.edga-badge-color-4 { background-color: #2F5D7C; color: #fff; }

/* ID Pills */
.edga-id-badges { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.edga-id-pill { 
    display: inline-flex; align-items: center; gap: 6px; background: #F2F2EE; padding: 3px 10px; 
    border-radius: 4px; font-size: 0.85rem; font-weight: 700; color: #1F3A4D; border: 1px solid #D8D8D4;
}
.edga-id-pill img { height: 14px; width: auto; filter: grayscale(1); opacity: 0.7; }
.edga-id-main { border-left: 3px solid #1F3A4D; }

/* ==========================================================================
   6. MEMBERSHIP STATUS & ACHIEVEMENT BADGES (RESTORED ALL)
   ========================================================================== */
.edga-status-pill {
    display: inline-block; padding: 6px 12px; border-radius: 4px; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.05em; text-align: center; min-width: 160px;
    white-space: normal; line-height: 1.3; 
}
.edga-status-premium { background: #2E6B4F !important; color: #fff !important; }
.edga-status-full { background: #2F5D7C !important; color: #fff !important; }
.edga-status-expired, .edga-status-pill[class*="ASSOCIATE"] { background: #D8D8D4 !important; color: #2B2B2B !important; }
.edga-status-pending { background: #F4E6B8 !important; color: #7A5A1A !important; }
.edga-status-review { background: #FEF3C7 !important; color: #92400E !important; border: 1px solid #FDE68A; }

/* Small Badges */
.edga-badge-mini { display: inline-block; padding: 3px 10px; font-size: 0.65rem; font-weight: 800; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }

/* Milestones */
.edga-badge-founder, .edga-badge-five_year, .edga-badge-renewing { background: #EBF8FF; color: #2B6CB0; border: 1px solid #BEE3F8; }
/* Roles */
.edga-badge-volunteer, .edga-badge-tour_volunteer, .edga-badge-community_supporter, .edga-badge-donor { background: #F0FFF4; color: #2F855A; border: 1px solid #C6F6D5; }
.edga-badge-ambassador, .edga-badge-certified_coach, .edga-badge-team_gb { background: #FAF5FF; color: #6B46C1; border: 1px solid #E9D8FD; }

/* Card Footer Anchor */
.edga-card-footer { margin-top: 15px; display: flex; justify-content: flex-start !important; align-items: center; gap: 2rem; border-top: 1px solid #f0f0f0; padding-top: 15px; }
.edga-achievement-badges { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.edga-club-info { font-size: 0.9rem; color: #2B2B2B; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* ==========================================================================
   7. UPGRADE UI & PRICE STYLES (RESTORED)
   ========================================================================== */
.edga-upgrade-cta-wrap { display: flex; flex-direction: column; gap: 4px; }
.edga-upgrade-badge { background: #E7F1EA; padding: 2px 8px; border-radius: 4px; font-size: 0.9em; border: 1px solid #2E6B4F; color: #2E6B4F; font-weight: 700; }
.edga-micro-copy { font-size: 0.75rem; color: #2E6B4F; font-weight: 600; font-style: italic; }
.edga-price-old { text-decoration: line-through; color: #888; font-size: 0.8em; margin-right: 5px; }
.edga-price-display { font-weight: 900; font-size: 1.2rem; color: #000; }
.edga-upgrade-btn { box-shadow: 0 2px 8px rgba(199, 52, 52, 0.2); }
/* ==========================================================================
   8. DONATION UI (FIXED UNIFORM TILES)
   ========================================================================== */
.edga-donation-options { 
    display: grid; 
    /* minmax increased to 160px to ensure enough room for text + radio */
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
    gap: 12px; 
    margin-bottom: 1.5rem; 
}

.edga-donation-option-mini { 
    display: flex !important; 
    flex-direction: row !important;
    align-items: center !important;      /* Vertical Center */
    justify-content: center !important;   /* Horizontal Center */
    gap: 10px; 
    height: 56px !important; 
    background: #fff; 
    border: 2px solid #D8D8D4; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 700;
    transition: all 0.2s ease;
    text-align: center;
    margin: 0 !important;
    padding: 0 10px !important;
    white-space: nowrap; /* Prevents "No donation" from wrapping to a second line */
}

.edga-donation-option-mini input[type="radio"] {
    margin: 0 !important;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.edga-donation-option-mini:hover { border-color: #1F3A4D; background: #FAF9F7; }

.edga-donation-option-mini:has(input:checked) { 
    border-color: #1F3A4D; 
    background-color: #F0F7FF; 
    box-shadow: 0 2px 4px rgba(31, 58, 77, 0.1);
}

.edga-custom-don-wrap { display: none; padding: 1.25rem; background: #FAF9F7; border: 1px solid #D8D8D4; border-radius: 8px; margin-bottom: 2rem; }
/* ==========================================================================
   9. MEMBERSHIP TILES & TABS
   ========================================================================== */
.edga-membership-option { display: block; position: relative; padding: 1.5rem 1.5rem 1.5rem 4rem !important; margin-bottom: 1.25rem; border: 2px solid #D8D8D4; border-radius: 12px; background: #fff; cursor: pointer; }
.edga-membership-option:has(input:checked) { border-color: #1F3A4D; background-color: #F0F7FF; box-shadow: 0 4px 12px rgba(31, 58, 77, 0.12); }
.edga-membership-option input[type="radio"] { position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; }

.edga-tab-links { display: flex; background-color: #F2F2EE; padding: 4px; border-radius: 8px; border: 1px solid #D8D8D4; margin-bottom: 2rem; width: 100%; }
.edga-tab-link { background: transparent; border: none; padding: 10px 20px; font-size: 0.95rem; font-weight: 600; color: #2B2B2B; cursor: pointer; border-radius: 6px; flex: 1; text-align: center; }
.edga-tab-link.active { background-color: #FAF9F7; color: #C73434; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.edga-tab-content { display: none; animation: edgaFadeIn 0.2s ease-out; width: 100%; }
.edga-tab-content.active { display: block; }

/* ==========================================================================
   10. MOBILE RESPONSIVENESS & BANNER STYLING
   ========================================================================== */
@media (max-width: 600px) {
    .edga-player-card { flex-direction: column !important; align-items: center !important; text-align: center !important; padding: 1.5rem !important; }
    .edga-card-main-row { flex-direction: column !important; align-items: center !important; gap: 1.5rem !important; }
    .edga-status-ribbon { width: 100% !important; order: -1; margin-bottom: 0.5rem; }
    .edga-status-pill { width: 100% !important; max-width: 100% !important; }
    
    .edga-category-options { flex-direction: column; }
    .edga-category-item { width: 100%; padding: 1.25rem !important; text-align: left; }
    
    .edga-membership-option { padding: 1.25rem !important; text-align: left; }
    .edga-membership-option input[type="radio"] { position: absolute; top: 1.5rem; right: 1rem; left: auto; transform: none; }
    
    .edga-card-footer { flex-direction: column !important; gap: 12px !important; width: 100% !important; align-items: center !important; }
    
    
    .button, .edga-field-wrap button, .edga-field-wrap input[type="submit"] { 
        width: 100% !important; 
        display: flex !important;      /* Changed from block to flex */
        align-items: center;           /* Vertical Center */
        justify-content: center;       /* Horizontal Center */
        min-height: 56px; 
        font-size: 1.1rem; 
        text-align: center;
    }
    .edga-donation-option-mini { flex: 1 1 calc(50% - 10px); }
}

.dtt-banner { width: 100%; margin-bottom: 1.5rem; overflow: hidden; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.dtt-banner img { display: block; width: 100%; height: auto; object-fit: cover; }
.dtt-event-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #eee; text-align: center; }




/* ==========================================================================
   PERSISTENT ALERT BANNER
   ========================================================================== */
.edga-alert-banner {
    background-color: #fff;
    border: 1px solid #D8D8D4;
    border-left: 5px solid #1F3A4D;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.edga-alert-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.edga-alert-icon {
    font-size: 2rem;
    line-height: 1;
}

.edga-alert-text h4 {
    margin: 0 0 4px 0;
    color: #1F3A4D;
    font-size: 1.1rem;
    font-weight: 800;
}

.edga-alert-text p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.edga-alert-actions .button {
    white-space: nowrap;
    min-width: 180px;
}

@media (max-width: 768px) {
    .edga-alert-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        gap: 1.25rem;
    }
    .edga-alert-content {
        gap: 1rem;
    }
    .edga-alert-actions .button {
        width: 100%;
    }
}




