/* Event Card Styles - Improved & Compact Design */
.ebs-event-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    width: 100%;
    max-width: 550px;
    margin: 1.5rem auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-height: 220px;
}

.ebs-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.ebs-event-image {
    width: 40%;
    min-height: 220px;
}

.ebs-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ebs-event-content {
    width: 40%;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ebs-event-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #0f172a;
    line-height: 1.3;
}

/* Event Code Display */
.ebs-event-code-display {
    display: inline-flex;
    align-items: center;
    background: #f0fdfa;
    border: 1px solid #14b8a6;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.ebs-code-icon {
    font-size: 0.9rem;
    margin-right: 0.35rem;
}

.ebs-code-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #14b8a6;
    letter-spacing: 0.5px;
}

.ebs-event-meta {
    margin-bottom: 0.75rem;
}

.ebs-meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: #475569;
}

.ebs-icon {
    margin-right: 0.4rem;
    font-size: 1rem;
}

.ebs-event-description {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.ebs-event-description p {
    margin: 0.25rem 0;
}

/* Date Column - Matching Your Design */
.ebs-event-date-column {
    width: 20%;
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 1.25rem 0.75rem;
    text-align: center;
    position: relative;
}

.ebs-date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ebs-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.ebs-month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.15rem;
    font-weight: 600;
}

.ebs-tickets-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ebs-tickets-count {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.ebs-tickets-label {
    font-size: 0.75rem;
    opacity: 0.95;
    margin-top: 0.25rem;
    line-height: 1.3;
    font-weight: 500;
}

.ebs-book-btn {
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 90%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebs-book-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.ebs-book-btn:active:not(:disabled) {
    transform: translateY(0);
}

.ebs-book-btn:disabled {
    background: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
    opacity: 0.7;
}

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

.ebs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.ebs-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.ebs-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.ebs-modal-close:hover {
    color: #0f172a;
}

.ebs-modal-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: #0f172a;
}

.ebs-modal-event-title {
    color: #14b8a6;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ebs-modal-event-code {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #14b8a6;
}

.ebs-modal-event-code strong {
    color: #14b8a6;
    font-weight: 600;
}

/* Form Styles */
.ebs-booking-form {
    margin-top: 1.5rem;
}

.ebs-form-group {
    margin-bottom: 1.25rem;
}

.ebs-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #0f172a;
    font-size: 0.95rem;
}

.ebs-form-group input,
.ebs-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.ebs-form-group input:focus,
.ebs-form-group textarea:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.ebs-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.ebs-submit-btn {
    width: 100%;
    padding: 1rem;
    background: #14b8a6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.ebs-submit-btn:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}

.ebs-submit-btn:active {
    transform: translateY(0);
}

.ebs-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

/* Response Messages */
.ebs-form-response {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.ebs-form-response.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.ebs-form-response.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Events List */
.ebs-events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ebs-event-card {
        flex-direction: column;
        max-width: 100%;
    }

    .ebs-event-image,
    .ebs-event-content,
    .ebs-event-date-column {
        width: 100%;
    }

    .ebs-event-date-column {
        padding: 1.5rem;
        flex-direction: row;
        justify-content: space-around;
    }

    .ebs-date-display {
        margin-bottom: 0;
    }

    .ebs-book-btn {
        width: auto;
        padding: 0.75rem 2rem;
    }

    .ebs-modal-content {
        padding: 2rem 1.5rem;
    }
}

/* Loading State */
.ebs-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ebs-submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: ebs-spin 0.6s linear infinite;
}

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