/* Tickets Section Styles */
.tickets-section {
    padding: 40px 0 80px 0;
    background: #f5f6f7;
}

.tickets-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.tickets-section .section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.tickets-section .section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    margin: 15px auto 0;
    border-radius: 2px;
}

.tickets-section .section-title p {
    color: var(--medium-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Location Selector - Clean Pills */
.location-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.location-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 35px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-btn:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.location-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.3);
}

.location-btn.active i,
.location-btn.active .location-name,
.location-btn.active .location-date {
    color: white;
}

.location-btn i {
    font-size: 1.3rem;
    color: var(--primary-red);
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.location-btn .location-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.location-btn .location-date {
    font-size: 0.8rem;
    color: var(--medium-gray);
    transition: color 0.3s ease;
}

/* Ticket Container */
.ticket-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #eee;
}

/* Ticket Preview Styles */
.ticket-preview {
    padding: 30px;
}

.ticket-preview.hidden {
    display: none;
}

.ticket-preview-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.ticket-type {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #eee;
    transition: all 0.3s ease;
}

.ticket-type.clickable {
    cursor: pointer;
}

.ticket-type:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.ticket-type.clickable:hover {
    background: #fff5f5;
}

.ticket-type-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ticket-type-header h4 {
    flex: 1;
}

.ticket-arrow {
    color: #ccc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ticket-type:hover .ticket-arrow {
    color: var(--primary-red);
    transform: translateX(3px);
}

.ticket-type-header h4 {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin: 0;
    font-weight: 700;
}

.ticket-badge {
    padding: 4px 10px;
    background: var(--primary-red);
    color: white;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-badge.heart {
    background: #ff6b6b;
    padding: 4px 8px;
}

.ticket-badge.heart i {
    font-size: 0.8rem;
}

.ticket-type-desc {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.ticket-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ticket-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.ticket-service {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.btn-buy-tickets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 30px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.3);
}

.btn-buy-tickets:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
}

.btn-buy-tickets i {
    font-size: 1.2rem;
}

.ticket-timer-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0 0 0;
    padding: 12px;
    background: #fff8e6;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #856404;
}

.ticket-timer-notice i {
    color: #f0ad4e;
}

/* EventSquare Wrapper */
.ticket-embed-wrapper {
    padding: 15px 15px 0 15px;
}

.ticket-embed-wrapper.hidden {
    display: none;
}

.ticket-embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-back-to-preview {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--medium-gray);
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back-to-preview:hover {
    background: #f5f5f5;
    color: var(--dark-gray);
    border-color: #ccc;
}

/* Checkout Timer */
.checkout-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0369a1;
}

.checkout-timer i {
    font-size: 1rem;
}

.checkout-timer #timer-display {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    min-width: 45px;
}

.checkout-timer .timer-label {
    color: #0284c7;
    font-size: 0.8rem;
}

.checkout-timer.warning {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #b45309;
    animation: pulse-warning 1s ease-in-out infinite;
}

.checkout-timer.warning i,
.checkout-timer.warning .timer-label {
    color: #d97706;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Info Badge - Between selector and container */
.tickets-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ticket-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-red);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 20px 0 15px 0;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
    align-self: flex-start;
}

.ticket-info-badge:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

.ticket-info-badge i {
    font-size: 0.9rem;
}

/* EventSquare Embed */
.ticket-embed {
    min-height: 550px;
    position: relative;
    background: transparent;
}

.ticket-embed iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

.ticket-embed.hidden {
    display: none;
}

/* Loading State */
.ticket-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--medium-gray);
}

.ticket-loading i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Coming Soon State - Consistent with EventSquare style */
.ticket-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    min-height: 550px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.ticket-coming-soon i {
    font-size: 4rem;
    color: var(--primary-red);
    margin-bottom: 25px;
    opacity: 0.8;
}

.ticket-coming-soon h4 {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 700;
}

.ticket-coming-soon p {
    color: var(--medium-gray);
    font-size: 1rem;
    max-width: 350px;
    line-height: 1.6;
}

/* Tickets Layout */
.tickets-layout {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Fallback link */
.ticket-fallback {
    text-align: center;
    margin-top: 20px;
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 15px 20px;
}

.ticket-fallback p {
    font-size: 0.9rem;
    color: #004085;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.ticket-fallback p i.fa-info-circle {
    margin-right: 8px;
    font-size: 1.1rem;
}

.ticket-fallback a {
    color: #004085;
    text-decoration: underline;
    font-weight: 600;
}

.ticket-fallback a:hover {
    color: var(--primary-red);
}

.ticket-fallback a i.fa-external-link-alt {
    font-size: 0.75rem;
    margin-left: 4px;
}

/* FAQ Section - Horizontal below tickets */
.tickets-faq {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
    scroll-margin-top: 120px;
}

.tickets-faq h3 {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tickets-faq h3 i {
    color: var(--primary-red);
    font-size: 1rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    transition: background 0.3s ease;
}

.faq-item:hover {
    background: #f0f1f2;
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.faq-question i {
    color: var(--primary-red);
    font-size: 1rem;
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-question span {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.3;
}

.faq-answer {
    color: var(--medium-gray);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 30px;
}

.faq-answer a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-warning {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin: 4px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .tickets-section {
        padding: 40px 0 60px 0;
    }

    .tickets-section .section-title h2 {
        font-size: 2rem;
    }
    
    .location-selector {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0 20px;
    }
    
    .location-btn {
        width: 100%;
        max-width: 280px;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 12px 20px;
    }
    
    .location-btn i {
        margin-bottom: 0;
    }

    .ticket-container {
        margin: 0 15px;
    }
    
    .ticket-preview {
        padding: 20px;
    }
    
    .ticket-type {
        padding: 15px;
    }
    
    .ticket-type-header h4 {
        font-size: 1.1rem;
    }
    
    .ticket-price {
        font-size: 1.3rem;
    }
    
    .btn-buy-tickets {
        padding: 14px 25px;
        font-size: 1rem;
    }

    .ticket-embed iframe {
        height: 550px;
    }
    
    .tickets-faq {
        margin-top: 30px;
    }
    
    .tickets-faq h3 {
        font-size: 1rem;
    }
}
