header#mgh-site-header,
footer#mgh-site-footer {
    display: none !important;
}
*{direction: ltr;}
.mgh-rt-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    direction: ltr;
    text-align: left;
    user-select: none;
}
.mgh-rt-wrapper input,
.mgh-rt-wrapper textarea,
.mgh-rt-wrapper select {
    user-select: text;
}
.mgh-rt-step {
    display: none;
}
.mgh-rt-step-active {
    display: block;
}
.mgh-rt-welcome-animation {
    width: 220px;
    height: 220px;
    margin: 0 auto 16px auto;
}
.mgh-rt-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}
.mgh-rt-text {
    margin-bottom: 16px;
    line-height: 1.5;
}
.mgh-rt-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 0.5rem;
    border: none;
    background: #0073aa;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.8rem;
}
.mgh-rt-button:disabled {
    opacity: 0.6;
    cursor: default;
}
.mgh-rt-form {
    width: 100%;
}
.mgh-rt-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.mgh-rt-form-field {
    flex: 1;
    min-width: 0;
}
.mgh-rt-label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: 500;
}
.mgh-rt-input,
.mgh-rt-select,
.mgh-rt-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
}
.mgh-rt-textarea {
    min-height: 180px;
    resize: vertical;
}
.mgh-rt-error {
    font-size: 12px;
    color: #d63638;
    margin-top: 4px;
}
.mgh-rt-consent-text {
    font-size: 13px;
    line-height: 1.4;
}
.mgh-rt-consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.mgh-rt-consent-wrapper input[type="checkbox"] {
    margin-top: 2px;
}
.mgh-rt-timer {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}
.mgh-rt-mcq-section {
    margin-bottom: 24px;
    border: 1px dashed #c7c7c7;
    padding: 1rem;
    border-radius: 0.4rem;
}
.mgh-rt-mcq-part-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.mgh-rt-mcq-part-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.mgh-rt-question {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.mgh-rt-question-text {
    font-size: 14px;
    margin-bottom: 4px;
}
.mgh-rt-options {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.9rem;
    flex-direction: row;
}
.mgh-rt-option-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mgh-rt-question-error {
    font-size: 12px;
    color: #d63638;
    margin-top: 4px;
}
.mgh-rt-message {
    margin-bottom: 16px;
    font-size: 14px;
}
.mgh-rt-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.mgh-rt-popup {
    background: #ffffff;
    padding: 20px;
    max-width: 420px;
    width: 90%;
    border-radius: 8px;
    box-sizing: border-box;
}
.mgh-rt-popup-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.mgh-rt-popup-text {
    font-size: 13px;
    margin-bottom: 12px;
}
.mgh-rt-popup-actions {
    text-align: right;
}
.mgh-rt-result-level {
    font-weight: 600;
}
.mgh-rt-writing-prompt {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}
.mgh-rt-button-disabled {
    display:none !important;
}

.mgh-rt-button-loading {
    opacity: 0.7;
    cursor: progress;
}

.mgh {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 91vh;
}

.mgh p {
    font-size: 0.75rem;
    color: #999999;
    font-weight: 400;
}

.mgh p > a {
    font-size: 0.8rem;
    color: #999999;
    font-weight: 400;
    text-decoration: none;
}

@media (max-width: 768px) {
    .mgh-rt-form-row {
        flex-direction: column;
    }
}
