/*
* Title                   : Pinpoint Booking System WordPress Plugin (PRO) - vrpatirtis.lt fork
* File                    : assets/css/vrp/booking.css
* Description             : [vrp_booking] form styles, matching the vrpatirtis.lt homepage (Oxygen):
*                           black sections, white text, Alegreya Sans, teal #00c2cb accents and step numbers,
*                           white pill buttons (25px radius, 20px text). Mobile-first, scoped to .vrp-booking.
*/

.vrp-booking{
    --vrp-accent: #00c2cb;
    --vrp-accent-dark: #009faa;
    --vrp-bg: #000000;
    --vrp-surface: #111111;
    --vrp-text: #ffffff;
    --vrp-muted: #969696;
    --vrp-line: #333333;
    --vrp-line-strong: #3e3e4b;
    --vrp-button: #ffffff;
    --vrp-button-hover: #e8e8e8;
    --vrp-error: #ff6b6b;
    --vrp-pill: 25px;

    max-width: 640px;
    margin: 0 auto;
    padding: 24px 16px;
    border-radius: 20px;
    background: var(--vrp-bg);
    color: var(--vrp-text);
    font-family: 'Alegreya Sans', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    text-align: left;
}

.vrp-booking *,
.vrp-booking *::before,
.vrp-booking *::after{
    box-sizing: border-box;
}

.vrp-booking a{
    color: var(--vrp-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vrp-booking a:hover{
    color: var(--vrp-accent);
}

/* Steps: big teal number + uppercase title, like "Kaip veikia nuomos procesas?" */

.vrp-section{
    min-width: 0;
    margin: 0;
    padding: 0 0 28px;
    border: 0;
    border-bottom: 2px solid var(--vrp-line);
}

.vrp-section + .vrp-section{
    padding-top: 28px;
}

.vrp-step{
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
}

.vrp-step-no{
    flex: 0 0 auto;
    color: var(--vrp-accent);
    font-size: 56px;
    font-weight: 800;
    line-height: .8;
}

.vrp-step-title{
    color: var(--vrp-text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.3px;
    line-height: 1.1;
    text-transform: uppercase;
}

.vrp-hint{
    margin: 0 0 12px;
    color: var(--vrp-muted);
    font-size: 16px;
}

/* Choice buttons (model, handover): outlined pills, selected = white like the homepage primary button */

.vrp-options{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vrp-options-stack{
    grid-template-columns: 1fr;
}

.vrp-option{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 64px;
    padding: 12px 20px;
    border: 1px solid var(--vrp-text);
    border-radius: var(--vrp-pill);
    background: transparent;
    color: var(--vrp-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}

.vrp-option:hover{
    border-color: var(--vrp-accent);
}

.vrp-option[aria-checked="true"]{
    border-color: var(--vrp-button);
    background: var(--vrp-button);
    color: #000000;
}

.vrp-option-title{
    font-weight: 700;
    line-height: 1.2;
}

.vrp-option-sub{
    margin-top: 2px;
    color: var(--vrp-muted);
    font-size: 15px;
    line-height: 1.3;
}

.vrp-option[aria-checked="true"] .vrp-option-sub{
    color: #4f4f4f;
}

.vrp-option:focus-visible,
.vrp-day:focus-visible,
.vrp-cal-nav-btn:focus-visible,
.vrp-submit:focus-visible,
.vrp-field input:focus-visible,
.vrp-check input:focus-visible{
    outline: 2px solid var(--vrp-accent);
    outline-offset: 2px;
}

/* Calendar */

.vrp-cal-nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.vrp-cal-title{
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.vrp-cal-nav-btn{
    width: 44px;
    height: 44px;
    border: 1px solid var(--vrp-text);
    border-radius: 50%;
    background: transparent;
    color: var(--vrp-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.vrp-cal-nav-btn:hover:not(:disabled){
    border-color: var(--vrp-accent);
    color: var(--vrp-accent);
}

.vrp-cal-nav-btn:disabled{
    opacity: .25;
    cursor: default;
}

.vrp-cal-grid{
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 0; /* no gaps, so the range band is continuous */
    row-gap: 4px;
}

.vrp-cal-weekday{
    padding: 4px 0;
    color: var(--vrp-muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

/*
 * Day cell = full column width (for the range band); the circle is a ::before of fixed size,
 * so selected days stay round however wide the column is.
 */
.vrp-day{
    position: relative;
    z-index: 0;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--vrp-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.vrp-day::before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: min(40px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.vrp-day:hover:not(:disabled)::before,
.vrp-day.is-candidate::before{
    box-shadow: inset 0 0 0 1px var(--vrp-accent);
}

.vrp-day:disabled{
    color: #4f4f4f;
    cursor: default;
}

.vrp-day.is-booked{
    color: #4f4f4f;
    text-decoration: line-through;
}

.vrp-day.is-closed{
    color: #4f4f4f;
}

/* Range band between pickup and return; it starts/ends at the middle of the end circles */

.vrp-day.is-range{
    background: rgba(0, 194, 203, .22);
}

.vrp-day.is-start.has-range{
    background: linear-gradient(to right, transparent 50%, rgba(0, 194, 203, .22) 50%);
}

.vrp-day.is-end{
    background: linear-gradient(to left, transparent 50%, rgba(0, 194, 203, .22) 50%);
}

.vrp-day.is-start,
.vrp-day.is-end{
    color: #000000;
    text-decoration: none;
}

.vrp-day.is-start::before,
.vrp-day.is-end::before{
    background: var(--vrp-accent);
    box-shadow: none;
}

.vrp-dates{
    margin: 14px 0 0;
    font-weight: 700;
}

.vrp-dates:empty{
    display: none;
}

/* Fields: pill-shaped like the homepage buttons */

.vrp-field{
    margin-bottom: 14px;
}

.vrp-field label{
    display: block;
    margin: 0 0 6px 4px;
    color: var(--vrp-muted);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.vrp-field input{
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: 1px solid var(--vrp-line-strong);
    border-radius: var(--vrp-pill);
    background: var(--vrp-surface);
    color: var(--vrp-text);
    font: inherit;
    font-size: 18px; /* >= 16px prevents iOS zoom on focus */
}

.vrp-field input::placeholder{
    color: #6b6b78;
}

.vrp-field input:focus{
    border-color: var(--vrp-accent);
    outline: none;
}

.vrp-error{
    display: block;
    margin: 6px 0 0 4px;
    color: var(--vrp-error);
    font-size: 15px;
}

.vrp-error:empty{
    display: none;
}

.vrp-hp{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Terms */

.vrp-terms-summary{
    margin: 0 0 12px;
    padding-left: 20px;
    color: var(--vrp-text);
    font-size: 16px;
}

.vrp-terms-summary li{
    margin-bottom: 4px;
}

.vrp-terms-summary li::marker{
    color: var(--vrp-accent);
}

.vrp-check{
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0 0;
    font-weight: 700;
    cursor: pointer;
}

.vrp-check input{
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    margin: 1px 0 0;
    accent-color: var(--vrp-accent);
}

/* Footer: price line + homepage-style white pill button */

.vrp-footer{
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -16px -24px;
    padding: 16px;
    border-top: 2px solid var(--vrp-line);
    border-radius: 0 0 20px 20px;
    background: var(--vrp-bg);
}

.vrp-price{
    margin: 0 0 10px;
    font-size: 16px;
}

.vrp-message{
    margin: 0 0 10px;
    color: var(--vrp-accent);
    font-weight: 700;
}

.vrp-message:empty{
    display: none;
}

.vrp-submit{
    width: 100%;
    min-height: 56px;
    padding: 15px 30px;
    border: 1px solid var(--vrp-button);
    border-radius: var(--vrp-pill);
    background: var(--vrp-button);
    color: #000000;
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.vrp-submit:hover:not(:disabled){
    border-color: var(--vrp-button-hover);
    background: var(--vrp-button-hover);
}

.vrp-submit:disabled{
    opacity: .6;
    cursor: wait;
}

@media (min-width: 600px){
    .vrp-booking{
        padding: 32px;
    }

    .vrp-footer{
        margin: 0 -32px -32px;
        padding: 20px 32px;
    }

    .vrp-options-stack{
        grid-template-columns: 1fr 1fr;
    }

    .vrp-step-no{
        font-size: 72px;
    }
}
