:root { --primary-color: #0056b3; --text-color: #333; --card-bg: #f8f9fa; --gform-purple: #673ab7; --gform-bg: #f0ebf8; }
* { box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%); display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; margin: 0; padding: 16px; overscroll-behavior-y: none; }
.container { background: white; padding: 24px 16px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); width: 100%; max-width: 540px; animation: fadeIn 0.6s ease-out; position: relative; }

.logo { display: block; margin: 0 auto 12px; width: 75%; max-width: 320px; cursor: pointer; transition: transform 0.2s; }
.logo:hover { transform: scale(1.02); }
.header-text { text-align: center; margin-bottom: 20px; }
.header-text h2 { color: var(--primary-color); font-size: 18px; line-height: 1.5; margin: 0; }
.subtitle-line { display: block; font-size: 16px; }
.screen { animation: fadeIn 0.3s ease-out; }
.hidden { display: none !important; }

.input-group { margin-bottom: 14px; }
.input-group.half { flex: 1; margin-bottom: 0; }
label { font-weight: 600; font-size: 13px; color: #555; display: block; margin-bottom: 5px; text-align: left; }
input[type="text"], input[type="password"], select, textarea, input[type="file"] { width: 100%; padding: 12px 14px; border: 2px solid #ddd; border-radius: 8px; font-size: 14px; transition: border-color 0.3s; font-family: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-color); outline: none; }
input[readonly] { background-color: #e9ecef; cursor: not-allowed; color: #444; font-weight: bold; }
textarea { resize: vertical; }

.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { padding-right: 40px; }
.toggle-password { position: absolute; right: 12px; cursor: pointer; font-size: 16px; user-select: none; opacity: 0.6; transition: opacity 0.2s; }
.toggle-password:hover { opacity: 1; }

button { padding: 12px; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 15px; color: white; transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s; text-align: center; display: inline-block; }
button:hover { transform: translateY(-2px); }
.btn-primary { background-color: var(--primary-color); width: 100%; }
.btn-primary:hover { background-color: #004494; }
.btn-danger { background-color: #dc3545; width: 100%; }
.btn-danger:hover { background-color: #c82333; }
.btn-secondary { background-color: #6c757d; color: white; padding: 8px 12px; font-size: 14px; }

#user-name { color: #e65100; font-size: 16px; text-transform: uppercase; text-shadow: 1px 1px 2px rgba(0,0,0,0.05); }
#btn-logout { width: auto !important; min-width: 140px; margin: 20px auto 0; display: block; box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2); }

.menu-buttons-container { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.btn-menu { background-color: #f0f7ff; color: var(--primary-color); border: 1px solid #cce5ff; padding: 14px 16px; font-size: 15px; width: 100%; display: block; text-align: left; border-radius: 10px; box-shadow: 0 2px 5px rgba(0, 86, 179, 0.05); }
.btn-menu:hover { background-color: var(--primary-color); color: white; box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2); }

.notice-wrapper { background-color: #ffebd6; border-radius: 8px; margin: 0 auto 20px; width: 100%; padding: 10px 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; text-align: center; }
.header-notice { color: #d9534f; font-size: 15px; font-weight: bold; margin: 0; line-height: 1.5; white-space: normal; }

.size-guide-link { color: #007bff; font-weight: bold; text-decoration: none; font-size: 12px; cursor: pointer; animation: pulseText 1.5s infinite; }
@keyframes pulseText { 0% { opacity: 1; color: #007bff; } 50% { opacity: 0.6; color: #dc3545; } 100% { opacity: 1; color: #007bff; } }
.size-guide-img { max-width: 100%; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid #ddd; }

.checkbox-group { display: flex; flex-direction: column; gap: 8px; background: #fff; padding: 10px 14px; border: 2px solid #ddd; border-radius: 8px; }
.checkbox-group.no-border { border: none; padding: 0; }
.cb-label { font-weight: normal; font-size: 14px; display: flex; align-items: center; gap: 8px; color: #333; margin: 0; cursor: pointer; }
.cb-label input { width: 16px; height: 16px; margin: 0; cursor: pointer; }

/* CSS GOOGLE FORMS CLONE */
.gform-container { background-color: var(--gform-bg); padding: 16px; border-radius: 12px; margin-top: 5px; border: 1px solid #e2d9f3; }
.gform-card { background: #fff; padding: 22px; border-radius: 8px; margin-bottom: 12px; border: 1px solid #dadce0; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.gform-header { border-top: 8px solid var(--gform-purple); text-align: center; }
.gform-header h2 { margin: 0 0 12px; font-size: 24px; color: #202124; }
.gform-subtitle { font-size: 13px; color: #444; text-transform: uppercase; font-weight: bold; margin-bottom: 15px; line-height: 1.4; }
.gform-desc { font-size: 14px; color: #5f6368; line-height: 1.5; margin: 0; text-align: justify; }
.gform-title { margin: 0 0 12px; font-size: 16px; padding-bottom: 12px; text-align: center; font-weight: bold; }

.scale-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; border: 1px solid #ccc; }
.scale-table th, .scale-table td { padding: 10px; border: 1px solid #ccc; }
.scale-table th { background-color: #f8f9fa; color: #333; font-weight: bold; text-align: center; }
.scale-table td:first-child { color: var(--gform-purple); font-weight: bold; width: 60px; text-align: center; }
.scale-table td:last-child { color: #555; }

.gform-section-title { background: #fff; padding: 10px 20px; font-weight: bold; font-size: 16px; color: #fff; background-color: var(--gform-purple); border-radius: 8px 8px 0 0; margin-top: 20px; text-align: center; }
.gform-q-title { font-size: 15px; color: #202124; font-weight: normal; margin-bottom: 15px; display: block; line-height: 1.4; }
.gform-input.line-only { border: none; border-bottom: 1px solid #d9d9d9; border-radius: 0; padding: 8px 0; background: transparent; font-weight: bold; color: #333; }
.gform-input.line-only:focus { border-bottom: 2px solid var(--gform-purple); }

.mobile-matrix { padding: 0; }
.mobile-matrix-header { display: flex; justify-content: flex-end; padding: 12px 15px 12px 0; background: #f8f9fa; border-bottom: 1px solid #ddd; border-radius: 8px 8px 0 0; }
.mobile-matrix-header span { font-weight: bold; color: #555; width: 35px; text-align: center; }
.mobile-q-row { padding: 15px; border-bottom: 1px solid #f1f3f4; background: #fff; }
.mobile-q-row:nth-child(even) { background: #fafafa; }
.mobile-q-row:last-child { border-bottom: none; border-radius: 0 0 8px 8px; }
.mobile-q-text { font-size: 14px; color: #202124; line-height: 1.5; margin-bottom: 12px; }
.mobile-q-opts { display: flex; justify-content: flex-end; }
.mobile-q-opts label { width: 35px; text-align: center; display: block; cursor: pointer; margin: 0; }
.mobile-q-opts input[type="radio"] { transform: scale(1.3); accent-color: var(--gform-purple); cursor: pointer; }

/* GIAO DIỆN MODAL BONG BÓNG MỚI CHUYÊN NGHIỆP */
.overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.4); z-index: 999; display:flex; flex-direction:column; justify-content:center; align-items:center; backdrop-filter: blur(3px); }
.modal-box { background: white; padding: 24px; border-radius: 12px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.25); max-width: 320px; width: 90%; animation: fadeIn 0.3s ease-out; }
.modern-modal { border-radius: 24px; padding: 30px 20px; position: relative; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 28px; color: #999; cursor: pointer; transition: color 0.2s; background: none; border: none; padding: 0; line-height: 1; }
.close-btn:hover { color: #dc3545; }
.modal-icon-header { font-size: 45px; margin-bottom: 10px; }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }

.spinner { border: 4px solid #f3f3f3; border-top: 4px solid var(--primary-color); border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; margin-bottom: 10px; }
#loading-text { text-align: center; padding: 0 20px; line-height: 1.5; font-weight: bold; color: white; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
#loading.overlay { background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }

.support-footer { text-align: center; margin-top: 25px; padding-top: 15px; font-size: 14px; color: #555; }
.zalo-btn { display: inline-block; margin-top: 6px; background-color: #0068ff; color: #ffffff !important; font-size: 15px; font-weight: bold; letter-spacing: 1px; text-decoration: none; padding: 8px 20px; border-radius: 20px; box-shadow: 0 4px 10px rgba(0,104,255,0.3); transition: background-color 0.2s, box-shadow 0.2s; }
.zalo-btn:hover { background-color: #0052cc; box-shadow: 0 0 15px rgba(0,104,255,0.5); }
.btn-back { background-color: #e2e8f0; color: var(--primary-color); padding: 8px 16px; border-radius: 20px; border: none; margin-bottom: 15px; font-weight: bold; font-size: 14px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: all 0.2s; display: inline-block; }
.btn-back:hover { background-color: var(--primary-color); color: white; transform: translateY(-2px); }
.flex-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-title { text-align: center; color: #dc3545; font-size: 14px; font-weight: bold; text-transform: uppercase; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 2px dashed #ddd; }
.info-block { background: var(--card-bg); border-left: 4px solid var(--primary-color); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
.info-label { font-size: 11px; font-weight: bold; color: #888; text-transform: uppercase; letter-spacing: 0.4px; }
.info-value { font-size: 15px; color: #222; font-weight: 500; word-break: break-word; }
.name-value { font-size: 16px; font-weight: bold; color: #0d6efd; text-transform: uppercase; }
.info-row-2 { display: flex; gap: 8px; margin-bottom: 14px; }
.info-row-3 { display: flex; gap: 6px; }
.info-row-3 .third { flex: 1; margin-bottom: 8px; min-width: 0; }
.date-row .third:nth-child(1) { flex: 0 0 22%; }
.date-row .third:nth-child(2), .date-row .third:nth-child(3) { flex: 1; }
.highlight-section .info-block { border-left-color: #28a745; background-color: #eafaf0; }
.history-card { background: #fff; border-left: 4px solid #17a2b8; padding: 12px; margin-bottom: 12px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); font-size: 14px; text-align: left; }
.history-card .time { font-size: 12px; color: #777; margin-bottom: 6px; font-weight: 600; }
.history-card .status { font-weight: bold; color: #d39e00; }
.error { color: #dc3545; text-align: center; background: #f8d7da; padding: 10px; border-radius: 8px; margin-top: 15px; font-size: 14px; font-weight: bold; }
.welcome-text { text-align: center; color: var(--primary-color); margin-bottom: 25px; font-size: 18px; font-weight: bold; }
.mt-3 { margin-top: 15px; } .mt-2 { margin-top: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
