/* Ticket Purchase Page Styles */

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

/* Form Elements */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Buttons */
button {
    transition: all 0.3s ease;
}

/* Ticket Cards */
#presale-card,
#door-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#presale-card:hover,
#door-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#presale-card {
    border: 2px solid #9D00FF;
}

#door-card {
    border: 1px solid #e5e7eb;
    opacity: 0.8;
}

#door-card:hover {
    opacity: 1;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: #e5e7eb;
}

.quantity-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.quantity-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.quantity-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
    border-left: none;
    border-right: none;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-input:focus {
    outline: none;
    border-color: #9D00FF;
    box-shadow: 0 0 0 2px rgba(157, 0, 255, 0.2);
}

/* Coupon Section */
#coupon-input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s;
}

#coupon-input:focus {
    border-color: #9D00FF;
    box-shadow: 0 0 0 2px rgba(157, 0, 255, 0.2);
    outline: none;
}

/* Order Summary */
.order-summary {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.order-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9D00FF;
}

/* Payment Methods */
.payment-method {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.payment-method:hover {
    border-color: #9D00FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-method i {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ticket-options {
        grid-template-columns: 1fr;
    }
    
    .event-details {
        flex-direction: column;
    }
    
    .event-image {
        margin-top: 24px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #9D00FF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7B00CC;
}

/* Utility Classes */
.text-primary {
    color: #9D00FF;
}

.bg-primary {
    background-color: #9D00FF;
}

.hover\:bg-primary:hover {
    background-color: #8B00E0;
}

.border-primary {
    border-color: #9D00FF;
}

.focus\:ring-primary:focus {
    --tw-ring-color: rgba(157, 0, 255, 0.5);
}

/* Checkout Button */
#checkout-button {
    background: linear-gradient(135deg, #9D00FF, #7B00CC);
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(157, 0, 255, 0.3);
}

/* Selected Ticket Style */
.ticket-selected {
    border: 2px solid #9D00FF;
    background-color: #f9f0ff;
}

/* Disabled State */
.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
.success-message {
    color: #10b981;
    font-weight: 500;
}

/* Error Message */
.error-message {
    color: #ef4444;
    font-weight: 500;
}
