/*
|--------------------------------------------------------------------------
| Royal Servicess LLC
| Onyx Elegance — Public Reservation Gateway
|--------------------------------------------------------------------------
*/

.reserve-shell {
    display: grid;
    gap: 24px;
}


/*
|--------------------------------------------------------------------------
| Progress
|--------------------------------------------------------------------------
*/

.reserve-progress {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.reserve-progress__step {
    position: relative;

    display: grid;
    grid-template-columns:
        34px
        minmax(0, 1fr);
    gap: 12px;

    min-width: 0;

    border:
        1px solid rgba(192, 192, 192, 0.11);

    border-radius: 15px;

    padding: 15px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012)
        ),
        rgba(16, 16, 18, 0.74);

    align-items: center;
}

.reserve-progress__step--active {
    border-color:
        rgba(212, 175, 55, 0.24);

    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, 0.055),
            rgba(255, 255, 255, 0.014)
        ),
        rgba(16, 16, 18, 0.78);
}

.reserve-progress__number {
    display: inline-flex;

    width: 34px;
    height: 34px;

    border:
        1px solid rgba(212, 175, 55, 0.24);

    border-radius: 50%;

    background:
        rgba(212, 175, 55, 0.06);

    color: var(--gold-200);

    align-items: center;
    justify-content: center;

    font-size: 0.7rem;
    font-weight: 800;
}

.reserve-progress__label {
    display: block;

    margin-bottom: 2px;

    color: var(--silver-200);

    font-size: 0.86rem;
    font-weight: 700;
}

.reserve-progress__copy {
    display: block;

    color: var(--silver-500);

    font-size: 0.74rem;
    line-height: 1.4;
}


/*
|--------------------------------------------------------------------------
| Main layout
|--------------------------------------------------------------------------
*/

.reserve-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(285px, 0.68fr);
    gap: 24px;
    align-items: start;
}

.reserve-stack {
    display: grid;
    gap: 22px;
}


/*
|--------------------------------------------------------------------------
| Fleet selector
|--------------------------------------------------------------------------
*/

.reserve-fleet {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.reserve-vehicle-option {
    position: relative;

    min-width: 0;
}

.reserve-vehicle-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.reserve-vehicle-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 100%;

    overflow: hidden;

    border:
        1px solid rgba(192, 192, 192, 0.12);

    border-radius: 18px;

    padding: 21px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.012)
        ),
        rgba(17, 17, 19, 0.80);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 18px 46px rgba(0, 0, 0, 0.20);

    cursor: pointer;

    transition:
        border-color 220ms ease-out,
        background 220ms ease-out,
        box-shadow 220ms ease-out;
}

.reserve-vehicle-card:hover {
    border-color:
        rgba(212, 175, 55, 0.25);

    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, 0.035),
            rgba(255, 255, 255, 0.014)
        ),
        rgba(17, 17, 19, 0.84);
}

.reserve-vehicle-option
input:checked
+ .reserve-vehicle-card {
    border-color:
        rgba(212, 175, 55, 0.55);

    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, 0.075),
            rgba(255, 255, 255, 0.014)
        ),
        rgba(17, 17, 19, 0.86);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 0 0 1px rgba(212, 175, 55, 0.07),
        0 20px 50px rgba(0, 0, 0, 0.24);
}

.reserve-vehicle-card__selector {
    position: absolute;
    top: 18px;
    right: 18px;

    display: inline-flex;

    width: 26px;
    height: 26px;

    border:
        1px solid rgba(192, 192, 192, 0.22);

    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.16);

    align-items: center;
    justify-content: center;
}

.reserve-vehicle-card__selector::after {
    content: "";

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background:
        transparent;
}

.reserve-vehicle-option
input:checked
+ .reserve-vehicle-card
.reserve-vehicle-card__selector {
    border-color:
        rgba(212, 175, 55, 0.7);
}

.reserve-vehicle-option
input:checked
+ .reserve-vehicle-card
.reserve-vehicle-card__selector::after {
    background:
        var(--gold-200);
}

.reserve-vehicle-card__eyebrow {
    margin-bottom: 6px;

    padding-right: 38px;

    color: var(--gold-200);

    font-size: 0.69rem;
    font-weight: 760;
    letter-spacing: 0.10em;

    text-transform: uppercase;
}

.reserve-vehicle-card__title {
    margin: 0;

    padding-right: 32px;

    color: var(--silver-100);

    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.25;
}

.reserve-vehicle-card__description {
    min-height: 46px;

    margin: 10px 0 18px;

    color: var(--silver-400);

    font-size: 0.85rem;
    line-height: 1.55;
}

.reserve-rates {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 9px;

    margin-top: auto;
}

.reserve-rate {
    min-width: 0;

    border:
        1px solid rgba(192, 192, 192, 0.09);

    border-radius: 12px;

    padding: 12px;

    background:
        rgba(255, 255, 255, 0.018);
}

.reserve-rate__label {
    display: block;

    margin-bottom: 4px;

    color: var(--silver-500);

    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.07em;

    text-transform: uppercase;
}

.reserve-rate__value {
    display: block;

    color: var(--silver-200);

    font-size: 0.94rem;
    font-weight: 700;
}

.reserve-price-unavailable {
    margin-top: auto;

    border:
        1px solid rgba(212, 175, 55, 0.14);

    border-radius: 12px;

    padding: 12px;

    color: var(--silver-400);

    font-size: 0.82rem;
}


/*
|--------------------------------------------------------------------------
| Itinerary
|--------------------------------------------------------------------------
*/

.reserve-itinerary-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.reserve-itinerary-grid .field {
    margin: 0;
}

.reserve-timezone-note {
    margin-top: 15px;

    color: var(--silver-500);

    font-size: 0.8rem;
    line-height: 1.5;
}

.reserve-submit {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 22px;

    align-items: center;
}

.reserve-submit .button {
    min-width: 235px;

    justify-content: center;
}


/*
|--------------------------------------------------------------------------
| Side information
|--------------------------------------------------------------------------
*/

.reserve-guidance {
    display: grid;
    gap: 13px;
}

.reserve-guidance__item {
    display: grid;
    grid-template-columns:
        34px
        minmax(0, 1fr);
    gap: 13px;

    border:
        1px solid rgba(192, 192, 192, 0.10);

    border-radius: 13px;

    padding: 15px;

    background:
        rgba(255, 255, 255, 0.019);
}

.reserve-guidance__mark {
    display: inline-flex;

    width: 34px;
    height: 34px;

    border:
        1px solid rgba(212, 175, 55, 0.24);

    border-radius: 50%;

    background:
        rgba(212, 175, 55, 0.055);

    color: var(--gold-200);

    align-items: center;
    justify-content: center;

    font-size: 0.7rem;
    font-weight: 800;
}

.reserve-guidance__title {
    display: block;

    margin-bottom: 3px;

    color: var(--silver-100);

    font-size: 0.89rem;
    font-weight: 700;
}

.reserve-guidance__copy {
    display: block;

    color: var(--silver-400);

    font-size: 0.82rem;
    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Availability result
|--------------------------------------------------------------------------
*/

.availability-result {
    display: flex;
    gap: 15px;

    border-radius: 16px;

    padding: 18px;

    align-items: flex-start;
}

.availability-result--success {
    border:
        1px solid rgba(125, 195, 145, 0.25);

    background:
        rgba(31, 90, 49, 0.13);
}

.availability-result--blocked {
    border:
        1px solid rgba(212, 175, 55, 0.25);

    background:
        rgba(212, 175, 55, 0.045);
}

.availability-result__mark {
    display: inline-flex;

    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    border:
        1px solid rgba(212, 175, 55, 0.24);

    border-radius: 50%;

    align-items: center;
    justify-content: center;

    color: var(--gold-200);

    font-weight: 800;
}

.availability-result--success
.availability-result__mark {
    border-color:
        rgba(125, 195, 145, 0.28);

    color: #bce8c8;
}

.availability-result__content strong {
    display: block;

    margin-bottom: 4px;

    color: var(--silver-100);

    font-size: 0.96rem;
}

.availability-result__content span {
    display: block;

    color: var(--silver-400);

    font-size: 0.86rem;
    line-height: 1.55;
}

.availability-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 18px;
}


/*
|--------------------------------------------------------------------------
| Empty state
|--------------------------------------------------------------------------
*/

.reserve-empty {
    border:
        1px dashed rgba(192, 192, 192, 0.16);

    border-radius: 16px;

    padding: 30px;

    text-align: center;
}

.reserve-empty h2 {
    margin-bottom: 6px;
}

.reserve-empty p {
    margin: 0;

    color: var(--silver-500);
}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 960px) {
    .reserve-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .reserve-progress,
    .reserve-fleet,
    .reserve-itinerary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .reserve-vehicle-card {
        padding: 18px;
    }

    .reserve-rates {
        grid-template-columns: 1fr;
    }

    .reserve-submit,
    .availability-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .reserve-submit .button,
    .availability-actions .button {
        width: 100%;
        min-width: 0;

        justify-content: center;
    }
}
