/* OTP Popup Body */
body.tmba-popup-body {
    margin: 0;
    padding: 0;
    background: #fafafa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* FlipBook Wrapper - Takes full screen in fullscreen mode */
body.tmba-fullscreen-page .tmba-flipbook-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

body.tmba-fullscreen-page .tmba-flipbook-wrapper .tmba-flipbook {
    width: 100%;
    height: 100%;
}

/* Normal flipbook wrapper */
.tmba-flipbook-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
}

.tmba-flipbook-wrapper .tmba-flipbook {
    width: 100%;
    height: 100%;
}

.tmba-access-container,
.tmba-book-access {
    max-width: 420px;
    width: 100%;
    margin: 80px auto;
    padding: 20px;
}

.tmba-access-box,
.tmba-book-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Logo styling */
.tmba-logo {
    text-align: center;
    margin-bottom: 24px;
}

.tmba-logo img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Description styling */
.tmba-description {
    text-align: center;
    margin-bottom: 32px;
}

.tmba-description p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.tmba-description p:last-child {
    margin-bottom: 0;
}

.tmba-access-box h2,
.tmba-book-box h2 {
    margin: 0 0 24px 0;
    color: #1a202c;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.tmba-step {
    animation: fadeIn 0.3s ease-in;
}

.tmba-form-group {
    margin-bottom: 20px;
}

.tmba-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
}

.tmba-form-group input[type="tel"],
.tmba-form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #1a202c;
}

.rtl .tmba-form-group input[type="tel"] {
    direction: rtl;
}

.rtl .tmba-form-group input[type="text"] {
    direction: ltr;
}


.tmba-form-group input:focus {
    outline: none;
    border-color: #4299e1;
    background-color: #fff;
}

/* OTP Digit Inputs */
.tmba-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
    direction: ltr;
}

.tmba-otp-digit {
    height: 45px;
    padding-inline: 0 !important;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #1a202c;
}

.tmba-otp-digit:focus {
    outline: none;
    border-color: #4299e1 !important;
    background-color: #ebf8ff;
    transform: scale(1.05);
}

.tmba-otp-digit::-webkit-inner-spin-button,
.tmba-otp-digit::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tmba-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
}

.tmba-btn:active {
    transform: scale(0.98);
}

.tmba-btn-primary {
    background: #4299e1;
    color: #fff;
}

.tmba-btn-primary:hover {
    background: #3182ce;
}

.tmba-btn-primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.7;
}

.tmba-btn-secondary {
    background: #edf2f7;
    color: #4a5568;
    margin-top: 12px;
}

.tmba-btn-secondary:hover {
    background: #e2e8f0;
}

.tmba-btn-download {
    background-color: #48bb78;
    color: #fff;
    display: block;
    margin: 20px auto;
    max-width: 300px;
}

.tmba-btn-download:hover {
    background-color: #38a169;
    color: #fff;
}

.tmba-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-size: 14px;
}

.tmba-message.success {
    background-color: #c6f6d5;
    color: #22543d;
    display: block;
}

.tmba-message.error {
    background-color: #fed7d7;
    color: #742a2a;
    display: block;
}

.tmba-message.info {
    background-color: #bee3f8;
    color: #2c5282;
    display: block;
}

.tmba-notice {
    margin-top: 32px;
    padding: 16px;
    background-color: #f7fafc;
    border-radius: 8px;
}

.tmba-notice p {
    margin: 0;
    color: #718096;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}

.tmba-notice ul {
    margin: 10px 0;
    padding-left: 20px;
}

.tmba-notice li {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 5px;
}

.tmba-footer-credit {
    text-align: center;
    position: fixed;
    bottom: 0;
    background: #fff;
    width: 100%;
    border-top: 1px solid #e7e7e7;
}

.tmba-footer-credit-text a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    gap: 8px;
    color: #000;
    padding: 10px;
}

.tmba-footer-credit-text a ,
.tmba-footer-credit-text a:hover {
    color: #000;
    text-decoration: none;
}

.tmba-footer-credit-text img {
    max-height: 15px;
    object-fit: contain;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tmba-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

@media (max-width: 600px) {
    .tmba-access-container,
    .tmba-book-access {
        max-width: 100%;
        width: 100%;
        margin: 40px auto;
        padding: 15px;
    }

    .tmba-access-box,
    .tmba-book-box {
        padding: 32px 24px;
    }

    .tmba-access-box h2 {
        font-size: 20px;
    }

    .tmba-otp-inputs {
        gap: 8px;
    }

    .tmba-otp-digit {
        width: 42px !important;
        height: 50px;
        font-size: 20px;
    }
}

.df-vrow>div {
    font-size: 14px;
}

@media (min-width: 767px) {
    .df-vrow>div {
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .tmba-flipbook {
        height: 100% !important;
    }
    .df-sidemenu {
        width: 100%;
    }

    .df-ui-sidemenu-close {
        right: 0;
    }
    .df-ui-sidemenu-close {
        z-index: 1;
        background-color: #000;
        border-radius: 0;
        color: #fff;
    }

}