/* UnitedSamaj Frontend Styles */

/* Hide WordPress header/site title on auth page */
body.unitedsamaj-auth-page header,
body.unitedsamaj-auth-page .site-header,
body.unitedsamaj-auth-page .header,
.unitedsamaj-homepage-auth ~ header,
.unitedsamaj-homepage-auth ~ .site-header {
    display: none !important;
}

/* General Styles */
.unitedsamaj-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-header {
    /* margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0; */
    display: none;
}

.page-header h1 {
    color: #333;
    font-size: 2.5em;
    margin: 0;
}

/* Buttons */
.us-btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.us-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.us-btn-primary {
    background: linear-gradient(135deg, #007cba 0%, #0099d6 100%);
    color: white;
    border-color: #007cba;
}

.us-btn-primary:hover {
    background: linear-gradient(135deg, #005a87 0%, #0076a3 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(0, 124, 186, 0.35);
}

.us-btn-secondary {
    background-color: #e8ecf1;
    color: #333;
    border: 2px solid #e8ecf1;
}

.us-btn-secondary:hover {
    background-color: #dce4ed;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.us-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e74c5c 100%);
    color: white;
    border-color: #dc3545;
}

.us-btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #d63d4a 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.35);
}

.us-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #34c759 100%);
    color: white;
    border-color: #28a745;
}

.us-btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #2da646 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.35);
}

.us-btn-small {
    padding: 5px 15px;
    font-size: 12px;
}

.us-btn-mini {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
}

.us-btn-link {
    background: transparent;
    color: #007cba;
    border: none;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.us-btn-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.us-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Forms */
.us-form-group {
    margin-bottom: 20px;
}

.us-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.us-form-group input,
.us-form-group textarea,
.us-form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

/* iOS password field fix - add padding to accommodate Safari's button */
.us-form-group input[type="password"] {
    padding-right: 45px;
    font-size: 16px;
}

/* Wrapper for password field with custom toggle button */
.password-field-wrapper {
    position: relative;
}

.password-field-wrapper input[type="password"] {
    padding-right: 45px;
    width: 100%;
    box-sizing: border-box;
}

.us-form-group input:focus,
.us-form-group textarea:focus,
.us-form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.us-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.us-col-half {
    flex: 1;
}

.required {
    color: #dc3545;
}

/* Messages */
.us-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 10px 0;
}

.us-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

.us-loading {
    background-color: #fff3cd;
    color: #856404;
    padding: 12px;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin: 10px 0;
}

/* Organization Profile */
.unitedsamaj-organization-profile {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

#unitedsamaj-organization-form {
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 30px;
}

.org-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.org-logo {
    margin-right: 20px;
}

.org-logo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.org-title h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.org-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.follower-count-org {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    font-weight: 800;
    padding: 6px 12px;
    /* background: #f0f0f0; */
    border-radius: 4px;
}

.follower-count-org .count-text {
    white-space: nowrap;
}

.follow-org-btn-page,
.unfollow-org-btn-page {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-org-btn-page {
    background-color: #0066cc;
    color: white;
}

.follow-org-btn-page:hover {
    background-color: #0052a3;
}

.unfollow-org-btn-page {
    background-color: #6c757d;
    color: white;
}

.unfollow-org-btn-page:hover {
    background-color: #5a6268;
}

.org-details {
    display: grid;
    gap: 15px;
}

.org-detail {
    padding: 10px 0;
}

.org-detail strong {
    display: inline-block;
    min-width: 200px;
    color: #666;
    font-weight: 800;
}

.org-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Events */
.unitedsamaj-events-list {
    display: grid;
    gap: 30px;
}

.event-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.event-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-title {
    margin: 0 0 15px 0;
    font-size: 1.5em;
}

.event-title a {
    color: #333;
    text-decoration: none;
}

.event-title a:hover {
    color: #007cba;
}

/* .event-meta {
    margin-bottom: 15px;
} */

.event-meta > div {
    margin-bottom: 8px;
    font-size: 14px;
}

.event-meta strong {
    color: #666;
    margin-right: 5px;
}

.event-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* .event-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
} */

.event-badge {
    display: inline-block;
    background-color: #f8f9fa;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid #dee2e6;
}

.event-badge.rsvp-enabled {
    background-color: #e7f3ff;
    color: #0056b3;
    border-color: #b8daff;
}

.event-badge.ticket-enabled {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

/* Single Event */
.unitedsamaj-single-event {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.unitedsamaj-single-event .event-banner img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.event-header {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.event-header .event-title {
    margin: 0 0 15px 0;
    font-size: 2.5em;
    color: #333;
}

.event-organizer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.org-logo-small {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

.org-logo-meta {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.org-value-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.org-name {
    color: #333;
}

.org-profile-btn {
    display: inline-block;
    padding: 4px 12px;
    margin-left: 12px;
    font-size: 13px;
    font-weight: 500;
    background-color: #e91e63;
    color: #ffffff;
    border: none;
    border-radius: 15px;
    text-decoration: none;
    cursor: pointer;
}

.org-profile-btn:hover {
    color: #ffffff;
}

.org-actions-group {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 12px;
}

.follower-count {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #000000;
    background: rgb(236, 236, 236);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 15px 0 0 15px;
}

.follower-count .count-text {
    white-space: nowrap;
}

.follow-org-btn,
.unfollow-org-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-org-btn {
    background-color: #0066cc;
    color: white;
}

.follow-org-btn:hover {
    background-color: #0052a3;
}

.unfollow-org-btn {
    background-color: #6c757d;
    color: white;
}

.unfollow-org-btn:hover {
    background-color: #5a6268;
}

.event-details {
    padding: 30px;
}

.event-details-top {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 30px;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.meta-icon {
    flex-shrink: 0;
    color: #0066cc;
    opacity: 0.85;
    width: 24px;
    height: 24px;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.meta-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 16px;
    color: #333;
    line-height: 1.4;
}

.event-description h3 {
    color: #333;
    margin-bottom: 15px;
}

/* .event-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
} */

/* Mobile Responsive */
@media (max-width: 768px) {
    .unitedsamaj-single-event .event-banner img {
        height: 200px;
    }

    .event-header {
        padding: 20px;
    }

    .event-header .event-title {
        font-size: 1.8em;
        margin-bottom: 12px;
    }

    .event-details {
        padding: 20px;
    }

    .event-details-top {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 20px;
    }

    .event-meta {
        gap: 16px;
    }

    .meta-item {
        gap: 12px;
    }

    .meta-icon {
        width: 20px;
        height: 20px;
    }

    .meta-label {
        font-size: 11px;
    }

    .meta-value {
        font-size: 15px;
    }

    .event-actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .event-header {
        padding: 15px;
    }

    .event-header .event-title {
        font-size: 1.5em;
    }

    .event-details {
        padding: 15px;
    }

    .event-meta {
        gap: 14px;
    }

    .meta-item {
        gap: 10px;
    }

    .meta-icon {
        width: 18px;
        height: 18px;
    }

    .meta-label {
        font-size: 10px;
    }

    .meta-value {
        font-size: 14px;
    }
}

.rsvp-section,
.ticket-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f9f9 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #e3f2fd;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
    transition: all 0.3s ease;
}

.rsvp-section:hover,
.ticket-section:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.15);
}

.rsvp-section h4,
.ticket-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* RSVP Stats Section */
.rsvp-stats {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.attendee-count {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 15px;
}

.rsvp-stats .count-number {
    font-size: 28px;
    font-weight: 700;
    color: #0066cc;
    line-height: 1;
}

.count-label {
    font-size: 16px;
    color: #666;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.limit-info,
.closing-info {
    font-size: 12px;
    color: #666;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(0, 102, 204, 0.05);
    border-left: 3px solid #0066cc;
    border-radius: 4px;
}

.limit-info small,
.closing-info small {
    color: #666;
}

/* RSVP Button & Status */
.rsvp-button {
    display: inline-block;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    width: 100%;
    text-align: center;
}

.rsvp-button:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.rsvp-button:active {
    transform: translateY(0);
}

/* .rsvp-closed {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #ffeaa7;
    margin-top: 15px;
} */

/* Dashboard */
.unitedsamaj-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    /* border-bottom: 1px solid #e0e0e0; */
}

.dashboard-header h2 {
    margin: 0;
    color: #333;
}

.dashboard-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-alert h3 {
    margin: 0 0 15px 0;
    color: #856404;
}

.dashboard-sections {
    display: grid;
    gap: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #007cba;
}

.card-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
    flex: 1;
}

.card-icon {
    font-size: 1.8em;
    margin-left: 10px;
}

.card-content {
    flex: 1;
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.org-summary-compact {
    text-align: center;
}

.org-logo-compact {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 15px;
    display: block;
}

.org-summary-compact h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1em;
}

.org-email {
    color: #666;
    font-size: 14px;
    margin: 5px 0 0 0 !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.stat-box {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #d0e8f2;
}

.stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #007cba;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
}

.dashboard-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
}

.dashboard-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.5em;
}

.org-summary {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.org-summary img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
}

.org-summary h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.org-summary p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Followers Card Styles */
.followers-stat-large {
    text-align: center;
    padding: 20px 0;
}

.followers-number {
    display: block;
    font-size: 3em;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
    line-height: 1;
}

.followers-label {
    display: block;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.events-summary {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.event-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #007cba;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.events-list {
    display: grid;
    gap: 15px;
}

.event-item-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.event-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.event-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Manage Events */
.manage-events-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.events-controls {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 30px;
}

.events-controls-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position:initial;
}

.control-group label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
}

.search-input,
.filter-select,
.sort-select {
    /* padding: 10px 12px; */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.filter-select:focus,
.sort-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.search-input {
    min-width: 250px;
}

.filter-select,
.sort-select {
    min-width: 140px;
}

.search-group {
    flex: 1;
    min-width: 250px;
    background:white;
}

.filter-group,
.sort-group {
    flex-shrink: 0;
}

.events-controls-form .us-btn {
    padding: 8px 16px;
    font-size: 14px;
    height: auto;
}

.events-controls-form .us-btn-link {
    padding: 10px 12px;
    color: #0066cc;
    text-decoration: none;
    border: none;
    background: none;
}

.events-controls-form .us-btn-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .events-controls-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-group {
        flex: 1;
    }

    .search-input,
    .filter-select,
    .sort-select {
        width: 100%;
    }

    .filter-group,
    .sort-group {
        flex: 1;
    }

    .control-group {
        flex: 1;
    }

    .events-controls-form .us-btn {
        width: 100%;
    }
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    display: flex;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s 
ease;
    flex-direction: column;
    justify-content: space-between;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.event-card .event-banner img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-card .event-details {
    padding: 20px;
}

.event-card h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.3em;
}

.event-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}

.event-meta-info .icon {
    flex-shrink: 0;
    color: #0066cc;
    opacity: 0.8;
}

.event-meta-info span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-date,
.event-venue {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.event-badges {
    display: flex;
    gap: 5px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.badge.rsvp {
    background-color: #e7f3ff;
    color: #0056b3;
}

.badge.rsvp-closed {
    background-color: #f8d7da;
    color: #721c24;
}

.badge.ticket {
    background-color: #fff3cd;
    color: #856404;
}

.badge.upcoming {
    background-color: #d4edda;
    color: #155724;
}

.badge.past {
    background-color: #f8d7da;
    color: #721c24;
}

.event-card .event-actions {
    display: flex;
    gap: 10px;
    background: #f9f9f9;
    padding: 10px;
    flex-direction: row;
    border-top: 1px solid #eaeaea;
    justify-content: flex-start;
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-events p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* File upload */
.current-logo,
.current-banner {
    margin-bottom: 15px;
}

.current-logo img,
.current-banner img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.current-logo p,
.current-banner p {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #666;
}

/* Share Event Styles */
.event-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.event-title {
    margin: 0;
    flex: 1;
}

.share-event-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #007cba;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.share-event-btn:hover {
    background-color: #f0f0f0;
    color: #005a87;
}

.share-event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.share-event-modal.active {
    display: flex;
}

.share-event-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.share-event-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.share-event-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.share-event-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.share-event-close-btn:hover {
    color: #333;
}

.share-event-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-option {
    display: flex;
    align-items: center;
}

.share-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    background-color: #f9f9f9;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.share-link:hover {
    background-color: #f0f0f0;
}

.share-link.facebook {
    color: #1877f2;
}

.share-link.facebook:hover {
    background-color: #e7f3ff;
}

.share-link.twitter {
    color: #1da1f2;
}

.share-link.twitter:hover {
    background-color: #e7f3ff;
}

.share-link.instagram {
    color: #e4405f;
}

.share-link.instagram:hover {
    background-color: #ffe0e6;
}

.share-link.email {
    color: #666;
}

.share-link.email:hover {
    background-color: #f0f0f0;
}

.share-url-container {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.share-url-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.share-url-copy-btn {
    background-color: #007cba;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.share-url-copy-btn:hover {
    background-color: #005a87;
}

/* Responsive Design */
@media (max-width: 768px) {
    .unitedsamaj-page,
    .unitedsamaj-dashboard {
        padding: 15px 0;
    }
    
    .event-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-title {
        width: 100%;
    }
    
    .share-event-btn {
        align-self: flex-start;
    }
    
    .share-event-modal-content {
        width: 95%;
        max-width: 90vw;
    }
    
    .us-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .org-header {
        flex-direction: column;
        text-align: center;
    }
    
    .org-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .events-summary {
        justify-content: center;
    }
    
    .section-actions {
        justify-content: center;
    }
    
    .event-item-small {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .manage-events-page .page-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .registration-success-screen {
        max-width: 500px;
        margin: 0 auto;
        padding: 0;
    }
}

/* Registration Success Screen */
.registration-success-screen {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-success-screen .success-icon {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.registration-success-screen .success-icon svg {
    color: #28a745;
    filter: drop-shadow(0 2px 4px rgba(40, 167, 69, 0.2));
}

.registration-success-screen h2 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.registration-success-screen .success-message {
    font-size: 16px;
    color: #555;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.registration-success-screen .verification-info {
    background: #fff;
    border-left: 4px solid #28a745;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: left;
}

.registration-success-screen .verification-info h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.registration-success-screen .verification-info p {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
    line-height: 1.5;
}

.registration-success-screen .email-display {
    font-size: 16px;
    color: #28a745;
    padding: 12px;
    background: #f0f9f5;
    border-radius: 6px;
    margin: 12px 0 !important;
    word-break: break-all;
}

.registration-success-screen .email-display strong {
    font-weight: 600;
}

.registration-success-screen .verification-tips {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.registration-success-screen .verification-tips h4 {
    font-size: 16px;
    color: #856404;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.registration-success-screen .verification-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.registration-success-screen .verification-tips li {
    font-size: 14px;
    color: #856404;
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.registration-success-screen .verification-tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
}

.registration-success-screen .login-prompt {
    background: #e7f3ff;
    border-left: 4px solid #0066cc;
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.registration-success-screen .login-prompt p {
    font-size: 15px;
    color: #004085;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.registration-success-screen .us-btn-primary {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.registration-success-screen .us-btn-primary:hover {
    background: #0052a3;
    text-decoration: none;
}

.registration-success-screen .register-again-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 20px;
    font-size: 14px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.registration-success-screen .register-again-btn:hover {
    background: #e8e8e8;
    color: #333;
}

/* Homepage Authentication Section */
.unitedsamaj-homepage-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Background overlay for text contrast when photo is used */
.auth-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 1;
}

.unitedsamaj-homepage-auth > * {
    position: relative;
    z-index: 2;
}

.auth-logo-wrapper {
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
    display: flex;
    justify-content: center;
}

.auth-logo-img {
    max-width: 150px;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
    padding: 0;
    overflow: hidden;
}

.auth-header {
    text-align: center;
    margin-bottom: 0;
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, #f8f9fb 0%, #f0f3f7 100%);
    border-bottom: 1px solid #e8ecf1;
}

.auth-header h1 {
    color: #1a1a1a;
    font-size: 28px;
    margin: 0 0 8px 0;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    opacity: 0.8;
}

/* Header Search Container */
.header-search-container {
    margin-top: 25px;
}

.search-wrapper {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px #c7c7c7;
    display: flex;
    align-items: center;
    padding-left: 12px;
}

.search-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.auth-tabs {
    padding: 30px 40px 40px;
}

.free-badge {
    position: relative;
    /* width: fit-content;
    margin: 0 auto 20px; */
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    text-transform: uppercase;
    /* border-radius: 20px; */
    text-align: center;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    flex-direction: column;
}

.auth-tabs input[type="radio"] {
    display: none;
}

.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 0;
    /* background: linear-gradient(to bottom, #f5f7fa, #eef2f7); */
    border-bottom: none;
    border-radius: 8px;
    overflow: hidden;
}

.auth-tabs .tab-label {
    flex: 1;
    padding: 14px 24px;
    text-align: center;
    background: #e8ecf1;
    border: 2px solid #e8ecf1;
    border-bottom: none;
    cursor: pointer;
    font-weight: 700;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 5px;
    position: relative;
    user-select: none;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.auth-tabs .tab-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tabs .tab-label:hover {
    color: #555;
    background: #dce4ed;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.auth-tabs .tab-label.active {
    color: white;
    background: linear-gradient(135deg, #007cba 0%, #0099d6 100%);
    border-color: #007cba;
    box-shadow: 0 6px 16px rgba(0, 124, 186, 0.35);
    transform: translateY(-4px);
}

.auth-tabs .tab-label.active::after {
    transform: scaleX(1);
}

.tab-content {
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.tab-pane.active {
    display: block;
}

/* Search Bar Section */
.homepage-search-section {
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 14px 12px 0;
    font-size: 14px;
    border: none;
    border-radius: 0 5px 5px 0;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    max-height: 380px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px;
    margin: 6px;
    border: 1px solid #e8e8e8;
    border-radius: 7px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    background: white;
    text-align: left;
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-result-item.event-result {
    border-left: 3px solid #007cba;
}

.search-result-item.event-result:hover {
    background: #f0f7fc;
    border-left-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.12);
}

.search-result-item.org-result {
    border-left: 3px solid #663399;
}

.search-result-item.org-result:hover {
    background: #faf5ff;
    border-left-color: #4a1f73;
    box-shadow: 0 2px 8px rgba(102, 51, 153, 0.12);
}

.result-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.org-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.org-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #007cba 0%, #0056b3 100%);
    color: white;
    border-radius: 6px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 124, 186, 0.2);
}

.event-date-badge .date-month {
    font-size: 10px;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.result-title.organization-title {
    font-size: 13.5px;
    color: #1a1a1a;
}

.result-datetime {
    font-size: 11.5px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.result-venue {
    font-size: 11.5px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-weight: 500;
    line-height: 1.3;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.result-meta {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.search-loading,
.search-no-results,
.search-error {
    padding: 18px 14px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

.search-loading {
    color: #007cba;
    font-weight: 600;
}

.search-error {
    color: #d32f2f;
}

/* Info Sections Below Login Form */
.homepage-info-section {
    margin-top: 18px;
    padding: 18px !important;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100% ;
    max-width: 500px;
}

.homepage-info-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
}

.homepage-info-section ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.homepage-info-section li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.homepage-info-section li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
}

.homepage-info-section p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.6;
}

.help-centre-link {
    display: inline-block;
    padding: 10px 20px;
    background: #a73909;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.help-centre-link:hover {
    background: #992f01;
    border-color: #992f01;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .unitedsamaj-homepage-auth {
        min-height: 100vh;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 20px;
    }
    
    .auth-logo-wrapper {
        margin-bottom: 25px;
        margin-top: 10px;
    }
    
    .auth-logo-img {
        max-width: 120px;
    }
    
    .auth-container {
        max-width: 100%;
        width: 100%;
        padding: 0;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .auth-header {
        padding: 25px 20px 20px;
    }
    
    .auth-header h1 {
        font-size: 24px;
        margin-bottom: 6px;
        margin-top: 25px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
    
    .auth-tabs {
        padding: 20px 20px 25px;
    }
    
    .tab-nav {
        gap: 5px;
        margin-bottom: 20px;
        padding: 10px 0;
    }
    
    .auth-tabs .tab-label {
        padding: 11px 16px;
        font-size: 14px;
        letter-spacing: 0.5px;
        margin: 0 3px;
        border-radius: 4px;
    }
    
    .tab-content {
        margin-top: 0;
    }
    
    /* Search Bar - Tablet */
    .header-search-container {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .search-input {
        padding: 11px 12px;
        font-size: 13px;
    }
    
    .search-results {
        max-height: 320px;
    }
    
    .search-result-item {
        padding: 11px 12px;
    }
    
    .result-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .result-title {
        font-size: 12px;
    }
    
    /* Info Sections - Tablet */
    .homepage-info-section {
        margin-top: 25px;
        padding: 18px;
    }
    
    .homepage-info-section h3 {
        font-size: 17px;
        margin-bottom: 13px;
    }
    
    .homepage-info-section li {
        font-size: 14px;
        margin-bottom: 9px;
    }
    
    .homepage-info-section p {
        font-size: 14px;
        margin-bottom: 13px;
    }
}

@media (max-width: 480px) {
    .unitedsamaj-homepage-auth {
        min-height: 100vh;
        padding: 10px;
        padding-top: 15px;
    }
    
    .auth-logo-wrapper {
        margin-bottom: 20px;
        margin-top: 5px;
    }
    
    .auth-logo-img {
        max-width: 100px;
    }
    
    .auth-container {
        max-width: 100%;
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
    
    .auth-header {
        padding: 20px 15px 18px;
    }
    
    .auth-header h1 {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
    
    .auth-tabs {
        padding: 18px 15px 20px;
    }
    
    .tab-nav {
        gap: 3px;
        margin-bottom: 18px;
        padding: 8px 0;
    }
    
    .auth-tabs .tab-label {
        padding: 10px 12px;
        font-size: 10px;
        letter-spacing: 0.3px;
        margin: 0 2px;
        border-radius: 4px;
    }
    
    .auth-tabs .tab-label:hover {
        transform: translateY(-1px);
    }
    
    .auth-tabs .tab-label.active {
        transform: translateY(-2px);
    }
    
    /* Ensure forms fit properly */
    .auth-tabs form {
        font-size: 14px;
    }
    
    .auth-tabs input[type="text"],
    .auth-tabs input[type="email"],
    .auth-tabs input[type="password"],
    .auth-tabs textarea {
        font-size: 16px !important; /* Prevents zoom on input focus in iOS */
        padding: 12px 14px;
    }
    
    /* Extra padding for password field to accommodate iOS show/hide button */
    .auth-tabs input[type="password"] {
        padding-right: 48px !important;
    }
    
    .auth-tabs button,
    .auth-tabs .us-btn {
        font-size: 12px;
        padding: 10px 16px;
    }
    
    /* Search Bar - Mobile */
    .header-search-container {
        margin-top: 12px;
        padding-top: 10px;
    }
    
    .search-input {
        padding: 10px 11px;
        font-size: 13px;
        border-radius: 5px;
    }
    
    .search-results {
        max-height: 280px;
        border-radius: 0 0 5px 5px;
    }
    
    .search-result-item {
        padding: 10px 11px;
        gap: 8px;
    }
    
    .result-badge {
        font-size: 9px;
        padding: 3px 7px;
    }
    
    .result-title {
        font-size: 12px;
    }
    
    .result-meta {
        font-size: 11px;
    }
    
    /* Info Sections - Mobile */
    .homepage-info-section {
        margin-top: 20px;
        padding: 15px;
    }
    
    .homepage-info-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .homepage-info-section li {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .homepage-info-section p {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .help-centre-link {
        font-size: 13px;
        padding: 9px 16px;
    }
}

/* Address Autocomplete System */
.address-autocomplete-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.address-autocomplete-input {
    width: 100% !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    background: white !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.address-autocomplete-input:focus {
    outline: none !important;
    border-color: #007cba !important;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1) !important;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.address-suggestions.active {
    display: block;
}

.address-suggestion-item {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

.address-suggestion-item:hover {
    background: #f5f5f5;
    padding-left: 18px;
}

.address-suggestion-item.address-manual-entry {
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
    margin-top: 4px;
    padding-top: 12px;
}

.address-suggestion-item.address-manual-entry:hover {
    background: #f0f5ff;
}

.address-suggestion-main {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.address-suggestion-detail {
    font-size: 12px;
    color: #999;
}

.address-loading {
    padding: 14px;
    text-align: center;
    color: #0183c0;
    font-size: 13px;
    font-weight: 500;
}

.address-no-results {
    padding: 14px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Address Fields Grid */
.address-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 20px;
    background: #f6f6f6;
}

.address-fields-grid .us-form-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .address-fields-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


