@media (min-width: 769px) {
  #tmw-quiz-app form#tmwQuizForm{padding-top:40px}
}
@media (max-width: 768px) {
  #tmw-quiz-app form#tmwQuizForm #quiz-cover-page{padding-left:10%;padding-right:10%;}
}


#tmw-loading{padding-top:200px}

.tmw-q-intro {
    font-size: 25px;
    font-style: italic;
}

.tmw-step {
    display: none;
}

.tmw-step.active:first-child {
    display: block;
    animation: fadeIn 2s;
}

.tmw-step.active {
    display: block;
    animation: fadeIn 3s;
}

.tmw-card {
    text-align: center;
}

.tmw-main-img {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
    height: auto;
}

.tmw-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.tmw-subtitle {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.tmw-title-sub {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2271b1;
}

.tmw-content {
    color: #444;
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
    font-size: 25px;
    font-style: italic;
}

.tmw-lead-box {
    margin-bottom: 40px;
}

.tmw-input-group {
    margin-bottom: 15px;
}

.tmw-input-group label {
    display: block;
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 5px;
    color: #000;
    text-align: left;
}

.tmw-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #BCE8EA;
    border-radius: 8px;
    font-family: kanit;
    font-size: 20px;
    font-weight: 300;
}

.tmw-input-group input.tmw-input-error {
    border-color: #e74c3c;
}

.tmw-error {
    display: block;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 4px;
    min-height: 0;
    text-align: left;
}

.tmw-btn-next {
    background: #F26921 !important;
    color: #fff;
    border: none;
    padding: 5px 40px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 300;
    font-size: 1.5rem;
    font-family: kanit;
}

.tmw-btn-next:hover {
    background: #F26921;
}

.tmw-progress {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
    display: none;
}

.tmw-q-text {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.3;
    font-style: italic;
}

.tmw-ans-item {
    cursor: pointer;
    display: block;
    margin-bottom: 12px;
}

.tmw-ans-item input {
    display: none;
}

.tmw-ans-box {
    padding: 15px;
    border-radius: 35px;
    transition: 0.2s;
    font-size: 1.35rem;
    background: #F26921;
    color: #fff;
    font-weight: 300;
}

.tmw-ans-item:hover .tmw-ans-box {}

.tmw-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.text-center {
    text-align: center;
}

/* ==============================
   FULL SCREEN DARK MODE
============================== */

body.tmw-dark-active {
    background: #000 !important;
}

.tmw-step.dark-mode {
    background: #000;
    color: #fff;
    min-height: 100vh;
    padding: 60px 20px;
    transition: 4s;
}

.tmw-step.dark-mode * {
    color: #fff !important;
}

.tmw-step.dark-mode .tmw-ans-box {
    background: #fff;
    color: #000 !important;
}

/* =========================
   GLOBAL FULL DARK MODE
========================= */

body.tmw-dark-active * {
    background-color: transparent;
}

body.tmw-dark-active,
body.tmw-dark-active h1,
body.tmw-dark-active h2,
body.tmw-dark-active h3,
body.tmw-dark-active h4,
body.tmw-dark-active p,
body.tmw-dark-active span,
body.tmw-dark-active div,
body.tmw-dark-active a {
    color: #fff !important;
}

/* ปุ่มคำตอบยังขาวอ่านง่าย */
body.tmw-dark-active .tmw-ans-box {
    background: #fff !important;
    color: #000 !important;
}

/* ซ่อนพื้นหลัง theme */
body.tmw-dark-active .site,
body.tmw-dark-active #page,
body.tmw-dark-active .container,
body.tmw-dark-active .elementor-element,
body.tmw-dark-active header,
body.tmw-dark-active footer {
    background: #000 !important;
    background-color: #000 !important;
    background-image: none !important;
    animation: fadeIn 1s;
}

.logow {
    display: none;
}

body.tmw-dark-active .logow {
    display: block !important;
}

body.tmw-dark-active .logob {
    display: none;
}

@keyframes pulse {
    0% {
        opacity: 0.5
    }

    50% {
        opacity: 1
    }

    100% {
        opacity: 0.5
    }
}
