.vrsp-booking-widget {
    display: grid;
    gap: 1.5rem;
    margin: 0 auto 3rem;
    padding: 1.5rem;
    max-width: 960px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.vrsp-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vrsp-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vrsp-card__header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.vrsp-card__header p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.vrsp-card--dates .vrsp-availability {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(59, 130, 246, 0.08));
}

.vrsp-availability {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 12px;
    background-color: rgba(37, 99, 235, 0.06);
}

.vrsp-availability__status {
    font-weight: 600;
    color: #0f172a;
}

.vrsp-availability__suggestion {
    font-size: 0.95rem;
    color: #475569;
}

.vrsp-availability__apply {
    justify-self: start;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vrsp-availability__apply:hover,
.vrsp-availability__apply:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    outline: none;
}

.vrsp-availability__apply:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.vrsp-availability.is-checking .vrsp-availability__status {
    color: #2563eb;
}

.vrsp-availability.is-available .vrsp-availability__status {
    color: #047857;
}

.vrsp-availability.is-unavailable .vrsp-availability__status,
.vrsp-availability.is-error .vrsp-availability__status {
    color: #b91c1c;
}

.vrsp-availability__calendar {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(59, 130, 246, 0.08));
    color: #1e293b;
}

@media (min-width: 768px) {
    .vrsp-availability__calendar {
        gap: 1rem;
        padding: 1rem;
    }
}

.vrsp-calendar__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
    color: #475569;
}

.vrsp-calendar__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.vrsp-calendar__legend-swatch {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.15);
}

.vrsp-calendar__legend-swatch.is-blocked {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.18);
}

.vrsp-calendar__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.vrsp-calendar__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.vrsp-calendar__nav:hover:not(:disabled),
.vrsp-calendar__nav:focus-visible:not(:disabled) {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.45);
    color: #1d4ed8;
}

.vrsp-calendar__nav:focus-visible:not(:disabled) {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 2px;
}

.vrsp-calendar__nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vrsp-calendar__range {
    flex: 1 1 auto;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    white-space: normal;
}

.vrsp-calendar__nav span {
    display: block;
}

.vrsp-calendar__months {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .vrsp-calendar__months {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

.vrsp-calendar__month {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
    display: grid;
    gap: 0.65rem;
}

.vrsp-calendar__month-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.vrsp-calendar {
    width: 100%;
    border-collapse: collapse;
}

.vrsp-calendar th,
.vrsp-calendar td {
    text-align: center;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.vrsp-calendar th {
    font-weight: 600;
    color: #475569;
}

.vrsp-calendar__day {
    position: relative;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.vrsp-calendar__day[role='button'] {
    cursor: pointer;
}

.vrsp-calendar__day[role='button']:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.vrsp-calendar__day.is-empty {
    background: transparent;
}

.vrsp-calendar__day-number {
    font-weight: 600;
}

.vrsp-calendar__day.is-available {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.vrsp-calendar__day.is-past {
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
}

.vrsp-calendar__day.is-blocked {
    background: rgba(148, 163, 184, 0.2);
    color: #9ca3af;
    text-decoration: none;
}

.vrsp-calendar__day.is-blocked .vrsp-calendar__day-number {
    opacity: 0.65;
}

.vrsp-calendar__day-status {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.85rem;
    color: #b91c1c;
    font-weight: 700;
}

.vrsp-calendar__day.is-selected {
    background: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
}

.vrsp-calendar__day.is-selected-start,
.vrsp-calendar__day.is-selected-end {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.vrsp-availability__details {
    display: grid;
    gap: 1.25rem;
    margin-top: 1rem;
}

.vrsp-form__summary {
    margin-top: 1.5rem;
}

.vrsp-form__summary .vrsp-availability__details {
    margin-top: 0;
}

.vrsp-availability__dates h3,
.vrsp-availability__pricing h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.vrsp-availability__dates dl,
.vrsp-availability__pricing dl {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.vrsp-availability__dates dl div,
.vrsp-availability__pricing dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    color: #0f172a;
}

.vrsp-availability__dates dt,
.vrsp-availability__pricing dt {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.vrsp-availability__dates dd,
.vrsp-availability__pricing dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.vrsp-availability__note {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #475569;
}

.vrsp-form__grid {
    display: grid;
    gap: 0.75rem;
}

.vrsp-form__grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: #1e293b;
}

.vrsp-form__grid input {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 0.65rem 0.75rem;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vrsp-form__grid input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

.vrsp-form__payment {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: grid;
    gap: 0.75rem;
}

.vrsp-form__payment legend {
    font-weight: 700;
    color: #0f172a;
    padding: 0 0.25rem;
}

.vrsp-form__payment label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e293b;
}

.vrsp-form__payment input[type='radio'] {
    width: 1rem;
    height: 1rem;
    accent-color: #2563eb;
}

.vrsp-form__payment-note {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #475569;
}

.vrsp-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

.vrsp-form__submit {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vrsp-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.vrsp-form__continue {
    border-radius: 999px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    background: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.6);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.vrsp-form__continue:hover:not([disabled]) {
    background: #cbd5f5;
    color: #1e293b;
    transform: translateY(-1px);
}

.vrsp-form__continue[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vrsp-quote[hidden] {
    display: none;
}

.vrsp-quote__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 0;
}

.vrsp-quote__grid div {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 12px;
    padding: 0.75rem;
}

.vrsp-quote__grid dt {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.vrsp-quote__grid dd {
    margin: 0.25rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.vrsp-quote__note {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
}

.vrsp-quote__intro {
    margin: 0;
    color: #334155;
    font-size: 0.95rem;
}

.vrsp-message {
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: none;
}

.vrsp-message.info {
    display: block;
    background: #e0f2fe;
    color: #0369a1;
}

.vrsp-message.error {
    display: block;
    background: #fee2e2;
    color: #b91c1c;
}

.vrsp-message.success {
    display: block;
    background: #dcfce7;
    color: #15803d;
}

@media (min-width: 768px) {
    .vrsp-booking-widget {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 2.5rem;
    }

    .vrsp-card--form {
        grid-column: span 1;
    }

    .vrsp-availability__details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 767px) {
    .vrsp-booking-widget {
        border-radius: 0;
        box-shadow: none;
        padding: 1.25rem 1rem;
    }

    .vrsp-card {
        border-radius: 12px;
    }
}
