/* =========================================================
   TER CREATE RACE — SHARED FORM STANDARD

   Normalizes the earlier Event Identity / Track / Cars / Capacity
   sections to the same typography and control alignment used by the
   approved Sessions, Assists, and Realism UI.
   ========================================================= */

:root {
    --ter-create-label-width: 190px;
    --ter-create-column-gap: 20px;
}

/* Keep all Premium-backed option sections on the same horizontal grid. */
.premium-option-row,
.premium-toggle-row {
    grid-template-columns:
        var(--ter-create-label-width)
        minmax(0, 1fr);
    column-gap: var(--ter-create-column-gap);
}

.premium-option-label {
    color: #c2c2c2;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.35;
}

.ter-standard-panel .premium-options-list {
    padding-bottom: 4px;
}

.ter-standard-panel .premium-option-control input,
.ter-standard-panel .premium-option-control select {
    font-size: 11px;
}

/* ---------------------------------------------------------
   SERVER CAPACITY / BOOKING AWARE ENTRY MODE
   --------------------------------------------------------- */

.capacity-mode-control {
    min-height: 42px;
    justify-content: center;
}

.capacity-mode-control .capacity-state {
    min-height: 42px;
    padding: 0;

    border: 0;
    background: transparent;
}

.capacity-mode-control .capacity-state small {
    display: none;
}

.capacity-mode-control .capacity-state strong {
    color: #ddd;
    font-size: 11px;
    letter-spacing: .8px;
}

.capacity-mode-control .capacity-state span {
    margin-top: 5px;

    color: #747474;
    font-size: 9px;
    line-height: 1.5;
}

.capacity-mode-control .capacity-state.is-booking {
    border: 0;
    background: transparent;
}

.capacity-mode-control .capacity-state.is-booking strong {
    color: var(--red);
}

/* ---------------------------------------------------------
   CAR CONTENT CHOOSER
   --------------------------------------------------------- */

.ter-standard-cars .ter-car-toolbar {
    display: grid;
    grid-template-columns:
        var(--ter-create-label-width)
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: var(--ter-create-column-gap);

    padding: 14px 18px;
}

.ter-car-search-label {
    min-height: 42px;
}

.ter-car-search-control {
    min-width: 0;
}

.ter-car-search-control input {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 11px;

    border: 1px solid #383838;
    outline: none;

    background: #090909;
    color: #eee;

    font-size: 11px;
    box-sizing: border-box;
}

.ter-car-search-control input:focus {
    border-color: var(--red);
}

.ter-standard-cars .car-selection-count {
    min-height: 42px;
    margin: 0;

    font-size: 9px;
}

.ter-standard-cars .car-selection-count strong {
    font-size: 16px;
}

.ter-standard-cars .event-car-copy strong {
    font-size: 12px;
}

.ter-standard-cars .event-car-copy small,
.ter-standard-cars .event-car-copy em {
    font-size: 9px;
}

/* ---------------------------------------------------------
   CONSISTENT TOOLTIP ICON APPEARANCE
   --------------------------------------------------------- */

.ter-standard-panel .session-help-icon,
.ter-standard-cars .session-help-icon {
    width: 18px;
    height: 18px;

    border-color: #626262;
    color: #c0c0c0;

    font-size: 10px;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 800px) {
    .premium-option-row,
    .premium-toggle-row {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .ter-standard-cars .ter-car-toolbar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ter-car-search-label {
        min-height: 28px;
    }

    .ter-standard-cars .car-selection-count {
        width: 100%;
    }
}
