.er-form {
    text-align: left;
    color: #014e4e;
}

.er-form * {
    box-sizing: border-box;
}

.er-fields {
    display: grid;
    gap: 14px;
}

.er-grid {
    display: grid;
    gap: 14px;
}

@media (min-width: 576px) {
    .er-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.er-field {
    display: grid;
    gap: 6px;
    margin: 0;
}

.er-field span,
.er-slot-trigger__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #595b62;
}

.er-field input,
.er-field select {
    width: 100%;
    height: 52px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #fff;
    padding: 0 14px;
    font-size: 15px;
    color: #014e4e;
    outline: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.er-field input:focus,
.er-field select:focus,
.er-slot-trigger:focus-visible {
    border-color: #014e4e;
    box-shadow: 0 0 0 3px rgba(1, 78, 78, 0.18);
}

.er-slot-trigger {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px dashed rgba(1, 78, 78, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.er-slot-trigger:hover,
.er-slot-trigger.is-filled {
    border-style: solid;
    border-color: #014e4e;
    background: #fff;
}

.er-slot-trigger__value {
    font-size: 15px;
    font-weight: 600;
    color: #014e4e;
}

.er-slot-trigger:not(.is-filled) .er-slot-trigger__value {
    color: #819291;
    font-weight: 500;
}

.er-fee-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #595b62;
}

.er-submit {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: #e5b858;
    color: #1c2029;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.er-submit:hover:not(:disabled) {
    background: #f0c96a;
}

.er-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.er-alert {
    padding: 12px 14px;
    border-radius: 12px;
    background: #fdecee;
    color: #842029;
    font-size: 14px;
}

.er-success {
    text-align: center;
    padding: 12px 0 4px;
}

.er-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #014e4e;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 26px;
}

.er-success h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #014e4e;
}

.er-success p {
    margin: 0 0 12px;
    color: #595b62;
}

.er-meet-link-wrap {
    margin-bottom: 12px;
}

.er-meet-link-pending {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #595b62;
    font-size: 14px;
    max-width: 100%;
}

.er-meet-link-pending[hidden],
.er-meet-link[hidden],
.er-meet-link-error[hidden] {
    display: none !important;
}

.er-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(1, 78, 78, 0.18);
    border-top-color: #014e4e;
    border-radius: 50%;
    animation: er-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes er-spin {
    to {
        transform: rotate(360deg);
    }
}

.er-meet-link-error {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
}

.er-meet-link {
    display: inline-block;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #014e4e;
    font-weight: 600;
    word-break: break-all;
}

.er-success__hint {
    font-size: 13px !important;
}

.er-modal[hidden] {
    display: none;
}

.er-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
}

.er-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.er-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100% - 24px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    margin: 16px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    padding: 20px;
}

.er-modal__header,
.er-calendar__nav,
.er-modal__footer,
.er-times__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.er-modal__eyebrow {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #819291;
}

.er-modal__header h2,
.er-calendar__nav h3 {
    margin: 0;
    font-size: 22px;
    color: #014e4e;
}

.er-icon-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f3f6f1;
    color: #014e4e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.er-icon-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.er-calendar {
    margin-top: 16px;
}

.er-weekdays,
.er-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.er-weekdays {
    margin: 12px 0 8px;
}

.er-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #8a958b;
}

.er-day {
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #014e4e;
    font-weight: 600;
    cursor: pointer;
}

.er-day.is-muted {
    color: #c5cdc6;
    cursor: default;
}

.er-day.is-today {
    box-shadow: inset 0 0 0 1px #b7c9b0;
}

.er-day.is-selected,
.er-day.is-selected:hover,
.er-day.is-selected:focus-visible {
    background: #014e4e;
    color: #fff;
}

.er-day.has-slots:not(.is-selected):hover,
.er-day.has-slots:not(.is-selected):focus-visible {
    background: #e5fad1;
    color: #014e4e;
}

.er-times {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef2eb;
}

.er-times__head strong {
    color: #014e4e;
}

.er-times__head span,
.er-times__empty {
    font-size: 13px;
    color: #819291;
}

.er-times__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

@media (min-width: 576px) {
    .er-times__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.er-time {
    height: 42px;
    border: 1px solid #e3ebe0;
    border-radius: 10px;
    background: #fff;
    color: #014e4e;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.er-time:hover:not(:disabled),
.er-time:focus-visible:not(:disabled) {
    border-color: #014e4e;
    background: #f7fbf3;
    color: #014e4e;
}

.er-time.is-selected,
.er-time.is-selected:hover:not(:disabled),
.er-time.is-selected:focus-visible:not(:disabled) {
    background: #014e4e;
    border-color: #014e4e;
    color: #fff;
}

.er-time:disabled {
    background: #f4f4f4;
    color: #b0b7b1;
    cursor: not-allowed;
    text-decoration: line-through;
}

.er-modal__footer {
    margin-top: 18px;
}

.er-btn-ghost,
.er-btn-primary {
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.er-btn-ghost {
    border: 0;
    background: transparent;
    color: #595b62;
}

.er-btn-primary {
    border: 0;
    background: #014e4e;
    color: #fff;
    min-width: 140px;
}

.er-btn-primary:disabled {
    opacity: 0.45;
    cursor: default;
}

body.er-modal-open,
body.er-booking-open {
    overflow: hidden;
}

.er-booking-modal {
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.er-booking-modal[hidden] {
    display: none;
}

.er-booking-modal__dialog {
    width: min(520px, 100%);
    margin: 0;
    max-height: calc(100vh - 32px);
}

.er-booking-modal__note {
    margin: 0 0 16px;
    color: #595b62;
    font-size: 14px;
    line-height: 1.5;
}
