﻿/* Thiết kế tối ưu Mobile-Only */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    justify-content: center;
}

.mobile-container {
    width: 100%;
    max-width: 480px;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Banner Header */
.header-banner {
    background: linear-gradient(135deg, #cc0000 0%, #ff3333 100%);
    color: #ffffff;
    padding: 15px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #ffcc00;
}

.logo-mttq {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    padding: 2px;
    margin-right: 12px;
    flex-shrink: 0;
    object-fit: contain; /* Đảm bảo hình không bị méo, hiển thị trọn vẹn logo */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Hiệu ứng mượt mà khi di chuột */
}

.header-text h1 {
    font-size: 13px;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.3;
    color: #fff;
}

.header-text p {
    font-size: 13px;
    margin: 3px 0 0 0;
    color: #ffcc00;
    font-weight: bold;
}

.main-title {
    font-size: 14px;
    color: #cc0000;
    text-align: center;
    font-weight: bold;
    margin: 15px 10px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Khối Form nhập liệu */
.form-section {
    margin: 0 12px 15px 12px;
    border: 1px solid #cc0000;
    border-radius: 4px;
    overflow: hidden;
}

.section-header {
    background-color: #cc0000;
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
}

.form-group {
    padding: 10px 12px;
    background-color: #fff;
}

    .form-group label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 5px;
        color: #444;
    }

        .form-group label span {
            color: red;
        }

    .form-group input, .form-group textarea {
        width: 100%;
        padding: 8px;
        font-size: 13px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .form-group textarea {
        resize: vertical;
        min-height: 80px;
    }

/* Vùng chọn ảnh gửi đi */
.image-upload-wrapper {
    position: relative;
    border: 2px dashed #bbb;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
}

    .image-upload-wrapper input[type="file"] {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

.upload-icon {
    font-size: 24px;
    color: #cc0000;
    margin-bottom: 5px;
}

.upload-text {
    font-size: 12px;
    color: #666;
}

/* Vùng hiển thị ảnh phản ánh xem trước */
.image-preview-container {
    display: none;
    margin-top: 10px;
    text-align: center;
}

    .image-preview-container img {
        max-width: 100%;
        max-height: 120px;
        border: 1px solid #ddd;
        border-radius: 4px;
        cursor: pointer; /* Hiển thị ngón tay báo hiệu bấm được */
    }

.hint-click {
    font-size: 11px;
    color: #0066cc;
    margin-top: 4px;
    font-style: italic;
}

/* Nút gửi */
.btn-submit {
    background-color: #cc0000;
    color: white;
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    width: calc(100% - 24px);
    margin: 5px 12px 20px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

/* Phần Trợ lý nghiệp vụ (Mã QR) */
.qr-section {
    background-color: #fcfcfc;
    border-top: 2px solid #ddd;
    padding: 15px 12px;
}

.qr-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
    border-left: 4px solid #cc0000;
    padding-left: 8px;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.qr-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer; /* Chạm để phóng to */
}

/* Mã QR được dựng bằng thẻ IMG để dễ dàng lấy SRC phóng to */
.qr-image-style {
    width: auto;
    height: 90px;
    margin-bottom: 8px;
    border: 1px solid #eee;
}

.qr-item p {
    font-size: 11px;
    font-weight: bold;
    color: #cc0000;
    margin: 0;
    line-height: 1.3;
    text-transform: uppercase;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =======================================================
           BỘ PHÓNG TO HÌNH ẢNH TOÀN MÀN HÌNH (IMAGE ZOOM MODAL)
        ======================================================= */
.image-zoom-modal {
    display: none; /* Mặc định ẩn */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Nền đen mờ toàn màn hình */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 75vh;
    object-fit: contain;
    border: 2px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.modal-caption {
    color: #fff;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    padding: 0 20px;
    font-weight: bold;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer nhà nước */
.footer {
    background-color: #333;
    color: #bbb;
    text-align: center;
    font-size: 11px;
    padding: 15px;
    margin-top: auto;
    line-height: 1.4;
}

a {
    text-decoration: none;
}
