.page-title-container {
  max-height: fit-content;
  margin-top: 82px;
}

/* --- Form container --- */
.container-form {
  /* display: flex;
  align-items: center; */
  justify-content: center;
  margin-top: auto;
  margin-bottom: auto;
  max-width: 800px;
  width: 100%;
  height: 100%;
  padding: 30px 50px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

/* .content-div {
  height: 100vh;
} */
.container-form:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

/* --- Form --- */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: fit-content;
}

/* --- Heading --- */
.form .heading {
  font-size: 1.8rem;
  text-align: center;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- Description  --- */
.form .desc {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-top: -10px;
  margin-bottom: 10px;
}

/* --- Form group --- */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

.form-control {
  height: 48px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: #ccc;
  box-shadow: 0 0 0 3px rgba(106, 73, 242, 0.15);
}

/* --- Rank options --- */
.rank-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.rank-options div {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  background: #f3f3f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rank-options div:hover {
  background: #ccc;
  color: #000;
}

.rank-options div.selected {
  background: #3d74b6;
  border-color: #ccc;
  box-shadow: 0 0 0 3px rgba(106, 73, 242, 0.3);
}

.rank-options div.selected label {
  color: #fff;
}

/* --- Submit button --- */
.form-submit {
  background-color: var(--color-primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 10px;
}

.form-submit:hover {
  background-color: #5735e0;
  transform: translateY(-2px);
}

.form-submit:active {
  background-color: #4a2fc0;
  transform: translateY(0);
  color: #fff;
}

.input-error {
  border: 1px solid #dc3545 !important;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 4px;
  font-style: italic;
  display: block;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 300px;
  padding: 16px 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideIn 0.3s ease forwards;
  border-left: 6px solid #ccc;
}

.toast.success {
  border-left-color: #28a745;
}
.toast.success i {
  color: #28a745;
}

.toast.error {
  border-left-color: #dc3545;
}
.toast.error i {
  color: #dc3545;
}

/* Nội dung text */
.toast-message {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  margin-left: 12px;
  flex-grow: 1;
}

.toast-close {
  cursor: pointer;
  font-size: 1.2rem;
  color: #999;
  margin-left: 10px;
}
.toast-close:hover {
  color: #333;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.fee-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.register-fee {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 10px;
}

.register-fee input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.register-fee label {
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

/* --- MODAL STYLES --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  transition: all 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.close-modal {
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.banking-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px dashed #ccc;
}

.banking-item {
  margin-bottom: 15px;
  font-size: 0.95rem;
}
.banking-item:last-child {
  margin: 0;
}

.upload-section {
  text-align: center;
  margin-bottom: 20px;
}

.upload-label {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--color-primary, #6a49f2);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.upload-label:hover {
  background-color: #5735e0;
}

.file-name {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}

.img-preview {
  margin: 10px auto 0 auto;
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-confirm,
.btn-cancel {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.btn-confirm {
  background: #196fa4;
  color: white;
}

.btn-cancel {
  background: #dc3545;
  color: white;
}

.btn-edit-banking {
  background-color: transparent;
  color: #4e61d3;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background-color 0.2s;
  margin-left: 8px;
}

.btn-edit-banking:hover {
  text-decoration-line: underline;
}

.edit-icon {
  width: 16px;
  height: 16px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .page-title-container {
    margin-top: 68px;
  }

  .container-form {
    width: 90%;
    max-height: fit-content;
    padding: 20px;
  }

  .form {
    justify-content: space-between;
  }

  .form .heading {
    font-size: 1.6rem;
    margin-bottom: 5px;
  }

  .form-control {
    font-size: 0.95rem;
  }

  .form-submit {
    font-size: 1rem;
    padding: 12px;
  }

  .rank-options {
    gap: 8px;
  }

  .rank-options div {
    font-size: 0.9rem;
    padding: 6px 10px;
  }
}
