.teb-open-popup,
.teb-submit {
    background: #36628F;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
}

.teb-open-popup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.teb-arrow-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    object-fit: contain;
}

.teb-open-popup:hover,
.teb-submit:hover {
    background: #001F40;
}

.teb-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    overflow-y: auto;
    padding: 16px 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.teb-modal.teb-modal-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.teb-modal-box {
    width: min(92vw, 560px);
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    transform: translateY(8px) scale(0.98);
    transition: transform 240ms ease, opacity 240ms ease;
    opacity: 0;
}

body.teb-no-scroll {
    overflow: hidden;
}

.teb-modal.teb-modal-open .teb-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.teb-modal-box .flatpickr-calendar {
    z-index: 10000000 !important;
}

.teb-close {
    position: absolute;
    top: 10px;
    left: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.teb-form {
    display: grid;
    gap: 8px;
}

.teb-form label {
    font-weight: 600;
    color: #001F40;
}

.teb-form input,
.teb-form select {
    width: 100%;
    border: 1px solid #ccd6e2;
    border-radius: 8px;
    padding: 10px;
}

.teb-form input.teb-contact-locked:disabled {
    background: #f0f4f8;
    color: #334155;
    cursor: not-allowed;
    opacity: 1;
    border-color: #c5d0e0;
}

.teb-already-booked-notice {
    margin: 0 0 12px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #664d03;
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 8px;
}

.teb-visit-datetime-wrap {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
}

.teb-visit-datetime-wrap.teb-hidden {
    display: none !important;
}

.teb-pick-datetime-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #001F40;
}

.teb-pick-datetime-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.teb-account-choice {
    display: grid;
    gap: 6px;
    margin-top: 4px;
}

.teb-account-choice label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.teb-account-choice input[type="radio"] {
    width: auto;
    margin: 0;
}

.teb-password-wrap {
    display: grid;
    gap: 6px;
}
.teb-password-wrap.teb-hidden {
    display: none !important;
}

.teb-password-field {
    position: relative;
}

.teb-password-field input {
    padding-left: 44px;
}

.teb-toggle-password {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    z-index: 2;
    padding: 4px;
}

.teb-result {
    display: none!important;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.6;
    color: #001F40;
    background: #e6eef7;
}

.teb-result:not(:empty) {
    display: block!important;
}

.teb-result.teb-result-success {
    color: #0f5132;
    background: #d1e7dd;
}

.teb-result.teb-result-error {
    color: #842029;
    background: #f8d7da;
}

.teb-success-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.teb-success-popup-box {
    background: #fff;
    width: min(92vw, 460px);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
}

.teb-success-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 10px;
}

.teb-success-message {
    color: #0f5132;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 16px;
}

.teb-success-close {
    background: #36628F;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
}
