.section-register {
  min-height: 51.6875rem;
}
.section-register .section-bg img {
  object-position: right;
}
.section-account .register-form {
  max-width: 100%;
  margin: 0 auto;
}
.section-account {
  padding: 4.94rem var(--section) 4.19rem;
  min-height: 77.5vh;
  display: flex;
  justify-content: flex-end;
}
.section-account .section-content {
  margin-right: 0;
}
.section-account .section-content .col-register {
  width: 30.5625rem;
  max-width: 100%;
  margin-left: auto;
}
.section-account .title {
  color: #0b8343;
  font-size: 2.25rem;
  font-style: normal;
  margin-bottom: 1.69rem;
}
.message-box {
  margin-bottom: 15px;
}
.message {
  padding: 0.7rem 1.12rem;
  margin-bottom: var(--10);
  border-radius: 0.375rem;
}
.message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}
.message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.section-account .form-item:not(:last-child) {
  margin-bottom: 1.38rem;
}
.form-item sending{
  
}
.section-account .form-item label,
.section-account .form-item .category-title{
  display: block;
  margin-bottom: 5px;
  color: #2e2e2e;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.section-account .form-item label .required,
.section-account .form-item .category-title .required{
  color: #f00;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
}
.section-account .form-item input:not([type="checkbox"]),
.section-account .form-item select{
  width: 100%;
  padding: 0 1.12rem;
  border: 1px solid #d0d0d0;
  height: 2.625rem;
  border-radius: 0.375rem;
  box-shadow: none;
  outline: none;
  font-weight: normal;
  font-size: 0.9375rem;
}
.section-account .form-item input:not([type="checkbox"]):focus {
  border-color: #6dbb54;
}
.section-account .form-item input::placeholder {
  color: #a6a6a6;
}

.section-account .form-item .box {
  display: flex;
  gap: 10px;
}
.section-account .form-item .box input {
  flex: 1;
}
.section-account .or-login {
  color: #a6a6a6;
  text-align: center;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
  margin-bottom: 1rem;
}
.section-account .btn-login-google {
  width: 100%;
  border-radius: 0.375rem;
  background: #efefef;
  margin-bottom: 1.56rem;
  color: #2e2e2e;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  gap: 0.69rem;
  align-items: center;
  display: flex;
  justify-content: center;
  height: 2.625rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.section-account .btn-login-google:hover {
  background: #e0e0e0;
  border-color: #bbb;
}
.section-account .btn-login-google:active {
  transform: translateY(1px);
}
.section-account .or-login span {
  padding: 0 1rem;
}
.section-account .or-login:before,
.section-account .or-login:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d0d0d0;
}
.section-account .form-item .btn-send,
.section-account .form-item .btn-login,
.section-account .form-item .btn-register {
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
  height: 2.625rem;
}
.section-account .form-item .btn-send {
  background-color: var(--theme-color);
  color: #fff;
  width: 7.3125rem;
  flex-shrink: 0;
}
.section-account .form-item.sending .btn-send{
  background-color: #0b834385;
  pointer-events: none;
  cursor: none;
}
.section-account .form-item .btn-login,
.section-account .form-item .btn-register {
  width: 100%;
  background-color: #4caf50;
  color: white;
  margin-bottom: 1rem;
}
.section-account .form-item .btn-send:hover,
.section-account .form-item .btn-login:hover,
.section-account .form-item .btn-register:hover {
  opacity: 0.9;
}
.section-account .form-item .btn-send:disabled,
.section-account .form-item .btn-login:disabled,
.section-account .form-item .btn-register:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}
.section-account .login-link,
.section-account .forgot-password {
  text-align: center;
  margin-top: 10px;
  color: #2e2e2e;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.section-account .login-link a,
.section-account .forgot-password a {
  color: #0b8343;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
}
.section-account .login-link a:hover,
.section-account .forgot-password a:hover {
  text-decoration: underline;
}
.section-account .checkbox-item {
  display: flex;
  margin-bottom: 1.56rem;
}
.section-account .checkbox-item input {
  display: none;
}
.section-account .checkbox-item label {
  color: #2e2e2e;
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  display: flex;
  cursor: pointer;
}
.section-account .checkbox-item .check {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  border-radius: 0.125rem;
  border: 1px solid #d0d0d0;
  background-color: #fff;
  margin-right: 1rem;
  margin-top: 0.2rem;
}
.section-account .btn-register {
  border-radius: 0.375rem;
  height: 2.625rem;
  width: 100%;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.section-account .checkbox-item input[type="checkbox"]:checked ~ label span {
  background: var(--theme-color) url(/wp-content/themes/diwe/images/i-check.svg)
    no-repeat center;
  background-size: 75%;
}

/* ========== REGISTRATION PAGE STYLES ========== */

/* Account Type Selection */
.account-type-selection {
  margin-bottom: 2rem;
}

.account-type-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.account-type-option {
  position: relative;
  cursor: pointer;
  padding: 1rem 2rem;
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  background: #fff;
  transition: all 0.3s ease;
  min-width: 8rem;
  text-align: center;
}

.account-type-option:hover {
  border-color: var(--theme-color2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 131, 67, 0.15);
}

.account-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.account-type-option input[type="radio"]:checked + .option-content {
  color: var(--theme-color2);
}

.account-type-option input[type="radio"]:checked ~ .check-indicator {
  background: var(--theme-color2);
  border-color: var(--theme-color2);
}

.account-type-option input[type="radio"]:checked ~ .check-indicator::after {
  opacity: 1;
  transform: scale(1);
}

.account-type-option.checked {
  border-color: var(--theme-color2);
  background: rgba(11, 131, 67, 0.05);
}

.option-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.option-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(11, 131, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.account-type-option:hover .option-icon,
.account-type-option.checked .option-icon {
  background: rgba(11, 131, 67, 0.2);
}

.option-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--theme-color2);
}

.option-label {
  font-weight: 600;
  color: #2e2e2e;
  transition: color 0.3s ease;
}

.check-indicator {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #ddd;
  border-radius: 50%;
  background: #fff;
  transition: all 0.3s ease;
}

.check-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.3s ease;
}

/* File Upload Styles */
.file-upload-group {
  position: relative;
}

.file-upload-area {
  border: 2px dashed #e9ecef;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  background: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.file-upload-area:hover {
  border-color: var(--theme-color2);
  background: rgba(11, 131, 67, 0.05);
}

.file-upload-area.dragover {
  border-color: var(--theme-color2);
  background: rgba(11, 131, 67, 0.1);
}

.file-upload-area.has-file {
  border-color: var(--theme-color2);
  background: rgba(11, 131, 67, 0.05);
}

.upload-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  background: rgba(11, 131, 67, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--theme-color2);
}

.upload-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.upload-text strong {
  color: var(--theme-color2);
  cursor: pointer;
}

.upload-hint {
  font-size: 0.75rem;
  color: #9ca3af;
}

.file-upload-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-preview {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  background: #fff;
}

.file-preview.show {
  display: block;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-icon.image {
  background: rgba(34, 197, 94, 0.1);
}

.file-icon.document {
  background: rgba(239, 68, 68, 0.1);
}

.file-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.file-icon.image svg {
  fill: #22c55e;
}

.file-icon.document svg {
  fill: #ef4444;
}

.file-details {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2e2e2e;
  word-break: break-all;
}

.file-size {
  font-size: 0.75rem;
  color: #6c757d;
}

.file-remove {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.file-remove:hover {
  background: #dc2626;
}

/* Status Display */
.status-display {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.status-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon.pending {
  background: rgba(255, 193, 7, 0.1);
}

.status-icon.approved {
  background: rgba(34, 197, 94, 0.1);
}

.status-icon.rejected {
  background: rgba(239, 68, 68, 0.1);
}

.status-icon svg {
  width: 2rem;
  height: 2rem;
}

.status-icon.pending svg {
  fill: #ffc107;
}

.status-icon.approved svg {
  fill: #22c55e;
}

.status-icon.rejected svg {
  fill: #ef4444;
}

.status-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2e2e2e;
  margin-bottom: 0.5rem;
}

.status-message {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.5;
}

/* Message Box Updates */
.message-box .success-message {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.message-box .error-message {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.message-box .warning-message {
  background: rgba(255, 193, 7, 0.1);
  color: #d97706;
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.account-type-selection {
  margin-bottom: 1.5rem;
}

.account-type-label {
  display: block;
  margin-bottom: var(--10);
  color: #2e2e2e;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.account-type-label span {
  color: #f00;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
}

.radio-group {
  display: flex;
  gap: 2rem;
}

.radio-item {
  position: relative;
}

.radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-item input[type="radio"]:disabled + label {
  opacity: 0.6;
  cursor: not-allowed;
}

.radio-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #4a4a4a;
  transition: color 0.3s ease;
}

.radio-circle {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.radio-circle::after {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
}

.radio-item input[type="radio"]:checked + label .radio-circle {
  border-color: var(--theme-color2);
  background-color: var(--theme-color2);
}

.radio-item input[type="radio"]:checked + label .radio-circle::after {
  transform: translate(-50%, -50%) scale(1);
}

.radio-item input[type="radio"]:checked + label {
  color: var(--theme-color2);
  font-weight: 600;
}

.radio-text {
  font-size: 0.875rem;
}

.section-account .form-item .password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.section-account .form-item .password-wrapper input[type="password"],
.section-account .form-item .password-wrapper input[type="text"] {
  flex: 1;
  padding-right: 3rem;
}

.section-account .form-item .toggle-password {
  background: none;
  border: none;
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  color: #888;
  z-index: 2;
}
.section-account .form-item .toggle-password .icon-eye {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  background: url("/wp-content/themes/diwe/images/eye-off.svg") no-repeat
    center/contain;
}
.section-account .form-item .toggle-password.active .icon-eye {
  background-image: url("/wp-content/themes/diwe/images/eye.svg");
}

/* Responsive Design */

/* Animation for smooth transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section {
  animation: fadeInUp 0.4s ease-out;
}

/* Loading states */
.btn-register.loading,
.btn-send.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-register.loading::after,
.btn-send.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
/* page-register-school */
.page-register-school .form-upload-item {
  margin-bottom: 1.5rem;
}

.page-register-school .upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.page-register-school .upload-area:hover {
  border-color: #0b8343;
  background: #f0f8f4;
}

.page-register-school .upload-area input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.page-register-school .upload-content img {
  width: 1.875rem;
  height: 2.04544rem;
  margin-bottom: 1rem;
}

.page-register-school .upload-content span {
  display: block;
  color: #2e2e2e;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

.page-register-school .file-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-top: 10px;
}
.page-register-school .file-name {
  flex: 1;
  text-align: left;
  font-size: 14px;
}

.page-register-school .error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
}

.hidden {
  display: none !important;
}

.page-register-school .form-upload-item input[type="file"] {
  display: none;
}
.page-register-school .section-content .col-register {
  width: 50rem;
}
.page-register-school .section-account .section-content {
  /* margin-right:auto; */
}

#form-register-school {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}
#form-register-school .account-type-selection {
  width: 100%;
  padding: 0 0.75rem;
}
.section-account #form-register-school .form-item.form-upload-item {
  width: 50%;
}
.section-account #form-register-school .text-note{
  padding: 0 15px;
  font-size: var(--14);
}
#form-register-school .form-item:nth-of-type(2),
#form-register-school .form-item:nth-of-type(3),
#form-register-school .form-item:nth-of-type(4) {
  width: 33%;
}
 .section-account #form-register-school .form-item{
  padding:0 var(--12);
  width: 33.33%;
}
.section-account #form-register-school .checkbox-item{
   width:100%;
}
 .section-account #form-register-school .form-item-code{
   width:100%;
 }
.section-account #form-register-school .form-item:last-child{
  width: 100%;
}
 .section-account #form-register-school select{
    background-image: url("/wp-content/themes/diwe/images/icon-down.svg");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 0.7rem 0.4rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
 }
   
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .account-type-options {
    flex-direction: column;
    gap: 1rem;
  }

  .account-type-option {
    padding: 0.75rem 1.5rem;
    min-width: auto;
  }

  .option-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .option-icon svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .file-upload-area {
    padding: 1.5rem 1rem;
  }

  .upload-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .file-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .file-remove {
    align-self: flex-end;
  }
  .section-account {
    padding-top: var(--60);
    padding-bottom: var(--60);
    min-height: unset;
  }
  .section-account .title {
    font-size: var(--30);
  }
  .section-account .section-bg img {
    object-position: 80% 50%;
  }
  .section-account.section-register .section-bg img {
    object-position: 70% 50%;
  }
  .section-account .form-item input:not([type="checkbox"]) {
    font-size: var(--14);
    padding: 0 0.875rem;
  }
  .section-account .form-item label {
    font-size: var(--15);
  }
  .account-type-selection {
    margin-bottom: 1rem;
  }

  .section-account .checkbox-item label {
    font-size: var(--13);
  }
  .section-account .section-content .col-register{
    width: 100%;
  }
}
