.event-ticketing-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.event-header {
    text-align: center;
    margin-bottom: 30px;
}

.event-poster img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.event-title {
    color: #333;
    margin: 20px 0 10px 0;
}

.event-description {
    color: #666;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

#buy-ticket-btn {
    width: 100%;
    padding: 15px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

#buy-ticket-btn:hover {
    background: #005a87;
}

#buy-ticket-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#ticket-result {
    margin-top: 20px;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.processing {
    background: #cce7ff;
    color: #004085;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #b3d7ff;
}

.ticket-scanner {
    text-align: center;
    padding: 20px;
}

/* Prevent form from causing page reload */
#event-ticket-form {
    position: relative;
}