/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;

  font-family: Arial, Helvetica, sans-serif;

  color: #343434;

  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* =========================================================
   PAGE
========================================================= */

.page {
  width: 100%;
}

/* =========================================================
   HEADER
========================================================= */

.top-header {
  width: 100%;
  height: 78px;

  background: linear-gradient(90deg, #242424 0%, #272727 50%, #333333 100%);
}

.header-inner {
  width: min(100%, 760px);
  height: 100%;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 21px;
}

/* LOGO */

.logo-wrap {
  height: 100%;

  display: flex;
  align-items: center;

  text-decoration: none;
}

.hkdo-logo {
  width: 39px;
  height: 52px;

  object-fit: contain;

  margin-right: 8px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-name {
  font-size: 32px;
  font-weight: 700;

  line-height: 1;

  letter-spacing: -0.5px;

  color: #f5dc08;
}

.company-name {
  margin-top: 4px;

  color: #ffffff;

  font-size: 10.5px;

  line-height: 1;
}

/* MENU */

.menu-btn {
  width: 35px;
  height: 35px;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  gap: 4px;

  background: transparent;

  border: 0;

  padding: 0;

  cursor: pointer;
}

.menu-btn span {
  display: block;

  width: 25px;
  height: 4px;

  background: #ffffff;

  border-radius: 1px;
}

/* =========================================================
   CONTAINER
========================================================= */

.register-container {
  width: min(100%, 760px);

  margin: 0 auto;

  padding: 13px 22px 46px;
}

/* =========================================================
   HEADING
========================================================= */

.register-heading {
  text-align: center;

  margin-bottom: 13px;
}

.heading-register {
  color: #0950ad;

  font-size: 32px;
  font-weight: 800;

  line-height: 1;

  letter-spacing: 1px;
}

.heading-store {
  display: inline-block;
  margin-top: 6px;

  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-align: center;

  background: linear-gradient(90deg, #ef2a29 0%, #f14426 40%, #f4891c 100%);

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.heading-description {
  margin-top: 6px;

  color: #747474;

  font-size: 15.5px;

  line-height: 1.2;
}

/* =========================================================
   FORM
========================================================= */

.register-form {
  width: 100%;
}

.form-section {
  margin-bottom: 14px;
}

/* SECTION TITLE */

.section-heading {
  display: flex;

  align-items: center;

  gap: 10px;

  min-height: 28px;

  margin-bottom: 7px;
}

.section-number {
  width: 28px;
  height: 28px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #fff;

  background: #087d44;

  font-size: 17px;
  font-weight: 700;
}

.section-name {
  color: #087d44;

  font-size: 16px;
  font-weight: 700;
}

/* FIELD */

.field {
  width: 100%;

  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;

  border: 1px solid #cccccc;

  background: #fff;

  color: #555;

  border-radius: 5px;

  outline: none;

  transition:
    border 0.15s ease,
    box-shadow 0.15s ease;
}

input {
  height: 42px;

  padding: 0 12px;

  font-size: 14px;
}

select {
  height: 42px;

  padding: 0 37px 0 12px;

  appearance: none;
  -webkit-appearance: none;

  font-size: 14px;

  color: #777;
}

textarea {
  min-height: 82px;

  resize: vertical;

  padding: 9px 12px;

  font-size: 14px;

  line-height: 1.36;
}

input::placeholder,
textarea::placeholder {
  color: #979797;

  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2988d8;

  box-shadow: 0 0 0 2px rgba(41, 136, 216, 0.08);
}

/* SELECT ARROW */

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";

  position: absolute;

  right: 14px;
  top: 50%;

  transform: translateY(-35%);

  width: 0;
  height: 0;

  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #777;

  pointer-events: none;
}

/* TWO COLUMN */

.row {
  display: flex;

  width: 100%;
}

.two-column {
  gap: 14px;
}

.two-column > .field {
  flex: 1;
}

/* =========================================================
   LOCATION
========================================================= */

.section-location {
  margin-top: 4px;
}

.location-button {
  width: 100%;

  border: 0;

  background: transparent;

  padding: 0;

  display: flex;

  justify-content: center;
  align-items: center;

  gap: 5px;

  color: #087ee4;

  font-size: 14px;

  cursor: pointer;

  margin: -1px 0 12px;
}

.gps-icon {
  width: 17px;
  height: 17px;

  border: 2px solid #087ee4;

  border-radius: 50%;

  display: flex;

  justify-content: center;
  align-items: center;

  position: relative;
}

.gps-icon::before,
.gps-icon::after {
  content: "";

  position: absolute;

  background: #087ee4;
}

.gps-icon::before {
  width: 3px;
  height: 21px;
}

.gps-icon::after {
  height: 3px;
  width: 21px;
}

.gps-dot {
  width: 5px;
  height: 5px;

  background: #087ee4;

  border-radius: 50%;

  z-index: 1;
}

/* =========================================================
   PASSWORD
========================================================= */

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 42px;
}

.eye-button {
  position: absolute;

  top: 50%;
  right: 10px;

  transform: translateY(-50%);

  border: 0;

  background: transparent;

  padding: 4px;

  display: flex;

  align-items: center;

  color: #555;

  cursor: pointer;
}

.password-note {
  margin: -2px 0 12px;

  color: #087d44;

  font-size: 12.5px;

  line-height: 1.3;
}

/* =========================================================
   AGREEMENT
========================================================= */

.agreement {
  display: flex;

  align-items: flex-start;

  margin: 11px 0 3px;
}

.checkbox-wrap {
  width: 23px;

  margin-right: 8px;

  flex-shrink: 0;

  position: relative;

  cursor: pointer;
}

.checkbox-wrap input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.custom-checkbox {
  display: block;

  width: 19px;
  height: 19px;

  border: 1px solid #999;

  border-radius: 3px;

  background: #ffffff;
}

.checkbox-wrap input:checked + .custom-checkbox {
  background: #087d44;

  border-color: #087d44;
}

.checkbox-wrap input:checked + .custom-checkbox::after {
  content: "";

  display: block;

  width: 5px;
  height: 10px;

  border: solid #fff;

  border-width: 0 2px 2px 0;

  transform: rotate(45deg);

  margin: 2px auto;
}

.agreement-text {
  font-size: 13.5px;

  line-height: 1.35;

  color: #2d2d2d;
}

/* LINKS */

.legal-links {
  margin-left: 31px;

  font-size: 13px;

  line-height: 1.5;

  margin-bottom: 13px;
}

.legal-links a {
  color: #006dd8;

  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}

/* =========================================================
   REGISTER BUTTON
========================================================= */

.register-button {
  width: 100%;
  height: 44px;

  border: 0;

  border-radius: 5px;

  background: linear-gradient(90deg, #117cc7 0%, #2b92cf 100%);

  color: #ffffff;

  font-size: 17px;

  cursor: pointer;

  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.register-button:hover {
  opacity: 0.94;
}

.register-button:active {
  transform: translateY(1px);
}

/* =========================================================
   FEATURE CARD
========================================================= */

.feature-card {
  margin-top: 13px;

  width: 100%;

  padding: 10px 13px 13px;

  border-radius: 18px;

  background: linear-gradient(180deg, #fbfdff 0%, #f0f8ff 100%);

  box-shadow: 0 2px 12px rgba(78, 138, 187, 0.08);
}

.feature-title {
  color: #064bb7;

  text-align: center;

  font-size: 19px;

  font-weight: 700;

  margin-bottom: 9px;
}

/* =========================================================
   APPLICATIONS
========================================================= */

.applications {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 12px;
}

.application-item {
  display: flex;

  flex-direction: column;

  align-items: center;

  min-width: 0;
}

.application-icon {
  width: 95px;
  height: 95px;

  border-radius: 14px;

  display: flex;

  align-items: center;
  justify-content: center;

  box-shadow:
    inset 0 -6px 15px rgba(0, 0, 0, 0.08),
    0 2px 5px rgba(0, 0, 0, 0.08);
}

.application-icon img {
  width: 100%;
  height: 100%;
}

/* =========================================================
   INVOICE
========================================================= */

.invoice-block {
  margin-top: 11px;

  padding-top: 10px;

  border-top: 1px solid #c9e0f2;

  display: grid;

  grid-template-columns:
    190px
    1fr;
}

.invoice-info {
  display: flex;

  align-items: center;

  gap: 12px;

  padding-right: 13px;

  border-right: 1px solid #b8d2e9;
}

.vat-icon {
  width: 66px;
  height: 66px;

  flex-shrink: 0;

  border-radius: 13px;

  background: linear-gradient(145deg, #ffc95b, #f59b27);

  padding: 8px;

  display: flex;

  align-items: center;
  justify-content: center;
}

.vat-paper {
  width: 38px;
  height: 46px;

  background: #ffffff;

  border-radius: 3px;

  color: #efa124;

  text-align: center;

  padding-top: 8px;

  line-height: 1.05;

  font-size: 13px;

  font-weight: 700;

  position: relative;
}

.vat-paper::after {
  content: "";

  position: absolute;

  bottom: -7px;
  right: 4px;

  border-left: 6px solid transparent;

  border-top: 7px solid white;
}

.invoice-title {
  color: #1452ae;

  font-size: 14px;

  font-weight: 700;

  line-height: 1.25;
}

.invoice-regulations {
  padding-left: 13px;
}

.regulation-title {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  color: #1a53a8;

  font-size: 12.5px;

  font-weight: 700;

  text-align: center;

  line-height: 1.25;

  margin-bottom: 8px;
}

.document-icon {
  width: 24px;

  flex-shrink: 0;
}

.document-icon svg {
  width: 24px;
  height: 24px;
}

.regulation-list {
  display: grid;

  grid-template-columns: repeat(5, 1fr);

  gap: 5px;
}

.regulation {
  min-height: 39px;

  padding: 5px 2px;

  border-radius: 5px;

  background: #e0edfc;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  color: #2863ae;

  font-size: 9.7px;

  line-height: 1.13;

  text-align: center;
}

.regulation small {
  display: block;

  font-size: 8.5px;

  margin-top: 2px;
}

/* =========================================================
   COMMERCE CARD
========================================================= */

.commerce-card {
  width: 100%;

  min-height: 110px;

  margin-top: 12px;

  padding: 8px 14px;

  border: 2px solid #ff4c4c;

  border-radius: 9px;

  display: grid;

  grid-template-columns:
    1fr
    2px
    1.3fr;

  align-items: center;
}

.commerce-left {
  display: flex;

  align-items: center;

  justify-content: center;

  padding-right: 14px;

  width: 100%;
}

.verified-content {
  width: 100%;
}

.verified-content img {
  width: 100%;
}

.commerce-divider {
  width: 2px;
  height: 71px;

  background: #e74a4b;
}

.commerce-right {
  margin-left: 17px;

  padding: 15px 10px;

  min-height: 72px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  background: linear-gradient(90deg, #d8242b, #f02c32);

  color: #ffffff;

  text-align: center;

  border-radius: 5px;
}

.commerce-small {
  font-size: 10px;

  margin-bottom: 6px;
}

.commerce-main {
  font-size: 11px;

  line-height: 1.35;
}

input[id="menu_reg"] ~ #list_menu_reg {
  position: fixed;
  top: 0%;
  left: 100%;
  right: 0%;
  min-height: 100vh;
  transition: left 0.5s ease-in-out;
}

input[id="menu_reg"]:checked ~ #list_menu_reg {
  left: 0%;
}

#list_menu_reg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
  list-style: none;
  background-color: white;
  white-space: nowrap;
  padding-left: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
}

.sub_menu_reg {
  padding: 1rem;
  display: block;
  font-size: 1.3rem;
  color: black;
  font-weight: 500;
}

.sub_menu_reg:hover {
  text-decoration: none;
}

.select2-container {
  width: 100% !important;
}

.select2-container .select2-selection--single {
  height: 42px;
  background-color: #fff;
  border: 1px solid #cccccc;
  border-radius: 5px;
  padding: 5px 10px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 28px;
  padding-left: 0;
  color: #333;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  height: 46px;
}

/* Chữ đang được chọn */
#type + .select2-container .select2-selection__rendered {
  color: rgb(27, 90, 55) !important;
}

/* Chữ trong ô tìm kiếm */
.select2-container .select2-search__field {
  color: rgb(27, 90, 55);
}

/* Chữ trong danh sách */
.select2-container .select2-results__option {
  color: rgb(27, 90, 55);
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: -2px;
}

.select-wrap::after {
  display: none;
}

.autocomplete-suggestions {
  border: 1px solid #999;
  background: #fff;
  overflow: auto;
}
.autocomplete-suggestion {
  padding: 2px 5px;
  white-space: nowrap;
  overflow: hidden;
}
.autocomplete-selected {
  background: #f0f0f0;
}
.autocomplete-suggestions strong {
  font-weight: normal;
  color: #3399ff;
}
.autocomplete-group {
  padding: 2px 5px;
}
.autocomplete-group strong {
  display: block;
  border-bottom: 1px solid #000;
}

/* Thêm loading khi tạo shop */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}
#modal_loading_create_shop {
  display: flex;
  flex-direction: column;
  width: 100vw;
  justify-content: center;
  align-items: center;
  background-color: rgba(1, 1, 1, 0.5);
}
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {
  .top-header {
    height: 69px;
  }

  .header-inner {
    padding: 0 14px;
  }

  .register-container {
    padding: 12px 14px 35px;
  }

  .hkdo-logo {
    width: 34px;
    height: 46px;
  }

  .logo-name {
    font-size: 29px;
  }

  .company-name {
    font-size: 9.5px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  .register-container {
    padding: 10px 12px 32px;
  }

  .heading-register {
    font-size: 29px;
  }

  .heading-store {
    font-size: 28px;
  }

  .heading-description {
    font-size: 14px;
  }

  .two-column {
    gap: 9px;
  }

  .applications {
    gap: 5px;
  }

  .application-icon {
    border-radius: 12px;
  }

  .invoice-block {
    grid-template-columns:
      160px
      1fr;
  }

  .vat-icon {
    width: 57px;
    height: 57px;
  }

  .invoice-info {
    gap: 8px;

    padding-right: 8px;
  }

  .invoice-regulations {
    padding-left: 8px;
  }

  .invoice-title {
    font-size: 12px;
  }

  .regulation-title {
    font-size: 11px;

    gap: 4px;
  }
}

/* =========================================================
   IPHONE / SMALL MOBILE
========================================================= */

@media (max-width: 430px) {
  .top-header {
    height: 63px;
  }

  .heading-store {
    font-size: 26px;
  }

  .header-inner {
    padding: 0 11px;
  }

  .hkdo-logo {
    width: 31px;
    height: 42px;

    margin-right: 6px;
  }

  .logo-name {
    font-size: 26px;
  }

  .company-name {
    font-size: 8.2px;
  }

  .menu-btn span {
    width: 23px;

    height: 3px;
  }

  .register-container {
    padding: 10px 10px 27px;
  }

  .heading-register {
    font-size: 27px;
  }

  .heading-store {
    font-size: 26px;
  }

  .heading-description {
    margin-top: 5px;

    font-size: 13px;
  }

  .section-number {
    width: 25px;
    height: 25px;

    font-size: 15px;
  }

  .section-name {
    font-size: 14.5px;
  }

  input,
  select {
    height: 40px;

    font-size: 13px;
  }

  textarea {
    min-height: 74px;

    font-size: 13px;
  }

  /*
        Giữ 2 cột giống ảnh gốc.
        Không xuống 1 cột ở mobile.
    */
  .two-column {
    gap: 8px;
  }

  .password-note {
    font-size: 11.5px;
  }

  .agreement-text {
    font-size: 12.2px;
  }

  .legal-links {
    font-size: 11.8px;
  }

  .register-button {
    height: 42px;

    font-size: 16px;
  }

  .feature-card {
    padding: 9px 8px 11px;

    border-radius: 14px;
  }

  .feature-title {
    font-size: 17px;

    margin-bottom: 8px;
  }

  .applications {
    gap: 3px;
  }

  .application-icon {
    width: 49px;
    height: 49px;
    border-radius: 11px;
  }

  .invoice-block {
    grid-template-columns:
      135px
      1fr;

    margin-top: 9px;

    padding-top: 9px;
  }

  .invoice-info {
    padding-right: 7px;

    gap: 6px;
  }

  .vat-icon {
    width: 50px;
    height: 50px;

    padding: 6px;

    border-radius: 10px;
  }

  .vat-paper {
    width: 29px;
    height: 36px;

    font-size: 9px;

    padding-top: 6px;
  }

  .invoice-title {
    font-size: 10.5px;
  }

  .invoice-regulations {
    padding-left: 7px;
  }

  .regulation-title {
    font-size: 9.5px;

    margin-bottom: 5px;
  }

  .document-icon,
  .document-icon svg {
    width: 20px;
    height: 20px;
  }

  .regulation-list {
    gap: 3px;
  }

  .regulation {
    min-height: 34px;

    padding: 3px 1px;

    font-size: 7px;
  }

  .regulation small {
    font-size: 6.7px;
  }

  .commerce-card {
    min-height: 91px;

    padding: 7px;

    grid-template-columns:
      1.05fr
      1px
      1.3fr;
  }

  .commerce-left {
    padding-right: 6px;
  }

  .verified-circle {
    width: 48px;
    height: 48px;
  }

  .check-mark {
    font-size: 36px;
  }

  .verified-content {
    margin-left: 4px;
  }

  .verified-top {
    font-size: 13px;

    padding: 2px 4px;
  }

  .verified-bottom {
    font-size: 7.8px;

    padding: 0 4px 2px;
  }

  .commerce-divider {
    height: 60px;
  }

  .commerce-right {
    min-height: 60px;

    margin-left: 7px;

    padding: 10px 5px;
  }

  .commerce-small {
    font-size: 7px;

    margin-bottom: 4px;
  }

  .commerce-main {
    font-size: 8px;

    line-height: 1.35;
  }
}

/* =========================================================
   VERY SMALL
========================================================= */

@media (max-width: 350px) {
  .two-column {
    gap: 5px;
  }

  input,
  select {
    padding-left: 8px;

    font-size: 11.5px;
  }

  .application-icon {
    width: 43px;
    height: 43px;
  }
}
