/**
 * TicketPayGo Frontend Styles
 */

/* Event Booking Form */
.ticketpaygo-booking-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ticketpaygo-booking-form h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.event-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid #0073aa;
}

.event-details h3 {
    margin-top: 0;
    color: #0073aa;
}

.event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.event-meta-item {
    display: flex;
    align-items: center;
    color: #666;
}

.event-meta-item .dashicons {
    margin-right: 8px;
    color: #0073aa;
}

.booking-form-section {
    margin-bottom: 25px;
}

.booking-form-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.form-group input.error,
.form-group select.error {
    border-color: #d63638;
}

.form-group .error-message {
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #0073aa;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background: #005a87;
}

.quantity-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    text-align: center;
    font-weight: bold;
}

.price-summary {
    background: #f0f8ff;
    border: 1px solid #0073aa;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #333;
}

.price-row.total {
    font-weight: bold;
    font-size: 1.2em;
    border-top: 1px solid #0073aa;
    padding-top: 10px;
    margin-top: 15px;
    color: #0073aa;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.payment-method {
    position: relative;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-method label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.payment-method input[type="radio"]:checked + label {
    border-color: #0073aa;
    background: #f0f8ff;
}

.payment-method label img {
    max-width: 60px;
    max-height: 30px;
    margin-bottom: 8px;
}

.payment-method label span {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.submit-booking {
    width: 100%;
    background: #0073aa;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submit-booking:hover {
    background: #005a87;
}

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

/* Loading States */
.booking-form-loading {
    position: relative;
}

.booking-form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.booking-form-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* E-Ticket Styles */
.ticketpaygo-ticket {
    max-width: 400px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
}

.ticket-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.ticket-content {
    position: relative;
    z-index: 1;
    padding: 30px 25px;
}

.ticket-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px dashed #ddd;
    padding-bottom: 20px;
}

.ticket-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.ticket-subtitle {
    color: #666;
    font-size: 0.9em;
}

.ticket-details {
    margin-bottom: 25px;
}

.ticket-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.ticket-detail-label {
    font-weight: 600;
    color: #333;
}

.ticket-detail-value {
    color: #666;
    text-align: right;
}

.ticket-qr {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #ddd;
}

.ticket-qr img {
    max-width: 120px;
    height: auto;
}

.ticket-number {
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    color: #999;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* Ticket Verification */
.ticketpaygo-verification {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.verification-form {
    margin-bottom: 30px;
}

.verification-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.verification-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.verify-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.verify-btn:hover {
    background: #005a87;
}

.verification-result {
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.verification-result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.verification-result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.verification-result.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Event List */
.ticketpaygo-events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.event-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    position: relative;
}

.event-card-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0073aa;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9em;
}

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

.event-card-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.event-card-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.event-card-meta .dashicons {
    margin-right: 5px;
    color: #0073aa;
}

.event-card-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.event-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-now-btn {
    background: #0073aa;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.book-now-btn:hover {
    background: #005a87;
    color: white;
}

.tickets-remaining {
    font-size: 0.8em;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ticketpaygo-booking-form {
        margin: 10px;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .event-meta {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ticketpaygo-events-list {
        grid-template-columns: 1fr;
        margin: 10px;
        gap: 15px;
    }
    
    .ticketpaygo-ticket {
        margin: 10px;
    }
    
    .verification-input {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .event-card-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .quantity-selector {
        justify-content: center;
    }
}

/* Print Styles for Tickets */
@media print {
    .ticketpaygo-ticket {
        box-shadow: none;
        border: 2px solid #333;
        margin: 0;
        max-width: none;
        width: 100%;
    }
    
    .ticket-background {
        display: none;
    }
    
    body * {
        visibility: hidden;
    }
    
    .ticketpaygo-ticket,
    .ticketpaygo-ticket * {
        visibility: visible;
    }
    
    .ticketpaygo-ticket {
        position: absolute;
        left: 0;
        top: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .event-card,
    .booking-form-loading::before,
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .event-card,
    .ticketpaygo-booking-form,
    .ticketpaygo-ticket {
        border-width: 2px;
    }
    
    .submit-booking,
    .verify-btn,
    .book-now-btn {
        border: 2px solid currentColor;
    }
}

/* Modern Modal Styles */
.ticketpaygo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ticketpaygo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.ticketpaygo-modal-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

.ticketpaygo-modal-header {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.ticketpaygo-modal-close {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.ticketpaygo-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.ticketpaygo-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Event Info Section */
.modal-event-info {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    position: relative;
}

.modal-event-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 25px;
    flex-shrink: 0;
}

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

.modal-event-details {
    flex: 1;
}

.modal-event-title {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.modal-event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.95em;
    opacity: 0.9;
}

.meta-item .dashicons {
    margin-right: 8px;
    font-size: 16px;
}

.meta-item.price-display {
    font-weight: 600;
    font-size: 1.1em;
    opacity: 1;
}

.meta-item.price-display .price {
    color: #ffd700;
    font-weight: 700;
}

.tickets-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #ffd700;
    font-weight: 600;
}

.tickets-warning .dashicons {
    margin-right: 8px;
}

/* Booking Form Section */
.modal-booking-form {
    padding: 40px;
    background: #fff;
}

.modal-form .form-step {
    display: none;
}

.modal-form .form-step.active {
    display: block;
    animation: slideInRight 0.3s ease-out;
}

.modal-form h3 {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 25px 0;
    color: #333;
    text-align: center;
}

/* Quantity Selector */
.quantity-selector-modern {
    text-align: center;
    margin-bottom: 30px;
}

.quantity-selector-modern label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    width: fit-content;
    margin: 0 auto;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.qty-btn:hover {
    background: #0073aa;
    color: white;
}

.qty-input {
    border: none;
    width: 80px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    background: white;
    color: #333;
}

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

/* Price Summary */
.price-summary-modern {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95em;
}

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

.price-row.total {
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #0073aa;
}

.price-label {
    color: #666;
}

.price-value {
    font-weight: 600;
    color: #333;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

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

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

/* Payment Methods */
.payment-methods-modern {
    margin-bottom: 25px;
}

.payment-method-modern {
    margin-bottom: 15px;
}

.payment-method-modern input[type="radio"] {
    display: none;
}

.payment-method-modern label {
    display: block;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-modern input[type="radio"]:checked + label {
    border-color: #0073aa;
    background: #f0f8ff;
}

.payment-method-content {
    display: flex;
    align-items: center;
}

.payment-method-icon {
    width: 60px;
    height: 40px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.payment-method-desc {
    display: block;
    font-size: 0.9em;
    color: #666;
}

/* Terms Agreement */
.terms-agreement {
    margin-bottom: 30px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9em;
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #0073aa;
    border-color: #0073aa;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.btn-next-step,
.btn-prev-step,
.btn-complete-booking {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-next-step,
.btn-complete-booking {
    background: #0073aa;
    color: white;
    flex: 1;
}

.btn-next-step:hover,
.btn-complete-booking:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.btn-prev-step {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-prev-step:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.btn-complete-booking .btn-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0073aa;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* Progress Indicator */
.modal-progress {
    background: #f8f9fa;
    padding: 20px 40px;
    border-top: 1px solid #e0e0e0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #0073aa;
    color: white;
}

.step-label {
    font-size: 0.85em;
    font-weight: 600;
    color: #666;
}

.progress-step.active .step-label {
    color: #0073aa;
}

.progress-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #0073aa;
    transition: width 0.4s ease;
}

/* Sold Out Message */
.sold-out-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.sold-out-message .dashicons {
    font-size: 48px;
    color: #d63638;
    margin-bottom: 20px;
}

.sold-out-message h3 {
    color: #d63638;
    margin-bottom: 10px;
}

/* Event Display Styles */
.ticketpaygo-event-display {
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

.event-info-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-info-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.4em;
    font-weight: 600;
}

.event-meta-simple {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #666;
    font-size: 0.95em;
}

.event-meta-simple span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-meta-simple .dashicons {
    margin-right: 8px;
    color: #0073aa;
}

.event-price {
    font-weight: 600;
    font-size: 1.1em;
    color: #0073aa;
}

.sold-out-notice {
    color: #d63638;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.sold-out-notice .dashicons {
    margin-right: 8px;
}

/* Buy Now Button Styles */
.ticketpaygo-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.ticketpaygo-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.ticketpaygo-buy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ticketpaygo-buy-btn .dashicons {
    margin-right: 8px;
}

.ticketpaygo-buy-btn small {
    display: block;
    font-size: 0.8em;
    opacity: 0.9;
    margin-top: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ticketpaygo-modal {
        padding: 10px;
    }
    
    .ticketpaygo-modal-container {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-event-info {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .modal-event-image {
        margin: 0 auto 20px auto;
    }
    
    .modal-event-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .modal-booking-form {
        padding: 25px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-progress {
        padding: 15px 20px;
    }
    
    .progress-steps {
        margin-bottom: 10px;
    }
    
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 0.8em;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-prev-step {
        order: 2;
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Event Card Styles - Modern 16:9 Design */
.ticketpaygo-event-card {
    max-width: 600px;
    margin: 20px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.ticketpaygo-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.event-card-compact {
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
}

.event-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card-compact:hover .event-image {
    transform: scale(1.05);
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0.8;
}

.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 24px;
    padding-top: 60px;
}

.event-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.event-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}

.info-item svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.info-item.price .price-value {
    font-weight: 700;
    color: #4ade80;
}

.expand-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.expand-indicator svg {
    transition: transform 0.3s ease;
}

.event-card-compact:hover .expand-indicator {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.event-details-expanded {
    background: white;
    padding: 24px;
    animation: slideDown 0.3s ease-out;
}

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

.event-section {
    margin-bottom: 24px;
}

.event-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.event-section h4 svg {
    color: #667eea;
}

.section-content {
    color: #4b5563;
    line-height: 1.6;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.event-booking-section {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.ticketpaygo-book-now {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.ticketpaygo-book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    color: white;
}

.ticketpaygo-book-now:active {
    transform: translateY(0);
}

/* Expanded state styles */
.event-card-expanded .expand-indicator svg {
    transform: rotate(180deg);
}

/* Events List Styles */
.ticketpaygo-events-list {
    margin: 20px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.ticketpaygo-event-card-list {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.ticketpaygo-event-card-list:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

.no-events {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.no-events-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-events-content svg {
    color: #d1d5db;
    margin-bottom: 24px;
}

.no-events-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

.no-events-content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* Event Card Responsive Design */
@media (max-width: 768px) {
    .ticketpaygo-event-card {
        margin: 16px;
        max-width: none;
    }
    
    .event-overlay {
        padding: 16px;
        padding-top: 40px;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .event-quick-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .info-item {
        font-size: 13px;
    }
    
    .event-details-expanded {
        padding: 16px;
    }
    
    .event-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 16px;
    }
    
    .expand-indicator {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .event-quick-info {
        grid-template-columns: 1fr;
    }
    
    .expand-indicator {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        margin: 12px;
    }
    
    .no-events {
        padding: 60px 16px;
    }
    
    .no-events-content h3 {
        font-size: 20px;
    }
    
    .no-events-content p {
        font-size: 14px;
    }
}

.ticketpaygo-booking-form,
.event-card,
.ticketpaygo-ticket {
    animation: fadeIn 0.5s ease-out;
}
