/* Form Improvements - Enhanced UX and Modern Design */

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin: 24px 0 32px 0;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #EB0028 0%, #ff4d4d 100%);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    transition: color 0.3s ease;
}

.step.active .step-label,
.step.completed .step-label {
    color: white;
}

/* Form Sections */
.form-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.form-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    margin: 0 0 24px 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Form Grid */
.form-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Form Groups */
.form-group {
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
    font-size: 0.95rem;
}

.required {
    color: #EB0028;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #EB0028;
    background: #222;
    box-shadow: 0 0 0 4px rgba(235, 0, 40, 0.1);
}

.input-wrapper input:valid {
    border-color: #4CAF50;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 1.2rem;
    color: #666;
    transition: color 0.3s ease;
}

.input-wrapper input:focus + .input-icon {
    color: #EB0028;
}

.form-hint {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
}

/* Marketing Banner Styles */
.marketing-banner {
    background: linear-gradient(135deg, #EB0028 0%, #FF6B35 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(235, 0, 40, 0.15);
    position: relative;
    overflow: hidden;
}

.marketing-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 0 0 L 10 0 L 10 10 L 0 10 Z" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.banner-content {
    display: flex;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.banner-text h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-text p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.banner-text strong {
    color: #fff;
    font-weight: 700;
}

.banner-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.banner-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.countdown {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    min-width: 120px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.1);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.urgency-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255,215,0,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-features {
        justify-content: center;
    }
    
    .banner-visual {
        margin-top: 16px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* Ticket Options */
.ticket-options {
    display: grid;
    gap: 20px;
    margin: 24px 0;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .ticket-options {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.ticket-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #1d1d1d 100%);
    border: 2px solid #333;
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EB0028 0%, #ff4d4d 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-4px);
    border-color: #444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ticket-card.selected {
    border-color: #EB0028;
    background: linear-gradient(135deg, #2a0a0a 0%, #1d1d1d 100%);
}

.ticket-card.selected::before {
    transform: scaleX(1);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ticket-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.ticket-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #EB0028;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-info {
    font-size: 0.8rem;
    color: #4CAF50;
    font-weight: 600;
    background: rgba(76, 175, 80, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    animation: fadeIn 0.5s ease;
}

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

.ticket-features {
    margin-bottom: 20px;
}

.feature {
    margin: 8px 0;
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-select input[type="radio"] {
    display: none;
}

.radio-label {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.ticket-select input[type="radio"]:checked + .radio-label {
    background: linear-gradient(135deg, #EB0028 0%, #ff4d4d 100%);
}

/* Promo Section */
.promo-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #2a1a1a 0%, #1d1d1d 100%);
    border: 2px solid #444;
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

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

/* Payment Summary */
.payment-summary {
    background: linear-gradient(135deg, #1a1a1a 0%, #1d1d1d 100%);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-summary h4 {
    margin: 0 0 16px 0;
    color: white;
    font-size: 1.1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #ccc;
}

.summary-row.total {
    border-top: 2px solid #EB0028;
    margin-top: 12px;
    padding-top: 12px;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

/* Payment Instructions */
.payment-instructions {
    margin-bottom: 24px;
}

.payment-instructions h4 {
    margin: 0 0 16px 0;
    color: white;
    font-size: 1.1rem;
}

.instruction-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #1d1d1d 100%);
    border: 2px solid #333;
    border-radius: 12px;
    padding: 20px;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.step-item .step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #EB0028 0%, #ff4d4d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-item .step-text {
    color: #ccc;
    line-height: 1.5;
    margin-top: 4px;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-area {
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1a1a1a;
    position: relative;
}

.file-upload-area:hover {
    border-color: #EB0028;
    background: #222;
}

.file-upload-area.dragover {
    border-color: #EB0028;
    background: rgba(235, 0, 40, 0.1);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.upload-text p {
    margin: 0;
    color: white;
    font-weight: 500;
}

.upload-hint {
    color: #888;
    font-size: 0.85rem;
    margin-top: 4px;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    cursor: pointer;
}

.file-preview {
    margin-top: 16px;
    position: relative;
    display: inline-block;
}

.file-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    border: 2px solid #333;
}

.remove-file {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(235, 0, 40, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: #ff4d4d;
    transform: scale(1.1);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 16px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #EB0028 0%, #ff4d4d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(235, 0, 40, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff6666 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(235, 0, 40, 0.4);
}

.btn-primary:disabled {
    background: #333;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #333;
    color: white;
    border: 2px solid #444;
}

.btn-secondary:hover {
    background: #444;
    border-color: #555;
    transform: translateY(-2px);
}

/* Form Messages */
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.form-message.error {
    background: rgba(235, 0, 40, 0.2);
    border: 1px solid #EB0028;
    color: #EB0028;
}

.form-message.info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #2196F3;
    color: #2196F3;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #EB0028;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .progress-indicator {
        margin: 16px 0 24px 0;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .ticket-options {
        grid-template-columns: 1fr;
    }
    
    .instruction-steps {
        gap: 12px;
    }
    
    .step-item {
        gap: 12px;
    }
}

.promo-toggle-section {
    margin: 20px 0;
    text-align: center;
}

.promo-toggle-btn {
    background: linear-gradient(135deg, #EB0028 0%, #ff4d4d 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 0, 40, 0.28);
}

.promo-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 0, 40, 0.38);
}

.promo-arrow {
    transition: transform 0.3s ease;
}

.promo-toggle-btn.active .promo-arrow {
    transform: rotate(180deg);
}

.promo-code-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #1d1d1d 100%);
    border-radius: 12px;
    border: 2px dashed rgba(235, 0, 40, 0.4);
}

.promo-input-wrapper {
    max-width: 400px;
    margin: 0 auto;
}

.btn-apply-promo {
    background: linear-gradient(135deg, #EB0028 0%, #ff4d4d 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
    width: 100%;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-apply-promo:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff6666 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(235, 0, 40, 0.3);
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.original-price {
    font-size: 14px;
    color: #6c757d !important;
}

.discount-amount {
    font-weight: 600;
    color: #28a745;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
