﻿* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background: #f2f2f2;
  color: #444;
}

.overlay {
   /* background: rgba(0,0,0,.5);
    z-index: 9999;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;*/
    display: none;
    position: fixed;
    inset: 0;  top:0; right:0; bottom:0; left:0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.loader {
    position: absolute;
    left: 53%;
    top: 47%;
    z-index: 1;
    width: 50px;
    height: 50px;
    margin: -76px 0 0 -76px;
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #ffc239;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.text-danger {
    color: red !important;
}
/* HEADER */
.header {
    background: #e9e9e9;
    padding: 30px 0;
    text-align: center;
}

.header-container {
    max-width: 1100px;
    margin: 10px auto;
    padding: 0 20px;
    text-align: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 48px;
  color: #f4b400;
  font-weight: bold;
}

.logo-text strong {
  font-size: 26px;
}

.logo-text span {
  display: block;
  font-size: 18px;
  color: #777;
}

/* NOTICE */
.notice-bar {
  background: #f4b400;
  text-align: center;
  font-weight: bold;
  padding: 12px;
  font-size: 14px;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: 10px auto;
  padding: 0 20px;
}

.required-note {
  font-size: 13px;
  margin-bottom: 10px;
}

/* SECTION */
.section-title {
    background: white;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    margin: 10px 0 20px;
    border-color: #f4b400;
    border-width: 2px;
    border-style: solid;
}

/* GRID */
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-grid-8 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.full {
  grid-column: 1 / -1;
}

/* FORM */
.form-group label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

input, select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #cfcfcf;
  background: #fff;
  font-size: 14px;
}

/* UPLOAD */
.upload-area {
  position: relative;
}

.upload-box {
  border: 2px dashed #cfcfcf;
  border-radius: 8px;
  padding: 35px;
  text-align: center;
  font-size: 14px;
  color: #999;
  background: #fafafa;
  cursor: pointer;
  transition: 0.2s;
}

.upload-box.dragover {
  border-color: #f4b400;
  background: #fff8e1;
}

.file-list {
  margin-top: 10px;
  font-size: 13px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  /*background: #fff;*/
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #eee;
  color: #4285f4;
}

.file-item span {
  cursor: pointer;
  color: #f4b400;
  font-weight: bold;
}

/* CHECKBOX FIX */
.checkbox-group {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
    grid-column: span 5;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  accent-color: #f4b400;
  flex-shrink: 0;
}

.custom-checkbox input {
    display: none;
}

.box {
    width: 22px;
    height: 22px;
    background: white; /*#f4b400;  màu nền khi chưa tick */
    display: inline-block;
    position: relative;
    border-radius: 4px; /* bo góc */
}

.custom-checkbox input:checked + .box {
    background: #f4b400; /* màu nền khi tick */
    border-color: #2196F3;
}

.custom-checkbox input:checked + .box::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white; /* màu dấu tick */
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* CAPTCHA */
.captcha-box {
    margin-top: 25px;
    /*border: 1px solid #ccc;*/
    /*width: 300px;*/
    padding: 15px;
    border-radius: 6px;
    /* background: #fff;*/
    /*display: flex;*/
    align-items: center;
    /*gap: 10px;*/
    text-align: -webkit-center;
}

/* SUBMIT */
.submit-wrapper {
  text-align: center;
  margin: 35px 0;
}

.submit-btn {
  background: #f4b400;
  border: none;
  padding: 15px 40px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
}

.submit-btn:hover {
  background: #e2a200;
}

/* CONTACT */
.contact {
    font-size: 13px;
    border-top: 3px solid #ffc239 !important;
    padding-top: 10px;
}

.contact a {
  color: #0077cc;
}

/* FOOTER */
.footer {
  background: #f4b400;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  margin-top: 10px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .form-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .form-grid-3,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/*Select 2*/
.select2-container--default .select2-selection--multiple {
    position: relative;
    padding-right: 30px; /* chừa chỗ cho arrow */
}

.select2-selection--multiple:after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #888;
    pointer-events: none;
}

/*Submited Page*/
.submit-img-box{
    text-align: center;
    margin: 30px 0;
}

.hint-text {
    color: #4285f4;
    font-style: italic;
    font-size: 11px;
}