html,
body {
    background: #fbf9f6;
    color: #1b1c1a;
    font-family: Inter, Arial, sans-serif;
}

a {
    color: #765fba;
}

h1:focus {
    outline: none;
}

.portal-appbar {
    background: rgba(251, 249, 246, 0.92) !important;
    border-bottom: 1px solid rgba(27, 28, 26, 0.06);
    backdrop-filter: blur(12px);
}

.brand-mark {
    color: #1b1c1a;
    font-family: Poppins, Montserrat, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

.portal-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 42px 20px 44px;
}

.booking-page {
    display: flex;
    justify-content: center;
}

.booking-card {
    background: #ffffff;
    border: 1px solid rgba(62, 56, 48, 0.08);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(55, 46, 38, 0.12);
    max-width: 1000px;
    overflow: hidden;
    padding: 28px 40px 36px;
    position: relative;
    width: 100%;
}

.booking-card::before {
    background: linear-gradient(90deg, #6f5ec4 0%, #b55ca9 42%, #e04b4b 100%);
    content: "";
    height: 6px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.booking-card-header {
    align-items: center;
    display: flex;
    margin-bottom: 24px;
}

.booking-logo {
    align-items: baseline;
    color: #1b1c1a;
    display: inline-flex;
    font-family: Poppins, Montserrat, Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    gap: 2px;
    letter-spacing: 0;
}

.booking-logo-mark {
    color: #7764c5;
}

.booking-intro {
    max-width: 780px;
}

.booking-title {
    color: #1b1c1a;
    font-family: Poppins, Montserrat, Arial, sans-serif;
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
}

.booking-subtitle {
    color: #3a3430;
    font-family: Poppins, Montserrat, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0;
}

.booking-copy {
    color: #706b65;
    margin-top: 12px;
}

.calendar-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 26px 0 12px;
}

.booking-alert {
    margin: 10px 0 16px;
}

.calendar-loading {
    align-items: center;
    color: #706b65;
    display: flex;
    gap: 12px;
    justify-content: center;
    min-height: 260px;
}

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

.month-panel h3 {
    color: #1b1c1a;
    font-family: Poppins, Montserrat, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 18px;
    text-align: center;
}

.weekday-row,
.days-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
    color: #8d8780;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.day-cell {
    align-items: center;
    aspect-ratio: 1;
    border: 1px solid transparent;
    border-radius: 7px;
    display: inline-flex;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1;
    min-width: 0;
    padding: 0;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
    width: 100%;
}

button.day-cell {
    cursor: pointer;
}

.day-spacer {
    visibility: hidden;
}

.day-cell.is-available {
    background: #ebe8ff;
    color: #5a4aa0;
}

.day-cell.is-available:hover,
.day-cell.is-selected {
    background: #7662c2;
    border-color: #7662c2;
    color: #ffffff;
    transform: translateY(-1px);
}

.day-cell.is-booked {
    background: #ffe2e3;
    color: #c23b40;
    cursor: not-allowed;
}

.day-cell.is-unavailable {
    background: transparent;
    color: #c2bbb4;
    cursor: not-allowed;
}

.day-cell.is-weekend {
    opacity: 0.62;
}

.day-cell.is-today {
    border-color: #e04b4b;
    color: #e04b4b;
}

.day-cell.is-today.is-selected {
    border-color: #e04b4b;
    color: #ffffff;
}

.calendar-legend {
    align-items: center;
    border: 1px solid rgba(27, 28, 26, 0.1);
    border-radius: 7px;
    color: #5c5751;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.84rem;
    gap: 18px;
    margin-top: 28px;
    padding: 12px 14px;
}

.calendar-legend span {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.legend-title {
    color: #3a3430;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.legend-dot {
    border-radius: 5px;
    display: inline-block;
    height: 16px;
    width: 16px;
}

.legend-available {
    background: #ebe8ff;
    border: 1px solid #d7d0ff;
}

.legend-booked {
    background: #ffe2e3;
    border: 1px solid #ffc7ca;
}

.legend-today {
    background: #ffffff;
    border: 2px solid #e04b4b;
}

.booking-divider {
    margin: 28px 0 24px !important;
}

.booking-form-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.customer-fields {
    display: grid;
    gap: 12px;
}

.booking-action {
    align-content: start;
    display: grid;
    gap: 16px;
}

.selected-week-panel {
    align-items: center;
    background: #fbfaf8;
    border: 1px dashed rgba(119, 100, 197, 0.38);
    border-radius: 8px;
    color: #706b65;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    min-height: 112px;
    padding: 18px;
    text-align: center;
}

.selected-week-panel strong {
    color: #1b1c1a;
    font-family: Poppins, Montserrat, Arial, sans-serif;
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: 0;
}

.selected-week-panel small,
.selected-week-label {
    color: #7764c5;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.primary-book-button {
    border-radius: 7px !important;
    box-shadow: none !important;
    min-height: 48px;
    text-transform: none !important;
}

.portal-grid {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
}

.week-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.week-button {
    min-height: 104px;
    text-align: left;
    width: 100%;
}

.section-title {
    font-family: Poppins, Montserrat, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

@media (max-width: 900px) {
    .portal-shell {
        padding: 28px 12px 28px;
    }

    .booking-card {
        padding: 24px 20px 28px;
    }

    .calendar-grid,
    .booking-form-grid,
    .portal-grid {
        grid-template-columns: 1fr;
    }

    .booking-form-grid {
        gap: 24px;
    }
}

@media (max-width: 520px) {
    .booking-title {
        font-size: 2rem;
    }

    .calendar-grid {
        gap: 28px;
    }

    .weekday-row,
    .days-grid {
        gap: 5px;
    }

    .day-cell {
        border-radius: 6px;
        font-size: 0.78rem;
    }

    .calendar-legend {
        gap: 12px;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZyIgeG1sbnM6eGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    color: white;
    padding: 1rem 1rem 1rem 3.7rem;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
