.ljpc-booking-form {
    max-width: 100%;
    margin: 1.5em 0;
    font-size: 17px;
}

.ljpc-booking-form--sold-out {
    padding: 1em 1.25em;
    background: #f8f8f8;
    border-left: 3px solid #1a0d91;
    border-radius: 2px;
    color: #444;
}

/* Quantity selector */
.ljpc-qty-row {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 1em;
}

.ljpc-qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    user-select: none;
}

.ljpc-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #f4f4f6;
    color: #1a0d91;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.ljpc-qty-btn:hover {
    background: #e8e8ee;
}

.ljpc-qty-btn:active {
    background: #dddde6;
}

.ljpc-qty-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 36px;
    font-size: 1em;
    font-weight: 700;
    color: #333;
    background: #fff;
}

.ljpc-qty-label {
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
}

.ljpc-qty-total {
    font-size: 0.95em;
    font-weight: 700;
    color: #1a0d91;
    white-space: nowrap;
}

/* Passenger cards */
.ljpc-passenger-card {
    background: #f9f9fb;
    border: 1px solid #ededf0;
    border-radius: 6px;
    padding: 1em 1.25em;
    margin-bottom: 0.75em;
}

.ljpc-passenger-card__header {
    font-size: 0.8em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1a0d91;
    margin-bottom: 0.6em;
}

.ljpc-passenger-card__fields {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

/* Fields */
.ljpc-booking-form .ljpc-field label:not(.ljpc-direction-option) {
    display: block;
    font-size: 0.75em;
    font-weight: 500;
    color: #888;
    margin-bottom: 0.2em;
}

.ljpc-booking-form .ljpc-field input,
.ljpc-booking-form .ljpc-field select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5em 0.65em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    background: #fff;
    color: #333;
    transition: border-color 0.15s;
}

/* Force readable option colors — some Windows browsers render unstyled
   options with system colors that can be white-on-white. */
.ljpc-booking-form .ljpc-field select option {
    background: #fff;
    color: #333;
}

.ljpc-booking-form .ljpc-field input::placeholder {
    color: #bbb;
}

.ljpc-booking-form .ljpc-field input:focus,
.ljpc-booking-form .ljpc-field select:focus {
    border-color: #1a0d91;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 13, 145, 0.1);
}

/* Submit button */
.ljpc-submit-btn {
    display: block;
    width: 100%;
    padding: 0.85em 1.5em;
    margin-top: 1em;
    border: none;
    border-radius: 6px;
    background: #c8f522;
    color: #1a0d91;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.ljpc-submit-btn:hover:not(:disabled) {
    background: #b8e51a;
}

.ljpc-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ljpc-submit-btn--success {
    background: #22c55e;
    color: #fff;
}

/* Error message */
.ljpc-form-error {
    margin-top: 0.75em;
    padding: 0.6em 1em;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #b91c1c;
    font-size: 0.9em;
}

/* Grey filler card — fills the last grid row to a multiple of 3 */
.ljpc-passenger-card--filler {
    background: #f4f4f6;
    border-color: #e8e8ec;
    opacity: 0.4;
    pointer-events: none;
}

.ljpc-direction-label {
    display: block;
    font-size: 0.75em;
    font-weight: 500;
    color: #888;
    margin-bottom: 0.3em;
}

.ljpc-direction-options {
    display: flex;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.ljpc-direction-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.45em 0.5em;
    font-size: 0.85em;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: center;
    border-right: 1px solid #ddd;
    user-select: none;
}

.ljpc-direction-option:last-child {
    border-right: none;
}

.ljpc-direction-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ljpc-direction-option:hover:not(:has(input:checked)) {
    background: #f4f4f8;
}

.ljpc-direction-option:has(input:checked) {
    background: #1a0d91;
    color: #fff;
    font-weight: 600;
}

/* Group code field */
.ljpc-field--group-code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3em 0.5em;
    margin-bottom: 1em;
    padding: 0.6em 0.85em;
    background: #f4f4f8;
    border: 1px dashed #ccc;
    border-radius: 6px;
}

.ljpc-group-code-help {
    width: 100%;
    font-size: 0.7em;
    color: #999;
    line-height: 1.3;
}

.ljpc-field--group-code label {
    font-size: 0.8em !important;
    font-weight: 600 !important;
    color: #1a0d91 !important;
    white-space: nowrap;
    margin-bottom: 0 !important;
}

.ljpc-field--group-code .ljpc-group-code-input {
    flex: 1;
    padding: 0.4em 0.6em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85em;
    background: #fff;
    color: #333;
    letter-spacing: 0.08em;
    transition: border-color 0.15s;
}

.ljpc-field--group-code .ljpc-group-code-input:focus {
    border-color: #1a0d91;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 13, 145, 0.1);
}

.ljpc-field--group-code .ljpc-group-code-input::placeholder {
    font-size: 0.9em;
    letter-spacing: normal;
    color: #aaa;
    text-transform: none;
}

.ljpc-group-code-info-icon {
    cursor: pointer;
    color: #1a0d91;
    font-style: normal;
    font-size: 1.1em;
    vertical-align: middle;
}

.ljpc-group-code-info-popup {
    width: 100%;
    font-size: 0.75em;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.6em 0.8em;
    line-height: 1.4;
    margin-top: 0.3em;
}

/* Music taste field */
.ljpc-field--music-taste {
    background: #f9f9fb;
    border: 1px solid #ededf0;
    border-radius: 6px;
    padding: 0.75em 1em;
    margin-bottom: 0.75em;
}

/* Pickup field with map link */
.ljpc-pickup-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ljpc-pickup-wrap select {
    flex: 1;
}

.ljpc-pickup-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #1a0d91;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s;
    flex-shrink: 0;
}

.ljpc-pickup-link:hover {
    background: #f0f0f5;
}

/* Field validation errors */
.ljpc-field--error {
    border-color: #dc2626 !important;
}

.ljpc-field-error {
    display: block;
    font-size: 0.7em;
    color: #dc2626;
    margin-top: 0.2em;
}

/* Queue form reuses .ljpc-booking-form, .ljpc-passenger-card, .ljpc-field, .ljpc-submit-btn from booking form CSS. */
/* Only queue-specific additions: */
.ljpc-booking-form--queue h3 { margin-top: 0; }
.ljpc-queue-form__message { margin-top: 1rem; padding: 0.75rem; border-radius: 4px; }
.ljpc-queue-form__message--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.ljpc-queue-form__message--error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Passenger cards grid */
.ljpc-passenger-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75em;
    margin-bottom: 1em;
}

.ljpc-passenger-grid .ljpc-passenger-card {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ljpc-passenger-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ljpc-passenger-grid {
        grid-template-columns: 1fr;
    }

    .ljpc-passenger-card__fields {
        grid-template-columns: 1fr;
    }

    .ljpc-passenger-card {
        padding: 0.75em;
    }

    .ljpc-direction-option {
        font-size: 0.65em;
        padding: 0.45em 0.2em;
        min-width: 0;
    }

    .ljpc-qty-row {
        flex-wrap: wrap;
    }
}

.ljpc-group-code-warning {
    margin-top: 6px;
    padding: 8px 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    color: #8d6e00;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Edit booking link in cart */
.ljpc-edit-booking-link {
    font-size: 0.85em;
}
