/* Tickets Page Specific Styles */

.tickets-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-lg);
    align-items: start;
}

.tickets-main {
    width: 100%;
}

/* Ticket Cards */
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.ticket-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ticket-card.featured {
    border: 3px solid var(--green-accent);
}

.ticket-card.premium {
    border: 3px solid var(--yellow);
}

.ticket-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--orange);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ticket-card h3 {
    color: var(--navy-dark);
    margin-bottom: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.ticket-description {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.ticket-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal-primary);
    margin-bottom: var(--spacing-sm);
}

.ticket-savings {
    color: var(--green-accent);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.ticket-features {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.ticket-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray-dark);
}

.ticket-features li:last-child {
    border-bottom: none;
}

.ticket-features li::before {
    content: '✓';
    color: var(--teal-primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Quantity Controls */
.ticket-quantity {
    margin-bottom: var(--spacing-sm);
}

.ticket-quantity label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy-dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    border: 2px solid var(--teal-primary);
    background: var(--white);
    color: var(--teal-primary);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: var(--teal-primary);
    color: var(--white);
}

.quantity-controls input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Cart Sidebar */
.cart-sidebar {
    position: sticky;
    top: 120px;
}

.cart-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.cart-container h3 {
    color: var(--navy-dark);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--teal-primary);
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--spacing-md);
}

.cart-empty {
    color: var(--gray-medium);
    text-align: center;
    padding: var(--spacing-md) 0;
}

.cart-item {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: var(--spacing-sm);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.cart-item-name {
    font-weight: 600;
    color: var(--navy-dark);
    flex: 1;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--orange);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    color: #c7552d;
    transform: scale(1.2);
}

.cart-item-details {
    display: flex;
    justify-content: space-between;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.cart-total {
    border-top: 2px solid var(--gray-light);
    padding-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.total-row.final-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 2px solid var(--navy-dark);
}

.btn-checkout {
    width: 100%;
}

.btn-checkout:disabled {
    background: var(--gray-medium);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-checkout:disabled:hover {
    transform: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--teal-primary);
}

.modal-header h2 {
    color: var(--navy-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-medium);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--orange);
    transform: rotate(90deg);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--navy-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--teal-primary);
}

.form-group input.error {
    border-color: var(--orange);
}

.form-group input.success {
    border-color: var(--green-accent);
}

.error-message {
    color: var(--orange);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.tab-button {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--gray-light);
    background: var(--white);
    color: var(--navy-dark);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--teal-primary);
    color: var(--white);
    border-color: var(--teal-primary);
}

.tab-button:hover:not(.active) {
    border-color: var(--teal-primary);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.password-requirements {
    font-size: 0.85rem;
    color: var(--gray-medium);
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
}

.password-requirements ul {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
}

.password-requirements li {
    padding: 0.2rem 0;
}

.password-requirements li.valid {
    color: var(--green-accent);
}

.password-requirements li::before {
    content: '○ ';
    margin-right: 0.3rem;
}

.password-requirements li.valid::before {
    content: '✓ ';
}

/* Success Message */
.success-message {
    background: var(--green-accent);
    color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.success-message h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .tickets-container {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        position: static;
    }
    
    .cart-container {
        position: sticky;
        top: 100px;
        z-index: 100;
    }
}

@media (max-width: 768px) {
    .ticket-grid {
        grid-template-columns: 1fr;
    }
    
    .ticket-price {
        font-size: 2rem;
    }
}
