/**
 * Events Styles
 *
 * Styles for events listing and booking widgets.
 */

/* ==========================================================================
   Events Listing
   ========================================================================== */

.moi-events-wrapper {
    padding: 20px 0;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.moi-events-title {
    text-align: center !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin: 0 0 32px 0 !important;
    color: #222 !important;
}

/* Header with search and filters */
.moi-events-header {
    margin-bottom: 40px !important;
}

.moi-events-header .moi-row {
    display: flex !important;
    justify-content: center !important;
}

/* Hide categories dropdown */
#moi-events-category-filter {
    display: none;
}

.moi-events-header .moi-lg-4:has(#moi-events-category-filter) {
    display: none;
}

.moi-events-search {
    position: relative !important;
    max-width: 400px !important;
    width: 100% !important;
}

.moi-events-search .moi-input {
    width: 100% !important;
    padding: 10px 14px 10px 36px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.moi-events-search .moi-input:focus {
    outline: none;
    border-color: #333;
}

.moi-events-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.moi-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
}

/* Events Grid */
.moi-events-grid {
    margin: 0 -12px;
}

.moi-events-grid .moi-row {
    margin: 0;
}

.moi-event-card-wrap {
    padding: 0 12px;
    margin-bottom: 24px;
}

/* Event Card */
.moi-event-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.moi-event-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.moi-event-card--sold-out {
    opacity: 0.85;
}

/* Card Image */
.moi-event-card__image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.moi-event-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder for events without images */
.moi-event-card__image--placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.moi-event-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moi-event-card__placeholder i {
    font-size: 48px;
    color: #c5cbd3;
}

/* Badges */
.moi-event-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.moi-event-badge--sold-out {
    background-color: #dc3545;
    color: #fff;
}

.moi-event-badge--members {
    background-color: #6f42c1;
    color: #fff;
}

.moi-event-badge--upcoming {
    background-color: #cce5ff;
    color: #004085;
}

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

/* Card Content */
.moi-event-card__content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.moi-event-card__category {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.moi-event-card__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #222;
}

.moi-event-card__date,
.moi-event-card__location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.moi-event-card__date i,
.moi-event-card__location i {
    color: #999;
    width: 16px;
    text-align: center;
}

.moi-event-card__more-dates {
    font-size: 12px;
    color: #007bff;
    margin-left: 4px;
}

.moi-event-card__description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: auto;
    padding-top: 12px;
}

.moi-event-card__description strong,
.moi-event-card__description b {
    font-weight: 700 !important;
}

/* Card Footer */
.moi-event-card__footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.moi-event-card__price {
    display: flex;
    flex-direction: column;
}

.moi-event-card__price-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.moi-event-card__price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.moi-event-card__btn {
    background: #333 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

.moi-event-card__btn:hover {
    background: #222 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.moi-event-card__btn.moi-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Loading, Empty, Error States */
.moi-events-loading,
.moi-events-error,
.moi-booking-loading {
    padding: 60px 20px;
    text-align: center;
}

.moi-events-empty {
    padding: 40px 20px;
}

.moi-events-empty__card {
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 32px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-align: center;
}

.moi-events-empty__icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.moi-events-empty__title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
}

.moi-events-empty__description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

#moi-payment-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.moi-loader {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid #e7e9eb;
    border-top: 4px solid #00000085;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.moi-events-error-icon {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 16px;
}

/* Pagination */
.moi-events-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.moi-events-page-info {
    font-size: 14px;
    color: #666;
}

.moi-events-prev,
.moi-events-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   Event Booking Widget
   ========================================================================== */

.moi-booking-wrapper {
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 32px 20px !important;
    box-sizing: border-box !important;
}

.moi-booking-wrapper,
.moi-booking-wrapper * {
    box-sizing: border-box !important;
}

.moi-booking-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Progress Steps */
.moi-booking-steps {
    display: flex;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.moi-booking-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
}

.moi-booking-step__number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.moi-booking-step--active .moi-booking-step__number {
    background: #333;
    color: #fff;
}

.moi-booking-step--completed .moi-booking-step__number {
    background: #28a745;
    font-size: 0;
}

.moi-booking-step--completed .moi-booking-step__number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 13px;
    color: #fff;
}

.moi-booking-step__label {
    display: none;
}

@media (min-width: 768px) {
    .moi-booking-step__label {
        display: block;
    }
}

.moi-booking-step--active .moi-booking-step__label {
    color: #333;
    font-weight: 600;
}

/* Booking Content */
.moi-booking-content {
    padding: 16px 24px;
}

.moi-booking-section {
    margin-bottom: 24px;
}

.moi-booking-section:last-child {
    margin-bottom: 0;
}

.moi-booking-section__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #222;
}

.moi-booking-section__title i {
    margin-right: 5px;
}

/* Calendar */
.moi-calendar {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.moi-calendar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
}

.moi-calendar__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.moi-calendar__nav {
    display: flex;
    gap: 8px;
}

.moi-calendar__nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.moi-calendar__nav-btn:hover {
    background: #f0f0f0;
}

.moi-calendar__nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.moi-calendar__grid {
    padding: 12px;
}

.moi-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.moi-calendar__weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    padding: 8px 0;
}

.moi-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.moi-calendar__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.moi-calendar__day:hover:not(.moi-calendar__day--disabled):not(.moi-calendar__day--empty) {
    background: #f0f0f0;
}

.moi-calendar__day--empty {
    cursor: default;
}

.moi-calendar__day--disabled {
    color: #ccc;
    cursor: not-allowed;
}

.moi-calendar__day--available {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

.moi-calendar__day--limited {
    background: #fff3e0;
    color: #e65100;
}

.moi-calendar__day--sold-out {
    background: #ffebee;
    color: #c62828;
    text-decoration: line-through;
}

.moi-calendar__day--selected {
    background: #333 !important;
    color: #fff !important;
}

.moi-calendar__day--today {
    border: 2px solid #333;
}

/* Ticket Tiers */
.moi-ticket-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 12px;
}

.moi-ticket-tier:last-child {
    margin-bottom: 0;
}

.moi-ticket-tier__info {
    flex: 1;
}

.moi-ticket-tier__name {
    font-weight: 600;
    margin-bottom: 4px;
}

.moi-ticket-tier__description {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.moi-ticket-tier__price {
    font-size: 16px;
    font-weight: 600;
}

.moi-ticket-tier__member-price {
    font-size: 13px;
    color: #28a745;
}

.moi-ticket-tier__original-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
}

.moi-ticket-tier__counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.moi-counter-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.moi-counter-btn:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #ccc;
}

.moi-counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.moi-counter-value {
    font-size: 18px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Add-on Services */
.moi-addon-service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.moi-addon-service:hover {
    border-color: #ccc;
}

.moi-addon-service--selected {
    border-color: #333;
    background: #f8f9fa;
}

.moi-addon-service__checkbox {
    margin-right: 12px;
}

/* Customer Form */
.moi-form-group {
    margin-bottom: 16px;
}

.moi-form-group:last-child {
    margin-bottom: 0;
}

.moi-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.moi-form-label .required {
    color: #dc3545;
}

.moi-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.moi-form-input:focus {
    outline: none;
    border-color: #333;
}

.moi-form-input.moi-error {
    border-color: #dc3545;
}

.moi-form-error {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
}

/* Phone Input with Country Code */
/* Customer Form Layout */
#moi-customer-form {
    max-width: 100%;
    overflow: hidden;
}

#moi-customer-form .moi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 12px;
}

#moi-customer-form .moi-row > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    float: none !important;
    min-width: 0;
}

#moi-customer-form .moi-row .moi-form-group {
    margin-bottom: 0;
}

#moi-customer-form .moi-form-group {
    margin-bottom: 20px;
    max-width: 100%;
}

#moi-customer-form .moi-form-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    #moi-customer-form .moi-row {
        grid-template-columns: 1fr;
    }
}

.moi-phone-input {
    display: flex;
    gap: 12px;
}

.moi-phone-input .moi-phone-country {
    width: 120px !important;
    min-width: 120px;
    flex: 0 0 120px;
}

.moi-phone-input .moi-phone-number {
    flex: 1 1 auto;
    min-width: 0;
}

/* Summary */
.moi-booking-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.moi-booking-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.moi-booking-summary__row--total {
    border-top: 1px solid #ddd;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 600;
}

/* Stripe Elements */
.moi-stripe-element {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease;
    margin-top: 12px;
}

.moi-stripe-element--focus {
    border-color: #333;
}

.moi-stripe-element--invalid {
    border-color: #dc3545;
}

/* Booking Footer */
.moi-booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.moi-booking-footer__total {
    font-size: 14px;
    color: #666;
}

.moi-booking-footer__total-amount {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

.moi-booking-footer__actions {
    display: flex;
    gap: 12px;
}

.moi-booking-footer__actions .button {
    background: #333 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.moi-booking-footer__actions .button:hover {
    background: #222 !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.moi-booking-footer__actions .button:disabled {
    background: #ccc !important;
    color: #888 !important;
    cursor: not-allowed !important;
}

/* Success Screen */
.moi-booking-success {
    text-align: center;
    padding: 40px 20px;
}

.moi-booking-success__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moi-booking-success__icon i {
    font-size: 36px;
    color: #fff;
}

.moi-booking-success__title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.moi-booking-success__reference {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.moi-booking-success__details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.moi-booking-success__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.moi-justify-between {
    justify-content: space-between;
}

.moi-align-center {
    align-items: center;
}

.moi-py-8 {
    padding-top: 32px;
    padding-bottom: 32px;
}

.moi-max-lines-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 991px) {
    .moi-event-card-wrap {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Modal */
.moi-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moi-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.moi-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

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

.moi-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.moi-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: #999;
}

.moi-modal-close:hover {
    color: #333;
}

.moi-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.moi-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.moi-modal-footer .button {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
}

.moi-modal-footer .button:hover {
    background: #333;
    color: #fff;
}

/* Calendar Legend */
.moi-calendar__legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 12px;
    border-top: 1px solid #eee;
    font-size: 12px;
}

.moi-calendar__legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.moi-calendar__legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.moi-calendar__legend-dot--available {
    background: #e8f5e9;
    border: 1px solid #2e7d32;
}

.moi-calendar__legend-dot--limited {
    background: #fff3e0;
    border: 1px solid #e65100;
}

.moi-calendar__legend-dot--sold-out {
    background: #ffebee;
    border: 1px solid #c62828;
}

/* Time Slots Grid */
.moi-time-slots__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.moi-time-slot {
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.moi-time-slot:hover:not(.moi-time-slot--sold-out) {
    border-color: #999;
}

.moi-time-slot--selected {
    border-color: #333;
    background: #f8f9fa;
}

.moi-time-slot--sold-out {
    opacity: 0.6;
    cursor: not-allowed;
}

.moi-time-slot__time {
    font-weight: 600;
    margin-bottom: 8px;
}

.moi-time-slot__time i {
    margin-right: 6px;
    color: #666;
}

/* Badges */
.moi-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.moi-badge--available {
    background: #e8f5e9;
    color: #2e7d32;
}

.moi-badge--limited {
    background: #fff3e0;
    color: #e65100;
}

.moi-badge--sold-out {
    background: #ffebee;
    color: #c62828;
}

/* Booking Review */
.moi-booking-review__section {
    margin-bottom: 24px;
}

.moi-booking-review__section:last-child {
    margin-bottom: 0;
}

.moi-booking-review__section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    color: #222;
}

.moi-booking-review__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    gap: 12px;
}

.moi-booking-review__label {
    color: #666;
    flex-shrink: 0;
}

.moi-booking-review__value {
    font-weight: 500;
    text-align: right;
}

/* Confirmation */
.moi-confirmation-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.moi-confirmation-row i {
    width: 20px;
    color: #666;
    text-align: center;
}

/* Event Header in Booking Widget */
.moi-event-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
}

.moi-event-header__image {
    width: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.moi-event-header__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.moi-event-header__info {
    flex: 1;
}

.moi-event-header__title {
    font-size: 20px;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

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

.moi-event-header__location i {
    margin-right: 6px;
}

.moi-event-member-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 6px 12px;
    background: #e8f5e9;
    border-radius: 4px;
    font-size: 13px;
    color: #28a745;
}

.moi-event-member-badge i {
    color: #28a745;
}

/* Text utilities */
.moi-text-success {
    color: #28a745;
}

.moi-mt-4 {
    margin-top: 16px;
}

.moi-booking-wrapper .moi-branding,
.moi-events-wrapper .moi-branding,
.moi-event-detail-wrapper .moi-branding {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin: 32px 0 0 0;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.moi-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.moi-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

/* ==========================================================================
   Sessions Accordion
   ========================================================================== */

.moi-sessions-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Session Card */
.moi-session-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.moi-session-card:hover:not(.moi-session-card--sold-out) {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.moi-session-card--expanded {
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.moi-session-card--has-tickets {
    border-color: #28a745;
}

.moi-session-card--sold-out {
    opacity: 0.7;
}

.moi-session-card--sold-out .moi-session-card__header {
    cursor: default;
}

/* Session Card Header */
.moi-session-card__header {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.moi-session-card__header:hover {
    background: #f9fafb;
}

.moi-session-card--sold-out .moi-session-card__header:hover {
    background: transparent;
}

/* Date Badge */
.moi-session-card__date-badge {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.moi-session-card--expanded .moi-session-card__date-badge,
.moi-session-card--has-tickets .moi-session-card__date-badge {
    background: #333;
    color: #fff;
}

.moi-session-card--has-tickets .moi-session-card__date-badge {
    background: #28a745;
}

.moi-session-card__day-name {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.moi-session-card__day-number {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

/* Session Info */
.moi-session-card__info {
    flex: 1;
    min-width: 0;
}

.moi-session-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.moi-session-card__time {
    font-size: 13px;
    color: #666;
}

.moi-session-card__time i {
    margin-right: 4px;
    color: #999;
}

/* Session Status */
.moi-session-card__status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.moi-session-card__ticket-count {
    font-size: 13px;
    font-weight: 600;
    color: #28a745;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 12px;
}

.moi-session-card__chevron {
    color: #999;
    transition: transform 0.3s ease;
}

.moi-session-card--expanded .moi-session-card__chevron {
    transform: rotate(180deg);
}

/* Session Card Body (Expandable Content) */
.moi-session-card__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: 0 solid transparent;
}

.moi-session-card--expanded .moi-session-card__body {
    max-height: 1000px;
    border-top: 1px solid #e5e7eb;
}

/* Session Tickets */
.moi-session-tickets {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.moi-session-ticket {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.moi-session-ticket:hover {
    background: #f3f4f6;
}

.moi-session-ticket--sold-out {
    opacity: 0.6;
}

.moi-session-ticket__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #666;
}

.moi-session-ticket__info {
    flex: 1;
    min-width: 0;
}

.moi-session-ticket__name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.moi-session-ticket__description {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.moi-session-ticket__price {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
}

.moi-session-ticket__member-price {
    color: #28a745;
    display: block;
}

.moi-session-ticket__original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.moi-session-ticket__counter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.moi-session-ticket__counter .moi-counter-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.moi-session-ticket__counter .moi-counter-value {
    font-size: 16px;
    min-width: 28px;
}

/* Sessions Loading */
.moi-sessions-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: #666;
}

.moi-loader--small {
    width: 24px;
    height: 24px;
    margin: 0;
    border-width: 3px;
}

/* Sessions Load More */
.moi-sessions-load-more {
    text-align: center;
    padding-top: 16px;
}

.moi-sessions-load-more .button {
    min-width: 200px;
}

/* Utility Classes for Sessions */
.moi-text-center {
    text-align: center;
}

.moi-text-error {
    color: #dc3545;
}

@media (max-width: 767px) {
    .moi-booking-wrapper {
        padding: 16px 0 !important;
    }

    .moi-events-header .moi-row {
        flex-direction: column;
        gap: 12px;
    }

    .moi-events-header .moi-lg-4,
    .moi-events-header .moi-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .moi-event-card-wrap {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .moi-booking-steps {
        padding: 16px;
    }

    .moi-booking-step {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .moi-booking-content {
        padding: 16px;
    }

    .moi-ticket-tier {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .moi-ticket-tier__counter {
        align-self: flex-end;
    }

    .moi-booking-footer {
        flex-direction: column;
        gap: 16px;
    }

    .moi-booking-footer__total {
        text-align: center;
    }

    .moi-booking-footer__actions {
        width: 100%;
        flex-direction: column-reverse;
    }

    .moi-booking-footer__actions .button {
        width: 100%;
    }

    .moi-events-pagination {
        flex-direction: column;
        gap: 12px;
    }

    /* Session Card Mobile */
    .moi-session-card__header {
        padding: 12px;
        gap: 12px;
    }

    .moi-session-card__date-badge {
        width: 48px;
        height: 48px;
    }

    .moi-session-card__day-name {
        font-size: 9px;
    }

    .moi-session-card__day-number {
        font-size: 18px;
    }

    .moi-session-card__title {
        font-size: 14px;
    }

    .moi-session-card__time {
        font-size: 12px;
    }

    .moi-session-card__status {
        flex-direction: column;
        gap: 4px;
        align-items: flex-end;
    }

    .moi-session-ticket {
        display: grid;
        grid-template-columns: 36px 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        align-items: center;
    }

    .moi-session-ticket__icon {
        grid-column: 1;
        grid-row: 1;
        width: 36px;
        height: 36px;
    }

    .moi-session-ticket__info {
        grid-column: 2 / -1;
        grid-row: 1;
        min-width: 0;
    }

    .moi-session-ticket__price {
        grid-column: 1 / 3;
        grid-row: 2;
        text-align: left;
        margin-top: 0;
    }

    .moi-session-ticket__counter {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        margin-top: 0;
    }

    /* Event Header Mobile - Stack image on top, text below */
    .moi-event-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .moi-event-header__image {
        width: 180px;
        margin: 0 auto;
    }

    .moi-event-header__info {
        text-align: center;
    }

    .moi-event-header__title {
        font-size: 22px;
    }

    .moi-event-header__location {
        justify-content: center;
    }

    /* Booking Review Mobile - Stack label and value */
    .moi-booking-review__row {
        flex-direction: column;
        gap: 4px;
    }

    .moi-booking-review__label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .moi-booking-review__value {
        text-align: left;
        font-size: 15px;
    }
}

/* ==========================================================================
   Registration Blocked State
   ========================================================================== */

.moi-registration-blocked {
    padding: 48px 24px;
    text-align: center;
}

.moi-registration-info {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.moi-registration-info__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
}

.moi-registration-info__icon i {
    font-size: 28px;
    color: #6c757d;
}

.moi-registration-info__icon--upcoming {
    border-color: #dee2e6;
    background: #f8f9fa;
}

.moi-registration-info__icon--upcoming i {
    color: #6c757d;
}

.moi-registration-info__icon--closed {
    border-color: #f5c6cb;
    background: #f8d7da;
}

.moi-registration-info__icon--closed i {
    color: #721c24;
}

.moi-registration-info__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #222;
}

.moi-registration-info__message {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.moi-registration-info .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}

/* ==========================================================================
   Event Detail Page
   ========================================================================== */

.moi-event-detail-wrapper {
    max-width: 680px !important;
    margin: 0 auto !important;
    padding: 32px 20px !important;
    box-sizing: border-box !important;
}

.moi-event-detail-wrapper,
.moi-event-detail-wrapper * {
    box-sizing: border-box !important;
}

/* Breadcrumb */
.moi-event-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.moi-event-breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.moi-event-breadcrumb a:hover {
    color: #000;
    text-decoration: underline;
}

.moi-event-breadcrumb__separator {
    color: #999;
}

.moi-event-breadcrumb__current {
    color: #666;
}

/* Event Detail Header */
.moi-detail-header {
    margin-bottom: 24px;
}

.moi-detail-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
    color: #222;
}

.moi-detail-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.moi-detail-badge--available {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.moi-detail-badge--sold-out {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.moi-detail-badge--upcoming {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.moi-detail-badge--closed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.moi-detail-meta {
    font-size: 15px;
    color: #555;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.moi-detail-meta i {
    color: #999;
}

.moi-detail-price {
    font-size: 15px;
    color: #333;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.moi-detail-price i {
    color: #999;
}

.moi-detail-price--divider {
    color: #ccc;
    margin: 0 4px;
}

.moi-detail-price--member {
    color: #2e7d32;
    font-weight: 600;
}

/* Featured Image */
.moi-detail-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.moi-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Button */
.moi-detail-cta {
    margin-bottom: 20px;
}

.moi-detail-cta .button {
    width: 100% !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.2s ease;
    text-decoration: none !important;
    line-height: 1.4 !important;
    min-height: 0 !important;
    height: auto !important;
}

.moi-detail-cta .button:hover {
    background: #222 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.moi-detail-cta .button.moi-disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

/* Social Share */
.moi-detail-share {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eee;
}

.moi-detail-share__label {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.moi-detail-share__icons {
    display: flex;
    gap: 10px;
}

.moi-detail-share__icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
    color: #fff !important;
}

.moi-detail-share__icon:hover {
    transform: scale(1.05);
    opacity: 0.9;
    color: #fff !important;
    text-decoration: none !important;
}

.moi-detail-share__icon--email {
    background: #666 !important;
}

.moi-detail-share__icon--facebook {
    background: #1877f2 !important;
}

.moi-detail-share__icon--twitter {
    background: #000 !important;
}

.moi-detail-share__icon--linkedin {
    background: #0a66c2 !important;
}

.moi-detail-share__icon i {
    font-size: 14px;
}

.moi-detail-share__icon svg {
    width: 14px;
    height: 14px;
}

/* Detail Sections */
.moi-detail-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #eee;
}

.moi-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.moi-detail-section__title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #222;
}

.moi-detail-section__content {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* Ensure rich text formatting renders correctly in description */
.moi-detail-section__content strong,
.moi-detail-section__content b {
    font-weight: 700 !important;
}

.moi-detail-section__content em,
.moi-detail-section__content i:not(.fas):not(.far):not(.fab) {
    font-style: italic;
}

.moi-detail-section__content p {
    margin: 0 0 16px 0;
}

.moi-detail-section__content p:last-child {
    margin-bottom: 0;
}

/* Location Section */
.moi-detail-section--location {
    border-top: 1px solid #eee;
    padding-top: 32px;
    border-bottom: none;
    padding-bottom: 20px;
}

.moi-detail-section--description {
    border-bottom: none;
}

.moi-detail-section--description .moi-detail-section__content {
    padding-bottom: 32px;
}

.moi-detail-section--terms {
    border-top: 1px solid #eee;
    padding-top: 32px;
}

.moi-detail-section--terms .moi-detail-section__content {
    padding-bottom: 32px;
}

.moi-detail-section--location + .moi-detail-section--terms {
    margin-top: 0;
}

.moi-detail-section--refund-policy {
    border-top: 1px solid #eee;
    padding-top: 32px;
}

.moi-detail-section--refund-policy .moi-detail-section__content {
    padding-bottom: 32px;
}

/* Remove double spacing when terms is followed by refund policy */
.moi-detail-section--terms:has(+ .moi-detail-section--refund-policy) {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.moi-detail-section--terms + .moi-detail-section--refund-policy {
    margin-top: 0;
}

.moi-detail-location__name {
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.moi-detail-location__name i {
    color: #dc3545;
}

.moi-detail-location__address {
    font-size: 15px;
    color: #666;
    margin-bottom: 16px;
}

.moi-detail-map {
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.moi-detail-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    display: block;
}

.moi-detail-directions {
    margin-top: 16px;
    margin-bottom: 32px;
}

.moi-detail-directions .button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.moi-detail-directions .button:hover {
    background: #f8f9fa !important;
    border-color: #ccc !important;
    color: #333 !important;
    text-decoration: none !important;
}

/* Terms List */
.moi-detail-terms {
    margin: 0;
    padding-left: 24px;
}

.moi-detail-terms li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

.moi-detail-terms li:last-child {
    margin-bottom: 0;
}

/* Event Detail Mobile Responsive */
@media (max-width: 767px) {
    .moi-event-detail-wrapper {
        padding: 16px;
    }

    .moi-detail-title {
        font-size: 24px;
    }

    .moi-detail-section__title {
        font-size: 18px;
    }

    .moi-detail-share__icons {
        flex-wrap: wrap;
    }

    .moi-detail-share__icon {
        width: 36px;
        height: 36px;
    }

    .moi-detail-share__icon i {
        font-size: 14px;
    }

    .moi-detail-map iframe {
        height: 250px;
    }

    .moi-detail-cta .button {
        padding: 14px 20px;
        font-size: 15px;
    }
}
