/**
 * Public styles
 */

/* Membership Form Container */
.aacc-membership-form-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form Header */
.aacc-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.aacc-form-title {
    color: #c8102e;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.aacc-form-subtitle {
    color: #1e3a8a;
    font-size: 32px;
    font-weight: 700;
    margin: 5px 0 0;
}



/* Form Messages */
.aacc-form-messages {
    margin-bottom: 20px;
}

.aacc-form-messages .success {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.aacc-form-messages .error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* Form Sections */
.aacc-form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
}

.aacc-section-title {
    color: #1e3a8a;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #c8102e;
    display: flex;
    align-items: center;
}

/* Step badge inside section title */
.aacc-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #c8102e;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Step progress indicator */

/* Step 2 continue button */
.aacc-step-continue-row {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.aacc-step-continue-btn {
    background: #1e3a8a;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.aacc-step-continue-btn:hover {
    background: #163070;
}

/* Locked step: greyed out, non-interactive */
.aacc-form-step.aacc-step-locked {
    opacity: 0.4;
    pointer-events: none;
    position: relative;
    transition: opacity 0.4s ease;
}

.aacc-form-step {
    transition: opacity 0.4s ease;
}

/* Form Rows */
.aacc-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.aacc-form-row:last-child {
    margin-bottom: 0;
}

/* Form Fields */
.aacc-form-field {
    display: flex;
    flex-direction: column;
}

.aacc-form-field.aacc-full-width {
    flex: 1 1 100%;
}

.aacc-form-field.aacc-half-width {
    flex: 1 1 calc(50% - 10px);
}

.aacc-form-field.aacc-quarter-width {
    flex: 1 1 calc(25% - 15px);
}

.aacc-form-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.aacc-form-field .required {
    color: #c8102e;
}

.aacc-form-field input[type="text"],
.aacc-form-field input[type="email"],
.aacc-form-field input[type="tel"],
.aacc-form-field input[type="url"],
.aacc-form-field input[type="number"],
.aacc-form-field input[type="date"],
.aacc-form-field textarea,
.aacc-form-field select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.aacc-form-field textarea {
    resize: vertical;
}

.aacc-category-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.aacc-category-search:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1);
}

.aacc-category-checkboxes {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    background: #fafafa;
}

.aacc-category-checkbox-label {
    display: block;
    padding: 10px;
    margin-bottom: 5px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.aacc-category-checkbox-label:hover {
    background: #f5f5f5;
    border-color: #c8102e;
}

.aacc-category-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.aacc-category-checkbox-label.checked {
    background: #fff9fa;
    border-color: #c8102e;
    font-weight: 600;
}

.aacc-category-checkbox-label.hidden {
    display: none;
}

.aacc-category-name {
    vertical-align: middle;
}

.aacc-selected-count {
    margin: 10px 0 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
}

.aacc-selected-count #category_count {
    color: #c8102e;
}

.aacc-category-no-results {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    padding: 8px 10px;
    background: #fff9f9;
    border: 1px dashed #e0a0a0;
    border-radius: 4px;
}

.aacc-category-no-results-term {
    font-weight: 600;
    color: #333;
}

.aacc-add-category-btn {
    background: none;
    border: none;
    color: #c8102e;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    text-decoration: underline;
}

.aacc-add-category-btn:hover {
    color: #9b0d23;
}

.aacc-field-note {
    font-size: 13px;
    color: #666;
    font-weight: normal;
}

.aacc-field-description {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
    font-style: italic;
}

.aacc-form-field input:focus,
.aacc-form-field textarea:focus,
.aacc-form-field select:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1);
}

/* Gender Options */
.aacc-gender-options {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 5px;
}

.aacc-gender-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

/* Membership Types */
.aacc-membership-types {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.aacc-membership-type-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aacc-membership-type-option:hover {
    border-color: #c8102e;
    background: #fff9fa;
}

.aacc-membership-type-option:has(input[type="radio"]:checked) {
    border-color: #c8102e;
    background: #fff9fa;
    box-shadow: 0 2px 8px rgba(200, 16, 46, 0.15);
}

.aacc-membership-type-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.aacc-membership-type-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.aacc-membership-type-label strong {
    color: #1e3a8a;
    font-size: 18px;
}

/* Duration Options */
.aacc-duration-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.aacc-duration-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Payment Options */
.aacc-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Form Submit */
.aacc-form-submit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.aacc-submit-button {
    padding: 15px 40px;
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.aacc-submit-button:hover {
    background: #a00d25;
}

.aacc-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Member Login */
.aacc-login-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#aacc-loginform p {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

#aacc-loginform label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

#aacc-loginform input[type="text"],
#aacc-loginform input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

#aacc-loginform input[type="text"]:focus,
#aacc-loginform input[type="password"]:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

#aacc-loginform p.login-remember {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

#aacc-loginform p.login-remember label {
    margin-bottom: 0;
    font-weight: 400;
}

#aacc-loginform p.login-submit {
    margin-top: 10px;
    text-align: center;
}

#aacc-loginform p.login-submit input[type="submit"] {
    width: 100%;
    padding: 15px 40px;
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    box-sizing: border-box;
}

#aacc-loginform p.login-submit input[type="submit"]:hover {
    background: #a00d25;
}

.aacc-login-links {
    text-align: center;
    margin-top: 20px;
}

.aacc-login-links a {
    color: #c8102e;
    text-decoration: none;
    font-weight: 600;
}

.aacc-login-links a:hover {
    color: #a00d25;
    text-decoration: underline;
}

/* Member Dashboard */
.aacc-member-dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.aacc-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.aacc-dashboard-header h2 {
    color: #1e3a8a;
    margin: 0;
    font-size: 28px;
}

.aacc-logout-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
}

.aacc-logout-link:hover {
    color: #c8102e;
}

/* Status Banner */
.aacc-status-banner {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.aacc-status-banner.aacc-status-active {
    border-left: 5px solid #4caf50;
}

.aacc-status-banner.aacc-status-approved {
    border-left: 5px solid #2196f3;
}

.aacc-status-banner.aacc-status-pending {
    border-left: 5px solid #ff9800;
}

.aacc-status-banner.aacc-status-expired {
    border-left: 5px solid #9e9e9e;
}

.aacc-status-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.aacc-status-badge-wrapper,
.aacc-expiry-badge-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aacc-status-label,
.aacc-expiry-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.aacc-status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.aacc-status-active .aacc-status-badge {
    background: #4caf50;
}

.aacc-status-approved .aacc-status-badge {
    background: #2196f3;
}

.aacc-status-pending .aacc-status-badge {
    background: #ff9800;
}

.aacc-status-expired .aacc-status-badge {
    background: #9e9e9e;
}

.aacc-expiry-date {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.aacc-days-remaining {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* Dashboard Content */
.aacc-dashboard-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media screen and (max-width: 900px) {
    .aacc-dashboard-content {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Cards */
.aacc-dashboard-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.aacc-dashboard-card h3 {
    color: #1e3a8a;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #c8102e;
    font-size: 20px;
}

/* Membership Card */
.aacc-card-content {
    margin: 20px 0;
}


.aacc-card-table {
    width: 100%;
    border-collapse: collapse;
}

.aacc-card-table th,
.aacc-card-table td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.aacc-card-table th {
    font-weight: 600;
    color: #555;
    width: 45%;
}

.aacc-card-table td {
    color: #333;
}

.aacc-card-table tr:last-child th,
.aacc-card-table tr:last-child td {
    border-bottom: none;
}

/* Details Table */
.aacc-details-table {
    width: 100%;
    border-collapse: collapse;
}

.aacc-details-table th,
.aacc-details-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.aacc-details-table th {
    font-weight: 600;
    width: 40%;
    color: #555;
}

.aacc-details-table tr:last-child th,
.aacc-details-table tr:last-child td {
    border-bottom: none;
}

/* Benefits List */
.aacc-membership-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.aacc-membership-benefits li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .aacc-membership-form-container {
        padding: 20px;
    }
    
    .aacc-form-title {
        font-size: 36px;
    }
    
    .aacc-form-subtitle {
        font-size: 24px;
    }
    
    .aacc-form-row {
        flex-direction: column;
    }
    
    .aacc-form-field.aacc-half-width,
    .aacc-form-field.aacc-quarter-width {
        flex: 1 1 100%;
    }
    
    .aacc-membership-type-option {
        padding: 12px;
    }
    
    .aacc-membership-type-label {
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .aacc-membership-type-label strong {
        font-size: 16px;
    }
    
    .aacc-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .aacc-dashboard-header h2 {
        font-size: 24px;
    }
    
    .aacc-status-banner {
        padding: 15px 20px;
    }
    
    .aacc-status-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .aacc-dashboard-card {
        padding: 20px;
    }
    
    .aacc-dashboard-card h3 {
        font-size: 18px;
    }
    
    .aacc-category-checkboxes {
        max-height: 250px;
    }
    
    .aacc-category-checkbox-label {
        padding: 12px;
        font-size: 15px;
    }
}

/* Print styles */
@media print {
    .aacc-logout-link,
    .aacc-status-banner,
    .aacc-member-details,
    .aacc-membership-benefits {
        display: none !important;
    }
    
    .aacc-dashboard-content {
        display: block;
    }
    
    .aacc-membership-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .aacc-card-content {
        page-break-inside: avoid;
    }
}

/* Logo Upload Styles */
.aacc-form-field input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    background: #f9f9f9;
    cursor: pointer;
}

.aacc-form-field input[type="file"]:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.aacc-logo-preview {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    gap: 15px;
}

.aacc-logo-preview img {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    border: 1px solid #ddd;
    background: #fff;
}

.aacc-remove-logo {
    padding: 8px 16px;
    background: #dc3232;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.aacc-remove-logo:hover {
    background: #a00;
}

/* ==========================================================================
   Members Directory Styles
   ========================================================================== */

.aacc-members-directory {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.aacc-directory-header {
    text-align: center;
    margin-bottom: 40px;
}

.aacc-directory-header h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.aacc-directory-description {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.aacc-directory-filters {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.aacc-filter-label {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.aacc-category-filter {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.aacc-category-filter:hover,
.aacc-category-filter:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.aacc-members-count {
    font-weight: 600;
    color: #007cba;
    padding: 8px 16px;
    background: #e5f5fa;
    border-radius: 20px;
    white-space: nowrap;
}

.aacc-members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    position: relative;
}

.aacc-member-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.aacc-member-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #007cba;
}

.aacc-member-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
}

.aacc-member-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.aacc-member-logo-empty {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.aacc-member-logo-empty svg {
    color: #c0c0c0;
    opacity: 0.5;
}

.aacc-member-logo-placeholder {
    width: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    border: 2px dashed #b8d4f1;
    border-radius: 8px;
    text-align: center;
}

.aacc-member-logo-placeholder svg {
    color: #6b9fce;
    margin-bottom: 10px;
    opacity: 0.7;
}

.aacc-upgrade-message {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #2271b1;
    line-height: 1.5;
}

.aacc-member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    gap: 12px;
}

.aacc-member-company {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
    line-height: 1.3;
}

.aacc-member-type-badge {
    background: #007cba;
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.aacc-member-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aacc-member-info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 16px;
    color: #232323;
    line-height: 1.6;
}

.aacc-member-label {
    font-weight: 600;
    color: #666;
    min-width: 70px;
}

.aacc-member-value {
    color: #1a1a1a;
    word-break: break-word;
}

.aacc-member-value a {
    color: #007cba;
    text-decoration: none;
}

.aacc-member-value a:hover {
    text-decoration: underline;
}

.aacc-member-title {
    color: #777;
    font-style: italic;
    font-size: 13px;
}

.aacc-member-description {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
}

.aacc-member-description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #232323;
}

.aacc-member-description-placeholder {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin-top: 12px;
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e6 100%);
    border: 2px dashed #f0d4a8;
    border-radius: 8px;
}

.aacc-member-description-placeholder svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d68a3a;
    opacity: 0.7;
}

.aacc-member-description-placeholder p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #c47518;
    line-height: 1.5;
}

.aacc-member-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.aacc-category-tag {
    background: #f5f5f5;
    color: #555;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e8e8e8;
    transition: background 0.2s ease;
}

.aacc-category-tag:hover {
    background: #e8e8e8;
}

.aacc-no-members {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.aacc-no-members p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.aacc-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
}

.aacc-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination Styles */
.aacc-pagination {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.aacc-pagination-info {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.aacc-pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.aacc-page-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.aacc-page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.aacc-page-btn:hover:not([disabled]) {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.aacc-page-btn:disabled,
.aacc-page-btn.aacc-page-active {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
    cursor: default;
}

.aacc-page-btn:disabled {
    opacity: 0.6;
}

.aacc-page-prev,
.aacc-page-next {
    padding: 8px 16px;
    font-weight: 600;
}

.aacc-page-dots {
    padding: 8px 4px;
    color: #999;
}

/* ----------------------------------------
   Stripe / Payment Options
---------------------------------------- */

.aacc-payment-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 4px;
}

.aacc-payment-option input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.aacc-auto-renewal-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 6px;
}

.aacc-auto-renewal-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

#aacc-stripe-options {
    background: #f8f9ff;
    border: 1px solid #d0d7ff;
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 10px;
}

/* ----------------------------------------
   Payment Result Pages (success / cancelled)
---------------------------------------- */

.aacc-payment-result {
    max-width: 580px;
    margin: 40px auto;
    padding: 40px 32px;
    border-radius: 10px;
    text-align: center;
    font-family: inherit;
}

.aacc-payment-success {
    background: #f0faf4;
    border: 1px solid #b2dfca;
}

.aacc-payment-cancelled {
    background: #fff8f0;
    border: 1px solid #f5c48a;
}

.aacc-payment-icon {
    font-size: 52px;
    line-height: 1;
    color: #1e7e48;
    margin-bottom: 16px;
}

.aacc-payment-icon--cancelled {
    color: #c87d00;
}

.aacc-payment-result h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1a1a1a;
}

.aacc-payment-result p {
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.6;
}

.aacc-button {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 28px;
    background: #c8102e;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.aacc-button:hover {
    background: #a50d25;
    color: #fff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aacc-members-grid {
        grid-template-columns: 1fr;
    }
    
    .aacc-directory-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .aacc-category-filter {
        width: 100%;
    }
    
    .aacc-members-count {
        text-align: center;
    }
    
    .aacc-member-card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .aacc-member-type-badge {
        align-self: flex-start;
    }
    
    .aacc-pagination-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .aacc-page-btn {
        min-width: auto;
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .aacc-page-prev,
    .aacc-page-next {
        width: 100%;
        padding: 10px 16px;
    }
}

/* ============================================================
   Lifetime Member Badge (Status Banner)
   ============================================================ */
.aacc-lifetime-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #b8860b 0%, #f5e08a 40%, #ffd700 60%, #c9a84c 100%);
    color: #3d2800;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 40px;
    box-shadow: 0 3px 12px rgba(197, 152, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.35);
    border: 1px solid #c9a84c;
}

.aacc-lifetime-star {
    font-size: 18px;
    color: #7a5500;
    line-height: 1;
}

.aacc-lifetime-text {
    line-height: 1;
}

/* Inline "Lifetime Member" in membership card table */
.aacc-card-lifetime {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a07800;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
}

/* ============================================================
   Empty value placeholder
   ============================================================ */
.aacc-empty-value {
    color: #aaa;
    font-style: italic;
}

/* ============================================================
   Editable details table – column widths
   ============================================================ */
.aacc-editable-table {
    table-layout: fixed;
    width: 100%;
}

.aacc-editable-table .aacc-col-label { width: 32%; }
.aacc-editable-table .aacc-col-value { width: calc(68% - 40px); }
.aacc-editable-table .aacc-col-edit  { width: 40px; }

/* ============================================================
   Per-field pencil edit button
   ============================================================ */
.aacc-edit-col {
    text-align: right;
    padding: 0 4px !important;
    vertical-align: middle;
}

.aacc-field-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 6px;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    padding: 0;
    line-height: 1;
}

.aacc-field-edit-btn:hover {
    color: #1a3c5e;
    border-color: #1a3c5e;
    background: #f0f4f8;
}

/* ============================================================
   Inline edit row
   ============================================================ */
.aacc-inline-edit-row > td.aacc-inline-edit-cell {
    background: #f5f7fa;
    border-top: 1px solid #e0e6ee;
    border-bottom: 1px solid #e0e6ee;
    padding: 16px 20px !important;
}

.aacc-inline-edit-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 560px;
}

/* Simple text / tel / url inputs */
.aacc-inline-input {
    width: 100%;
    max-width: 420px;
    padding: 8px 12px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.18s;
}

.aacc-inline-input:focus {
    border-color: #1a3c5e;
    outline: none;
}

/* Textarea (business description) */
.aacc-inline-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.18s;
    font-family: inherit;
}

.aacc-inline-textarea:focus {
    border-color: #1a3c5e;
    outline: none;
}

.aacc-char-count-wrap {
    margin: 0;
    font-size: 12px;
    color: #777;
}

/* ============================================================
   Category search + checkboxes (per-field)
   ============================================================ */
.aacc-cat-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aacc-cat-search-input {
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.18s;
}

.aacc-cat-search-input:focus {
    border-color: #1a3c5e;
    outline: none;
}

.aacc-edit-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 7px 14px;
    max-height: 210px;
    overflow-y: auto;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
}

.aacc-edit-categories .aacc-category-checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

.aacc-edit-categories .aacc-category-checkbox-label.hidden {
    display: none;
}

.aacc-edit-categories .aacc-category-checkbox-label input[type="checkbox"] {
    accent-color: #1a3c5e;
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.aacc-edit-categories .aacc-category-checkbox-label input[type="checkbox"]:disabled + .aacc-category-name {
    color: #bbb;
}

.aacc-category-limit-msg {
    margin: 0;
    font-size: 12px;
    color: #c0392b;
    font-weight: 500;
}

/* ============================================================
   Logo edit widget
   ============================================================ */
.aacc-logo-edit-wrap {
    gap: 12px;
}

.aacc-logo-current {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.aacc-logo-preview-img {
    max-height: 70px;
    max-width: 160px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px;
    background: #fff;
    object-fit: contain;
}

.aacc-remove-logo-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #c0392b;
    cursor: pointer;
}

.aacc-logo-upload-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aacc-logo-file-label {
    display: inline-block;
    background: #fff;
    border: 1.5px solid #1a3c5e;
    color: #1a3c5e;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.aacc-logo-file-label:hover {
    background: #1a3c5e;
    color: #fff;
}

.aacc-logo-file-input {
    /* visually hidden; triggered via label */
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.aacc-logo-new-preview {
    margin-top: 4px;
}

/* Logo thumbnail in view cell */
.aacc-logo-view {
    max-height: 70px;
    max-width: 160px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px;
    background: #fff;
    object-fit: contain;
    display: block;
}

/* ============================================================
   Inline save / cancel buttons and notice
   ============================================================ */
.aacc-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aacc-btn-save-inline {
    background: #1a3c5e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.aacc-btn-save-inline:hover {
    background: #122b44;
}

.aacc-btn-save-inline:disabled {
    background: #7a9ab5;
    cursor: not-allowed;
}

.aacc-btn-cancel-inline {
    background: transparent;
    color: #555;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.aacc-btn-cancel-inline:hover {
    border-color: #888;
    color: #333;
}

.aacc-inline-notice {
    font-size: 13px;
    font-weight: 500;
}

.aacc-inline-notice.aacc-notice-success { color: #2e7d32; }
.aacc-inline-notice.aacc-notice-error   { color: #b71c1c; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
    .aacc-editable-table .aacc-col-label { width: 40%; }
    .aacc-editable-table .aacc-col-value { width: calc(60% - 36px); }
    .aacc-editable-table .aacc-col-edit  { width: 36px; }

    .aacc-inline-input {
        max-width: 100%;
    }

    .aacc-edit-categories {
        grid-template-columns: 1fr 1fr;
    }

    .aacc-inline-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .aacc-btn-save-inline,
    .aacc-btn-cancel-inline {
        text-align: center;
    }

    .aacc-lifetime-badge {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* Read More toggle for member descriptions */
.aacc-read-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1e2a5e;
    text-decoration: none;
    cursor: pointer;
}



.aacc-read-more-arrow {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.aacc-read-more-toggle[aria-expanded="true"] .aacc-read-more-arrow {
    transform: rotate(90deg);
}
