/* Tickets Page Styles */

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 0;
    border-bottom: 1px solid #dee2e6;
    backdrop-filter: blur(5px);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin: 0 12px;
    color: #666;
    font-size: 1.2rem;
    font-weight: bold;
}

.breadcrumb-list a {
    color: #0067C5;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.breadcrumb-list a:hover {
    background: rgba(0, 103, 197, 0.1);
    color: #004494;
    transform: translateY(-1px);
}

.breadcrumb-list span[aria-current="page"] {
    color: #666;
    font-weight: 600;
}

/* Tickets Hero */
.tickets-hero {
    background: linear-gradient(135deg, #2E8B57 0%, #228B22 50%, #32CD32 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tickets-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(0, 255, 127, 0.15) 0%, transparent 50%);
    animation: ticketsGlow 6s ease-in-out infinite alternate;
}

@keyframes ticketsGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.tickets-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tickets-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background: #0067C5;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: #0067C5;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.step.active .step-label {
    color: #0067C5;
    font-weight: 600;
}

/* Ticket Selection */
.ticket-selection {
    padding: 80px 0;
}

.ticket-selection h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
}

.ticket-options {
    display: grid;
    gap: 30px;
    margin-bottom: 60px;
}

.ticket-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.ticket-card:hover {
    border-color: #0067C5;
    box-shadow: 0 8px 32px rgba(0, 103, 197, 0.15);
    transform: translateY(-4px);
}

.ticket-card.popular {
    border-color: #0067C5;
    box-shadow: 0 8px 32px rgba(0, 103, 197, 0.15);
}

.ticket-card.premium {
    border-color: #FFD700;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFACD 100%);
}

.popular-badge,
.premium-badge {
    position: absolute;
    top: -12px;
    left: 30px;
    background: #0067C5;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.premium-badge {
    background: #FFD700;
    color: #333;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.ticket-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #1a1a1a;
}

.ticket-price {
    text-align: right;
}

.price-from {
    font-size: 0.875rem;
    color: #666;
    display: block;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #0067C5;
    display: block;
    line-height: 1;
}

.price-per {
    font-size: 0.875rem;
    color: #666;
    display: block;
}

.ticket-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: flex-end;
}

.ticket-description p {
    margin-bottom: 16px;
    color: #666;
}

.ticket-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ticket-features li {
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9rem;
}

.ticket-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-selector label {
    font-weight: 500;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: 2px solid #0067C5;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    color: #0067C5;
    transition: all 0.2s ease;
    border-radius: 8px;
    
    /* Мобильные оптимизации для div */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
    min-height: 44px;
    min-width: 44px;
}

.qty-btn:hover,
.qty-btn:focus {
    background: #e9ecef;
    outline: none;
}

.qty-btn:active {
    background: #dee2e6;
    transform: scale(0.95);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-controls input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-weight: 500;
    background: white;
}

.ticket-total {
    text-align: right;
}

.total-label {
    font-size: 0.875rem;
    color: #666;
    display: block;
}

.total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0067C5;
    display: block;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #e9ecef;
}

.order-summary h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

.summary-items {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.summary-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 500;
    color: #333;
}

.item-quantity {
    font-size: 0.875rem;
    color: #666;
}

.item-price {
    font-weight: 600;
    color: #0067C5;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
}

.summary-total {
    border-top: 2px solid #ddd;
    padding-top: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.total-row.final {
    font-size: 1.125rem;
    font-weight: 700;
    border-top: 1px solid #ddd;
    padding-top: 8px;
    margin-top: 8px;
}

.btn-continue {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Date Selection */
.date-selection {
    padding: 80px 0;
    background: #f8f9fa;
}

.date-selection h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
}

.calendar-container {
    max-width: 600px;
    margin: 0 auto 40px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0067C5;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.calendar-nav:hover {
    background: rgba(0, 103, 197, 0.1);
}

#current-month {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.calendar-day:hover {
    background: rgba(0, 103, 197, 0.1);
}

.calendar-day.selected {
    background: #0067C5;
    color: white;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.other-month {
    color: #bbb;
}

.calendar-weekday {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    font-size: 0.875rem;
}

.selected-dates {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.selected-dates h4 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
}

#selected-dates-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.selected-date {
    display: inline-block;
    background: #0067C5;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Checkout */
.checkout-section {
    padding: 80px 0;
}

.checkout-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.checkout-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.checkout-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1a1a;
    border-bottom: 2px solid #0067C5;
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0067C5;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #0067C5;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-complete {
    width: 100%;
    padding: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 24px;
}

.final-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #e9ecef;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.final-summary h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Confirmation */
.confirmation-section {
    padding: 80px 0;
    text-align: center;
}

.confirmation-content {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 24px;
}

.confirmation-content h1 {
    color: #28a745;
    margin-bottom: 16px;
}

.confirmation-content > p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 40px;
}

.confirmation-details,
.next-steps {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.confirmation-details h3,
.next-steps h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-weight: 600;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.detail-row span:first-child {
    color: #666;
}

.detail-row span:last-child {
    font-weight: 600;
    color: #333;
}

.next-steps ul {
    margin: 0;
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 8px;
    color: #666;
}

.confirmation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tickets-hero-content h1 {
        font-size: 2rem;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 24px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .ticket-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ticket-actions {
        align-items: stretch;
    }
    
    .quantity-selector {
        justify-content: space-between;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-form {
        padding: 24px;
    }
    
    .final-summary {
        position: static;
    }
    
    .confirmation-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .confirmation-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .ticket-card {
        padding: 20px;
    }
    
    .ticket-header {
        flex-direction: column;
        gap: 16px;
    }
    
    /* Увеличиваем div-кнопки для мобильных */
    .qty-btn {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        font-size: 24px;
        font-weight: bold;
        border-radius: 15px;
        border: 3px solid #0067C5;
        background: #ffffff;
        color: #0067C5;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .qty-btn:active {
        background: #0067C5;
        color: white;
        transform: scale(0.9);
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }
    
    .quantity-controls input {
        width: 70px;
        height: 56px;
        font-size: 18px;
        font-weight: bold;
        border: 2px solid #ddd;
        border-radius: 8px;
    }
    
    .quantity-controls {
        gap: 8px;
    }
    
    .ticket-price {
        text-align: left;
    }
    
    .calendar-container {
        padding: 20px;
    }
    
    .checkout-form {
        padding: 20px;
    }
}

/* Hidden class for step transitions */
.hidden {
    display: none !important;
}