/* -------------------- RESET -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* -------------------- BODY -------------------- */
body {
  background: linear-gradient(135deg, #8e8e96, #ffffff);
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  /* background: url('') no-repeat center center fixed; */
  background-size: cover;
  /* overflow: hidden; */
}

/* ======= Logo ======= */
.logo-container {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.logo-container.hide {
  /* opacity: 0; */
  transform: translateY(-35%);
  pointer-events: none;
}

.logo-container img {
  width: 30%;
  /* height: auto;
  animation: pulse 1.5s infinite alternate; */
  height: auto;
  /* filter: drop-shadow(0 0 8px #2f89ff) drop-shadow(0 0 12px #2f89ff) drop-shadow(0 0 18px #2f89ff); */
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
  animation: glow 1s infinite alternate ease-in-out;
}

@keyframes glow {
  0% {
    /* filter: drop-shadow(0 0 6px #2f89ff)
              drop-shadow(0 0 10px #2f89ff)
              drop-shadow(0 0 16px #2f89ff); */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 15px #a1fc95) drop-shadow(0 0 25px #ffffff);
    transform: scale(1);
  }

  100% {
    /* filter: drop-shadow(0 0 10px #5bc0ff)
              drop-shadow(0 0 20px #5bc0ff)
              drop-shadow(0 0 30px #5bc0ff); */
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 15px #007aff) drop-shadow(0 0 25px #ffffff);
    transform: scale(1.1);
  }
}

/* -------------------- ROW 1 (FORM) -------------------- */
.row1 {
  background: #fff;
  padding: 25px 35px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

  display: none;
}

.row1.show {
  display: block;
  opacity: 1;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  /* transition: all 0.3s ease; */
  animation: fadeInUp 0.5s ease forwards;
  width: 100%;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.row1 h1 {
  font-size: 22px;
  color: #004aad;
  margin-bottom: 10px;
  font-weight: 700;
}

.input-box {
  display: flex;
  gap: 10px;
}

.input-box input {
  width: 160px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.input-box input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* -------------------- SELECT -------------------- */
.select-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.select-box select {
  width: 340px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.select-box select:hover,
.select-box select:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

#childSelect {
  display: none;
}

/* -------------------- BUTTON -------------------- */
#btnXacNhan {
  background-color: #f76e14;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#btnXacNhan:hover {
  background-color: #f08126;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 91, 187, 0.3);
}

/* Khi input/select bị lỗi */
.error {
  border: 2px solid #ff4d4d !important;
  background-color: #ffeaea;
  transition: 0.3s;
}

/* Alert hiển thị giữa màn hình */
.custom-alert {
  position: fixed;
  width: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 65, 65, 0.95);
  color: #fff;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 10px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2000;
}

/* Khi hiện */
.custom-alert.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

/* -------------------- ROW 2 (KẾT QUẢ) -------------------- */
.row2 {
  display: none;
  text-align: center;
  /* margin-top: 40px; */
  padding: 25px 50px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease;
  width: 100%;
}

.row2 h1 {
  font-size: 22px;
  color: #004aad;
  margin-bottom: 10px;
  font-weight: 700;
}

.row2 h2 {
  font-size: 20px;
  color: #007bff;
  font-weight: 600;
  margin: 5px 0;
}

#fullname {
  font-weight: bold;
  font-size: 22px;
  color: crimson;
}

.div_location_result {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.div_location_result p {
  font-size: 15px;
  color: #333;
  margin-top: 10px;
}


/* ------------------- */
.row_delegates_1 {
  display: none;
  text-align: center;
  /* margin-top: 40px; */
  padding: 25px 50px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease;
  width: 100%;
}

.row_delegates_2 {
  display: none;
  text-align: center;
  /* margin-top: 40px; */
  padding: 25px 50px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease;
  width: 100%;
}
.row_exhibitors_1 {
  display: none;
  text-align: center;
  /* margin-top: 40px; */
  padding: 25px 50px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease;
  width: 100%;
}


/* -------------------- xem sơ đồ -------------------- */
.btn-view {
  background: linear-gradient(45deg, #007bff, #00d4ff);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 12px;
}

.btn-view:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  display: block;
  margin: auto;
  margin-top: 150px;
  max-width: 96%;
  border-radius: 10px;
  box-shadow: 0 0 20px #00d4ff;
  animation: zoomIn 0.4s;
}

.close {
  position: absolute;
  top: 15px;
  right: 30px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

/* -------------------- chọn ngôn ngữ -------------------- */
/* Vị trí góc phải trên */
.lang-switcher {
  position: fixed;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  z-index: 999;
}

/* Ảnh cờ */
.flag {
  width: 35px;
  height: 25px;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.flag:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #00d4ff;
}

/* Khi được chọn */
.flag.active {
  box-shadow: 0 0 10px #00d4ff;
  transform: scale(1.1);
}


@keyframes zoomIn {
  from {transform: scale(0);}
  to {transform: scale(1);}
}


/* -------------------- ANIMATION -------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 500px) {
  .input-box {
    flex-direction: column;
    width: 100%;
  }

  .input-box input,
  .select-box select {
    width: 100%;
  }

  #btnXacNhan {
    width: 100%;
  }
}

.ticket-box {
    padding: 14px;
    font-family: Arial, sans-serif;
}

.ticket-box h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.ticket-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.ticket-item input {
    width: 18px;
    height: 18px;
}

.ticket-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.ticket-name {
    font-size: 14px;
    line-height: 1.3;
}

.ticket-price {
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
}

.sub-options {
    display: none;
    margin: 10px 0 20px 16px;
    padding-left: 14px;
    border-left: 3px solid #e5e7eb;
}

.sub-options label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
}

.sub-options input {
    margin-right: 6px;
}

/* Highlight theo loại */
.member { background: #e8f4ff; }
.group { background: #eafff6; }
.sponsor { background: #fff3e6; }

/* Disabled */
.ticket-item.disabled {
    background: #f1f1f1;
    color: #999;
    cursor: not-allowed;
}

/* Button */
.btn-continue {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    background: #0d6efd;
    color: #fff;
    opacity: 0.5;
}

/* Enabled button */
.ticket-item input:checked ~ .ticket-info {
    color: #0d6efd;
}

.ticket-item input:checked ~ .ticket-info .ticket-price {
    font-weight: 700;
}


.exhibitor-wrapper {
    max-width: 900px;
    margin: auto;
    padding: 20px;
    font-family: system-ui, sans-serif;
}

.title {
    text-align: center;
    margin-bottom: 20px;
}

.exhibitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.exhibitor-card {
    cursor: pointer;
}

.exhibitor-card input {
    display: none;
}

.card-content {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    transition: all .25s ease;
    height: 100%;
}

.exhibitor-card:hover .card-content {
    border-color: #2563eb;
}

.exhibitor-card input:checked + .card-content {
    border-color: #2563eb;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.card-content h4 {
    margin-bottom: 12px;
    font-size: 18px;
}

.price.main {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.price.discount {
    margin-top: 6px;
    color: #16a34a;
    font-weight: 600;
}

.price.discount span {
    font-size: 13px;
    font-weight: 500;
}

.features {
    margin-top: 14px;
    padding-left: 18px;
    font-size: 14px;
    color: #374151;
}

.features li {
    margin-bottom: 6px;
}

.note {
    margin-top: 12px;
    font-size: 14px;
    color: #6b7280;
}

.btn-continue {
    margin-top: 24px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    opacity: .5;
}

.btn-continue:not(:disabled) {
    opacity: 1;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #df2929;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.btn-back:hover {
    background: #f81414;
}

.btn-back .icon {
    font-size: 18px;
    line-height: 1;
}


.invoice-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    margin-top: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
    font-size: 14px;
}

.invoice-box h3 {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table td {
    padding: 10px 0;
    color: #374151;
}

.invoice-table .text-right {
    text-align: right;
    font-weight: 600;
}

.invoice-table .divider td {
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.invoice-table .total td {
    padding-top: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}
