/* English Course Public Styles */
:root {
    --ec-primary: #2f328b;
    --ec-primary-dark: #252870;
    --ec-secondary: #f8a428;
    --ec-secondary-dark: #e69520;
    --ec-success: #28a745;
    --ec-danger: #dc3545;
    --ec-warning: #ffc107;
    --ec-gray: #6c757d;
    --ec-light: #f8f9fa;
    --ec-border: #dee2e6;
}

/* Buttons */
.ec-btn { display: inline-block; padding: 12px 24px; border: none; border-radius: 6px; font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; text-align: center; transition: all 0.3s; }
.ec-btn-primary { background: var(--ec-primary); color: #fff; }
.ec-btn-primary:hover { background: var(--ec-primary-dark); color: #fff; }
.ec-btn-secondary { background: var(--ec-secondary); color: #fff; }
.ec-btn-secondary:hover { background: var(--ec-secondary-dark); color: #fff; }
.ec-btn-success { background: var(--ec-success); color: #fff; }
.ec-btn-success:hover { background: #218838; }
.ec-btn-large { padding: 16px 32px; font-size: 18px; }

/* Form Styles */
.ec-form { max-width: 800px; margin: 0 auto; }
.ec-form-section { margin-bottom: 30px; padding: 25px; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.ec-form-section h3 { margin: 0 0 20px; color: #333; font-size: 20px; }
.ec-form-row { margin-bottom: 20px; }
.ec-form-row label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; }
.ec-form-row input[type="text"],
.ec-form-row input[type="email"],
.ec-form-row input[type="tel"] { width: 100%; padding: 14px 16px; border: 2px solid var(--ec-border); border-radius: 8px; font-size: 16px; transition: border-color 0.3s; }
.ec-form-row input:focus { outline: none; border-color: var(--ec-primary); }
.ec-form-row .required { color: var(--ec-danger); }
.ec-form-submit { text-align: center; padding-top: 10px; }
.ec-form-inline { display: flex; gap: 10px; }
.ec-form-inline input { flex: 1; }

/* Package Type Selection */
.ec-package-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.ec-type-option input { display: none; }
.ec-type-card { display: flex; flex-direction: column; align-items: center; padding: 25px 20px; border: 2px solid var(--ec-border); border-radius: 10px; cursor: pointer; transition: all 0.3s; text-align: center; }
.ec-type-option input:checked + .ec-type-card { border-color: var(--ec-primary); background: #e8f5e9; }
.ec-type-icon { font-size: 40px; margin-bottom: 10px; }
.ec-type-name { font-size: 18px; font-weight: 600; color: #333; }
.ec-type-desc { font-size: 13px; color: #666; margin-top: 5px; }

/* Package Selection */
.ec-packages-list { display: grid; gap: 12px; }
.ec-package-option input { display: none; }
.ec-package-card { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border: 2px solid var(--ec-border); border-radius: 8px; cursor: pointer; transition: all 0.3s; }
.ec-package-option input:checked + .ec-package-card { border-color: var(--ec-primary); background: #e8f5e9; }
.ec-package-card:hover { border-color: #aaa; }
.ec-package-name { font-weight: 600; font-size: 16px; }
.ec-package-price { font-weight: 700; color: var(--ec-primary); font-size: 18px; }
.ec-package-desc { font-size: 13px; color: #666; flex-basis: 100%; margin-top: 8px; }

/* Payment Popup */
.ec-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; align-items: center; justify-content: center; }
.ec-popup-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.ec-popup-content { position: relative; background: #fff; border-radius: 10px; padding: 15px 18px; max-width: 400px; width: 95%; max-height: 95vh; overflow-y: auto; }
.ec-popup-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; background: none; border: none; font-size: 20px; cursor: pointer; color: #999; line-height: 30px; text-align: center; z-index: 10; }
.ec-popup-close:hover { color: #333; }
.ec-payment-info h2, .ec-quick-register-form h2 { text-align: center; margin: 0 0 3px; font-size: 16px; }
.ec-order-code { text-align: center; color: #666; margin-bottom: 8px; font-size: 13px; }
.ec-qr-section { text-align: center; margin: 8px 0; }
.ec-qr-section img { max-width: 150px; border-radius: 5px; }
.ec-bank-info { background: var(--ec-light); padding: 10px 12px; border-radius: 6px; margin: 8px 0; }
.ec-bank-info h4 { margin: 0 0 6px; font-size: 13px; }
.ec-bank-info table { width: 100%; }
.ec-bank-info td { padding: 3px 0; font-size: 12px; vertical-align: middle; }
.ec-bank-info td:first-child { color: #666; width: 32%; }
.ec-amount { color: var(--ec-danger); font-size: 14px; font-weight: 600; }
.ec-copy-btn { padding: 2px 6px; font-size: 10px; background: var(--ec-secondary); color: #fff; border: none; border-radius: 3px; cursor: pointer; margin-left: 4px; text-transform: uppercase; }
.ec-copy-btn:hover { background: #1976D2; }
.ec-payment-actions { text-align: center; margin-top: 10px; }
.ec-payment-actions .ec-btn { padding: 8px 16px; font-size: 13px; }

/* Quick Register Popup */
.ec-selected-package { background: linear-gradient(135deg, var(--ec-primary), var(--ec-primary-dark)); color: #fff; padding: 10px 12px; border-radius: 6px; margin: 8px 0 12px; text-align: center; }
.ec-selected-package-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.ec-selected-package-price { font-size: 18px; font-weight: 700; }
.ec-quick-register-form .ec-form-row { margin-bottom: 10px; }
.ec-quick-register-form .ec-form-row label { display: block; margin-bottom: 4px; font-weight: 500; color: #333; font-size: 13px; }
.ec-quick-register-form .ec-form-row input { width: 100%; padding: 8px 10px; border: 1px solid var(--ec-border); border-radius: 5px; font-size: 13px; transition: border-color 0.3s; box-sizing: border-box; }
.ec-quick-register-form .ec-form-row input:focus { outline: none; border-color: var(--ec-primary); }
.ec-quick-register-form .ec-form-submit { margin-top: 12px; text-align: center; }
.ec-quick-register-form .ec-form-submit .ec-btn { padding: 8px 16px; font-size: 13px; margin-bottom: 0; }

/* Thank you */
.ec-thank-you { text-align: center; padding: 15px 0; }
.ec-thank-you h2 { font-size: 18px; margin-bottom: 8px; }
.ec-thank-you p { font-size: 13px; margin: 4px 0; }
.ec-success-icon { width: 50px; height: 50px; background: var(--ec-success); color: #fff; font-size: 28px; line-height: 50px; border-radius: 50%; margin: 0 auto 10px; }

/* Order Lookup */
.ec-order-lookup-wrapper { max-width: 600px; margin: 0 auto; }
.ec-lookup-result { margin-top: 20px; padding: 20px; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.ec-info-table { width: 100%; }
.ec-info-table td { padding: 10px 0; border-bottom: 1px solid #eee; }
.ec-info-table td:first-child { font-weight: 500; color: #666; width: 40%; }
.ec-error-message { margin-top: 20px; padding: 15px; background: #f8d7da; color: #721c24; border-radius: 8px; }

/* Package Grid */
.ec-package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.ec-package-item { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.3s; display: flex; flex-direction: column; }
.ec-package-item:hover { transform: translateY(-5px); }
.ec-package-header { padding: 12px 15px; text-align: center; background: linear-gradient(135deg, var(--ec-primary), var(--ec-primary-dark)); color: #fff; }
.ec-package-offline .ec-package-header { background: linear-gradient(135deg, #e91e63, #c2185b); }
.ec-package-type { color: #fff; }
.ec-package-header h3 { margin: 5px 0; font-size: 20px; color: #fff; }
.ec-package-header .ec-package-price { font-size: 24px; font-weight: 700; color: #fff; }
.ec-package-body { padding: 20px; flex: 1; }
.ec-package-description { margin: 0 0 15px; line-height: 1.6; color: #555; }
.ec-package-description p { margin: 0 0 10px; }
.ec-package-description p:last-child { margin-bottom: 0; }
.ec-package-features { margin: 15px 0 0; }
.ec-package-features ul, .ec-package-features ol { list-style: none; padding: 0; margin: 0; }
.ec-package-features li { padding: 8px 0 8px 25px; position: relative; }
.ec-package-features li:before { content: "✓"; position: absolute; left: 0; color: var(--ec-success); font-weight: bold; }
.ec-package-footer { padding: 0 20px 20px; text-align: center; margin-top: auto; }
.ec-package-footer .ec-btn { width: 100%; margin-bottom: 0; }

/* Package Grid New Style */
.ec-package-grid-new { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ec-package-grid-new .ec-package-item { border-radius: 16px; overflow: hidden; box-shadow: none; display: flex; flex-direction: column; }
.ec-package-grid-new .ec-package-item:hover { transform: none; }
.ec-package-header-new { padding: 20px 20px 15px; }
.ec-package-header-new h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 5px; }
.ec-package-header-new h3 .ec-arrow { font-size: 24px; font-weight: 400; }
.ec-package-description-new { color: #fff; font-size: 14px; line-height: 1.5; margin-bottom: 5px; opacity: 0.95; }
.ec-package-description-new p { margin: 0; }
.ec-package-price-new { color: #fff; font-size: 14px; font-style: italic; opacity: 0.9; }
.ec-package-image-wrapper { position: relative; width: 100%; padding-top: 56.25%; /* 16:9 ratio */ }
.ec-package-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; }
.ec-package-image-placeholder { background: rgba(255,255,255,0.1); }
.ec-btn-register { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); background: #fff; color: #333; border: none; padding: 10px 25px; border-radius: 25px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s; white-space: nowrap; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.ec-btn-register:hover { background: #f5f5f5; transform: translateX(-50%) scale(1.05); }

@media (max-width: 1024px) {
    .ec-package-grid-new { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ec-package-grid-new { grid-template-columns: 1fr; }
    .ec-package-header-new h3 { font-size: 20px; }
}

/* Test Interface */
.ec-test-wrapper { max-width: 900px; margin: 0 auto; }
.ec-test-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: #fff; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.ec-test-info h2 { margin: 0 0 5px; }
.ec-test-timer { background: var(--ec-primary); color: #fff; padding: 15px 25px; border-radius: 8px; text-align: center; }
.ec-timer-label { display: block; font-size: 12px; opacity: 0.9; }
.ec-timer-value { font-size: 28px; font-weight: 700; }
.ec-timer-warning { background: var(--ec-danger) !important; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.ec-start-box { background: #fff; padding: 40px; border-radius: 10px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.ec-start-box h3 { margin-bottom: 20px; }
.ec-start-box ul { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; max-width: 300px; margin-left: auto; margin-right: auto; }
.ec-start-box li { padding: 10px 0; border-bottom: 1px solid #eee; }
.ec-warning { color: var(--ec-warning); background: #fff8e1; padding: 15px; border-radius: 8px; margin: 20px 0; }

.ec-questions-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px; background: #fff; border-radius: 10px; margin-bottom: 20px; }
.ec-nav-btn { width: 40px; height: 40px; border: 2px solid var(--ec-border); background: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.2s; }
.ec-nav-btn:hover { border-color: var(--ec-primary); }
.ec-nav-btn.active { background: var(--ec-primary); color: #fff; border-color: var(--ec-primary); }
.ec-nav-btn.answered { background: #e8f5e9; border-color: var(--ec-success); }
.ec-nav-btn.answered.active { background: var(--ec-primary); }

.ec-question { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.ec-question-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.ec-q-number { font-weight: 600; color: var(--ec-primary); }
.ec-q-skill { background: #e3f2fd; color: #1565c0; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.ec-audio { margin: 15px 0; }
.ec-audio audio { width: 100%; }
.ec-image { margin: 15px 0; text-align: center; }
.ec-image img { max-width: 100%; border-radius: 8px; }
.ec-question-content { font-size: 18px; line-height: 1.6; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #eee; }

.ec-answers { display: grid; gap: 12px; }
.ec-answer-option { display: flex; align-items: center; padding: 15px 20px; border: 2px solid var(--ec-border); border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.ec-answer-option:hover { border-color: var(--ec-primary); background: #f8f9fa; }
.ec-answer-option input { display: none; }
.ec-answer-option input:checked + .ec-answer-key { background: var(--ec-primary); color: #fff; }
.ec-answer-option input:checked ~ .ec-answer-text { font-weight: 500; }
.ec-answer-key { width: 32px; height: 32px; background: #eee; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; margin-right: 15px; transition: all 0.2s; }
.ec-answer-text { flex: 1; }

.ec-test-actions { display: flex; justify-content: space-between; margin-top: 20px; padding: 20px; background: #fff; border-radius: 10px; }
.ec-test-actions .ec-btn { min-width: 120px; }
.ec-test-actions .ec-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ec-result-box { background: #fff; padding: 40px; border-radius: 10px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.ec-result-box h2, .ec-result-box h3 { margin-bottom: 20px; }
.ec-score-display { margin: 30px 0; }
.ec-score { font-size: 24px; margin-bottom: 10px; }
.ec-score strong { font-size: 36px; color: var(--ec-primary); }
.ec-result-status { display: inline-block; padding: 10px 25px; border-radius: 25px; font-weight: 600; margin-top: 15px; }
.ec-result-status.passed { background: #d4edda; color: #155724; }
.ec-result-status.failed { background: #f8d7da; color: #721c24; }

.ec-error-box { background: #f8d7da; color: #721c24; padding: 30px; border-radius: 10px; text-align: center; }
.ec-error-box h3 { margin: 0 0 10px; }

/* Fill in blank & Essay styles */
.ec-fill-blank-input { margin: 10px 0; }
.ec-fill-blank-input input.ec-text-answer { width: 100%; padding: 14px 16px; border: 2px solid var(--ec-border); border-radius: 8px; font-size: 16px; transition: border-color 0.3s; }
.ec-fill-blank-input input.ec-text-answer:focus { outline: none; border-color: var(--ec-primary); }

/* Fill blank - câu hỏi trên, input dưới */
.ec-fill-question-text { font-size: 18px; line-height: 1.6; margin-bottom: 15px; }
.ec-fill-answer-box { margin-top: 10px; }
.ec-fill-answer-box .ec-inline-blank {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    text-align: left;
}

/* Fill blank inline input */
.ec-fill-blank-content { font-size: 18px; line-height: 2.2; }
.ec-inline-blank {
    display: inline-block;
    min-width: 100px;
    max-width: 200px;
    padding: 6px 12px;
    border: 2px solid var(--ec-primary);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    background: #fff;
    vertical-align: middle;
    margin: 0 4px;
    transition: all 0.2s;
}
.ec-inline-blank:focus {
    outline: none;
    border-color: var(--ec-primary-dark);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}
.ec-inline-blank::placeholder {
    color: #aaa;
    font-weight: normal;
}

.ec-essay-input { margin: 10px 0; }
.ec-essay-input textarea.ec-essay-answer { width: 100%; padding: 14px 16px; border: 2px solid var(--ec-border); border-radius: 8px; font-size: 16px; resize: vertical; min-height: 150px; transition: border-color 0.3s; }
.ec-essay-input textarea.ec-essay-answer:focus { outline: none; border-color: var(--ec-primary); }

/* Word Order & Letter Order styles */
.ec-word-order-input,
.ec-letter-order-input { margin: 10px 0; }

/* Answer area - vùng hiển thị đáp án đã chọn */
.ec-answer-area {
    min-height: 60px;
    padding: 15px;
    background: #e8f5e9;
    border: 2px dashed var(--ec-primary);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.ec-answer-area:empty::before {
    content: 'Click on words/letters below to build your answer...';
    color: #999;
    font-style: italic;
}

/* Selected items trong answer area */
.ec-selected-item {
    display: inline-block;
    padding: 10px 16px;
    background: var(--ec-primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.ec-selected-item:hover {
    background: var(--ec-danger);
    transform: scale(1.05);
}

/* Scrambled items - danh sách từ/chữ cái xáo trộn */
.ec-scrambled-items.ec-clickable-items {
    background: #f0f4f8;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ec-scrambled-item {
    display: inline-block;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid var(--ec-border);
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.ec-scrambled-item:hover:not(.ec-item-used) {
    border-color: var(--ec-primary);
    background: #e8f5e9;
    transform: scale(1.05);
}
.ec-scrambled-item.ec-item-used {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Letter order - chữ cái nhỏ hơn */
.ec-letter-order-input .ec-selected-item,
.ec-letter-order-input .ec-scrambled-item {
    padding: 10px 14px;
    min-width: 40px;
    text-align: center;
    font-size: 18px;
    text-transform: lowercase;
}

/* Word order - từ */
.ec-word-order-input .ec-selected-item,
.ec-word-order-input .ec-scrambled-item {
    font-size: 16px;
}

/* Legacy scrambled items (non-clickable) */
.ec-scrambled-items:not(.ec-clickable-items) {
    background: #f0f4f8;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    letter-spacing: 1px;
    text-align: center;
}

.ec-hint { font-size: 13px; color: #666; margin-top: 10px; font-style: italic; }

/* Multiple choice checkbox style */
.ec-answer-option input[type="checkbox"] + .ec-answer-key { border-radius: 4px; }
.ec-answer-option input[type="checkbox"]:checked + .ec-answer-key { background: var(--ec-primary); color: #fff; }
.ec-answer-option input[type="checkbox"]:checked + .ec-answer-key:before { content: "✓"; }

/* True/False style */
.ec-answer-option.ec-tf-option { justify-content: flex-start; }
.ec-answer-option.ec-tf-option .ec-answer-text { font-weight: 500; }

/* Essay notice in result */
.ec-essay-notice { background: #fff3cd; color: #856404; padding: 12px 20px; border-radius: 8px; margin-top: 15px; }

/* ============ BUILDER BLOCKS ============ */
.ec-block { margin-bottom: 25px; }
.ec-block:last-child { margin-bottom: 0; }

/* Header block */
.ec-block-header { margin-top: 30px; }
.ec-block-header:first-child { margin-top: 0; }
.ec-exam-header { color: #333; margin: 0 0 15px; padding-bottom: 10px; border-bottom: 2px solid var(--ec-primary); }
.ec-exam-header.h1, h1.ec-exam-header { font-size: 28px; }
.ec-exam-header.h2, h2.ec-exam-header { font-size: 24px; }
.ec-exam-header.h3, h3.ec-exam-header { font-size: 20px; }
.ec-exam-header.h4, h4.ec-exam-header { font-size: 18px; }

/* Text block */
.ec-block-text { background: #f8f9fa; padding: 20px; border-radius: 8px; border-left: 4px solid var(--ec-secondary); }
.ec-exam-text { line-height: 1.7; color: #444; }
.ec-exam-text p { margin: 0 0 10px; }
.ec-exam-text p:last-child { margin-bottom: 0; }

/* Audio block */
.ec-block-audio { background: #e3f2fd; padding: 20px; border-radius: 8px; text-align: center; }
.ec-audio-title { margin: 0 0 12px; font-weight: 600; color: #1565c0; }
.ec-block-audio audio { width: 100%; max-width: 500px; }

/* Image block */
.ec-block-image { text-align: center; }
.ec-block-image .ec-image-frame {
    display: inline-block;
    width: 100%;
    max-width: 500px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid var(--ec-border);
    border-radius: 8px;
    box-sizing: border-box;
    position: relative;
}
.ec-block-image .ec-image-frame::before {
    content: '';
    display: block;
    padding-top: 100%; /* 1:1 aspect ratio */
}
.ec-block-image .ec-image-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.ec-block-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}
.ec-image-caption { margin: 10px 0 0; font-size: 14px; color: #666; font-style: italic; }

/* Question block */
.ec-block-question { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* Question group block */
.ec-block-question-group { background: #fafafa; padding: 25px; border-radius: 10px; border: 1px solid var(--ec-border); }
.ec-group-context { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid var(--ec-warning); line-height: 1.7; }
.ec-group-question { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.ec-group-question:last-child { margin-bottom: 0; }

/* Question inside blocks */
.ec-block-question .ec-question,
.ec-group-question .ec-question { box-shadow: none; padding: 0; }

@media (max-width: 768px) {
    .ec-test-header { flex-direction: column; gap: 15px; text-align: center; }
    .ec-package-types { grid-template-columns: 1fr; }
    .ec-test-actions { flex-wrap: wrap; gap: 10px; }
    .ec-test-actions .ec-btn { flex: 1; min-width: auto; }

    /* Word/Letter order responsive */
    .ec-answer-area { min-height: 50px; padding: 10px; gap: 6px; }
    .ec-selected-item { padding: 8px 12px; font-size: 14px; }
    .ec-scrambled-items.ec-clickable-items { padding: 12px; gap: 8px; }
    .ec-scrambled-item { padding: 8px 12px; font-size: 14px; }
    .ec-letter-order-input .ec-selected-item,
    .ec-letter-order-input .ec-scrambled-item { padding: 8px 10px; min-width: 35px; font-size: 16px; }
}

/* Guest Registration Form */
.ec-guest-register { display: flex; justify-content: center; align-items: center; min-height: 60vh; padding: 20px; }
.ec-guest-register-box { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 30px 35px; max-width: 450px; width: 100%; }
.ec-guest-register-box h2 { text-align: center; margin: 0 0 10px; color: var(--ec-primary); font-size: 24px; }
.ec-guest-desc { text-align: center; color: #666; margin-bottom: 25px; font-size: 14px; }
.ec-guest-form .ec-form-row { margin-bottom: 18px; }
.ec-guest-form .ec-form-row:last-child { margin-bottom: 0; }
.ec-guest-form label { display: block; margin-bottom: 6px; font-weight: 500; color: #333; font-size: 14px; }
.ec-guest-form label .required { color: #dc3545; }
.ec-guest-form input[type="text"],
.ec-guest-form input[type="email"],
.ec-guest-form input[type="tel"],
.ec-guest-form select { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.ec-guest-form input:focus,
.ec-guest-form select:focus { border-color: var(--ec-primary); box-shadow: 0 0 0 3px rgba(47,50,139,0.1); outline: none; }
.ec-guest-form .ec-btn-block { width: 100%; padding: 14px; font-size: 16px; }
.ec-exam-info-box { background: var(--ec-light); padding: 15px; border-radius: 8px; margin-bottom: 18px; border-left: 4px solid var(--ec-primary); }
.ec-exam-info-box strong { display: block; color: var(--ec-primary); margin-bottom: 5px; }
.ec-exam-info-box span { color: #666; font-size: 13px; }

/* Exams List */
.ec-exams-wrapper { max-width: 1200px; margin: 0 auto; padding: 20px; }
.ec-exams-header { text-align: center; margin-bottom: 30px; }
.ec-exams-header h2 { color: var(--ec-primary); font-size: 28px; margin: 0 0 10px; }
.ec-exams-header p { color: #666; font-size: 16px; margin: 0; }
.ec-exams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.ec-exam-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.ec-exam-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.ec-exam-card-header { background: linear-gradient(135deg, var(--ec-primary) 0%, var(--ec-primary-dark) 100%); padding: 20px; }
.ec-exam-card-header h3 { color: #fff; margin: 0; font-size: 20px; font-weight: 600; }
.ec-exam-card-body { padding: 20px; flex: 1; }
.ec-exam-desc { color: #666; font-size: 14px; margin: 0 0 15px; line-height: 1.5; }
.ec-exam-info { list-style: none; padding: 0; margin: 0; }
.ec-exam-info li { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.ec-exam-info li:last-child { border-bottom: none; }
.ec-exam-info .ec-info-icon { font-size: 16px; margin-right: 10px; width: 24px; text-align: center; }
.ec-exam-info .ec-info-label { color: #666; margin-right: 5px; }
.ec-exam-info strong { color: var(--ec-primary); }
.ec-exam-card-footer { padding: 15px 20px 20px; margin-top: auto; }
.ec-exam-card-footer .ec-btn { margin-bottom: 0; }
.ec-no-exams { text-align: center; padding: 50px 20px; background: #f9f9f9; border-radius: 12px; }
.ec-no-exams p { color: #666; font-size: 16px; margin: 0; }

/* Exam Register Popup */
#ec-exam-register-popup .ec-popup-content { max-width: 420px; padding: 20px 25px; }
.ec-exam-register-form h2 { text-align: center; color: var(--ec-primary); margin: 0 0 10px; font-size: 22px; }
.ec-exam-selected { text-align: center; color: #666; margin-bottom: 20px; font-size: 14px; }
.ec-exam-selected strong { color: var(--ec-secondary); }
#ec-exam-register-form .ec-form-row { margin-bottom: 15px; }
#ec-exam-register-form .ec-form-row:last-child { margin-bottom: 0; }
#ec-exam-register-form label { display: block; margin-bottom: 5px; font-weight: 500; color: #333; font-size: 14px; }
#ec-exam-register-form label .required { color: #dc3545; }
#ec-exam-register-form input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; transition: border-color 0.2s; box-sizing: border-box; }
#ec-exam-register-form input:focus { border-color: var(--ec-primary); outline: none; box-shadow: 0 0 0 3px rgba(47,50,139,0.1); }

@media (max-width: 768px) {
    .ec-exams-grid { grid-template-columns: 1fr; }
    .ec-exams-header h2 { font-size: 24px; }
}
