/* ═══════════════════════════════════════════════════════════════
   RENT2WHEELS – Eligibility Check Section
   Appears in .r2w-booking-widget after the date picker row.
   Mobile-first, same card style as the rest of the widget.
══════════════════════════════════════════════════════════════ */

/* ── Section wrapper ────────────────────────────────────────── */
.r2w-eligibility-section {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 0.5px solid var(--color-border-tertiary, rgba(0,0,0,.10));
}

/* ── Grid: 1 column mobile, 2 columns tablet+ ───────────────── */
.r2w-elig-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 480px) {
    .r2w-elig-grid {
        grid-template-columns: 1fr 1fr;
    }
    .r2w-elig-field--full {
        grid-column: 1 / -1;
    }
}

/* ── Individual field ───────────────────────────────────────── */
.r2w-elig-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.r2w-elig-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-secondary, #546E7A);
    line-height: 1.3;
    margin: 0;
    cursor: default;
}

.r2w-elig-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-primary, #263238);
    margin: 0 0 4px;
}

.r2w-elig-icon {
    font-size: 20px;
    line-height: 1;
}

.r2w-field-req {
    color: #C62828;
    font-weight: 700;
    margin-left: 1px;
}

/* ── Inputs and selects ─────────────────────────────────────── */
.r2w-elig-input {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text-primary, #263238);
    background: var(--color-background-primary, #fff);
    border: 0.5px solid var(--color-border-tertiary, rgba(0,0,0,.20));
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}

.r2w-elig-input:focus {
    border-color: #1565C0;
    box-shadow: 0 0 0 3px rgba(21,101,192,.08);
}

select.r2w-elig-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23546E7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

input[type="date"].r2w-elig-input {
    font-size: 13px;
}

/* ── Notice box ─────────────────────────────────────────────── */
.r2w-elig-notice {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.r2w-elig-notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.r2w-elig-notice ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.r2w-elig-notice li { margin-bottom: 2px; }

/* Error: red */
.r2w-elig-notice--error {
    background: rgba(198,40,40,.07);
    border: 0.5px solid rgba(198,40,40,.30);
    color: #B71C1C;
}

/* Warning: amber */
.r2w-elig-notice--warning {
    background: rgba(245,124,0,.07);
    border: 0.5px solid rgba(245,124,0,.30);
    color: #E65100;
}

/* ── Blocked book button ─────────────────────────────────────── */
.r2w-btn--blocked {
    opacity: .4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}
