/*1 - 10 Captcha */
/*2 - 279  Declaration */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.captcha-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  display: none;
  transition: all 0.2s ease;
}

@keyframes captchaModalOverlay {
  0% {
    opacity: 0;
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.captcha-modal-overlay.captcha-active {
  display: flex;
  animation: captchaModalOverlay 0.5s ease forwards;
}

.captcha-modal {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 350px !important;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 10px 10px -5px rgb(0 0 0 / 0.04);
  border: 1px solid #e2e8f0;
  position: relative;
}

.captcha-modal-header {
  position: relative;
  text-align: center;
  margin-bottom: 5px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.captcha-modal-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin-bottom: 4px !important;
}

.captcha-modal-subtitle {
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 10px !important;
  margin-bottom: 8px !important;
}

.captcha-container {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 5px;
  text-align: center;
  position: relative;
}

.captcha-code {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
  font-size: 28px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: 4px;
  margin: 8px 0;
  -webkit-user-select: none;
  user-select: none;
  background: white;
  padding: 16px 20px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  display: inline-block;
  min-width: 90%;
}

.captcha-input-group {
  margin-bottom: 24px;
}

.captcha-input-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
  text-align:center;
}

.captcha-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas,
    "Courier New", monospace;
  letter-spacing: 2px;
  text-align: center;
  transition: all 0.15s ease;
  background: white;
}

.captcha-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgb(99 102 241 / 0.1);
}

.captcha-input.captcha-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgb(220 38 38 / 0.1);
}

canvas {
	border: 1px solid #ccc;
	margin-top: 10px;
	border-radius: 4px;
}

.captcha-input.captcha-success {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgb(22 163 74 / 0.1);
}

.captcha-button-group {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.captcha-btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.captcha-btn-primary {
  background: #8224e3;
  color: #ffffff;
  margin-right:auto;
}

.captcha-btn-primary:hover {
  background: #b638c4;
}

.captcha-btn-secondary {
  background: #444444;
  color: #ffffff;
  margin-left:auto;
}

.captcha-btn-secondary:hover {
  background: #555555;
}

.captcha-error-message,
.captcha-success-message {
  text-align: center;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 14px;
  display: none;
}

.captcha-error-message.captcha-show,
.captcha-success-message.captcha-show {
  display: block;
}

.captcha-error-message {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.captcha-success-message {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.captcha-close-btn {
  position: absolute !important;
  top: -15px !important;
  right: -35px !important;
  background: none !important;
  border: none !important;
  font-size: 32px !important;
  color: #adadad !important;
  cursor: pointer !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  transform: translateY(0px) !important;
  transition: all 0.3s ease !important;
}

.captcha-close-btn:hover {
  transform: translateY(-4px) !important;
}

.captcha-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 14px;
  color: #64748b;
}

.captcha-security-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (max-width: 480px) {
  .captcha-modal {
    padding: 24px;
    margin: 16px;
  }

  .captcha-modal-title {
    font-size: 18px;
  }

  .captcha-code {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .captcha-btn {
    width: 100%;
    justify-content: center;
    display: flex;
  }
}

@media (max-width: 330px) {
  .captcha-button-group {
    flex-direction: column;
  }
}

/* Declaration  */
.declaration-overlay {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: 1000;
  display: none;
}

@keyframes declarationOverlayShow {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.declaration-overlay.declaration-active {
  display: flex;
  animation: declarationOverlayShow 0.5s ease forwards;
}

.declaration-wrapper {
  width: 100%;
  min-width:100% !important;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  -webkit-backdrop-filter: (2px);
  backdrop-filter: blur(2px);
  position: relative;
}

.declaration-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.declaration-content {
  background: white;
  -webkit-backdrop-filter: blur(45px);
  backdrop-filter: blur(45px);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 6px 6px 6px -3px rgb(51 51 51);
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.declaration-overlay.declaration-active .declaration-content {
  transform: translateY(0);
}

.declaration-header {
  padding: 20px;
  border-bottom: 1px solid #858585;
  display: flex;
  align-items: center;
  gap: 14px;
}

.declaration-header .maintitle {
  font-size: 2rem;
  color: #000000;
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.declaration-header .subtitle {
  color: #2a2a2a;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.declaration-body {
  padding: 20px 20px;
  overflow-y: auto;
}

.declaration-body::-webkit-scrollbar {
  width: 6px;
}

.declaration-body::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.declaration-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.declaration-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.disclaimer-text {
  color: #000000;
  line-height: 1.5;
  font-size: 18px;
  text-align: justify;
  margin-bottom: 0;
}

.declaration-footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #858585;
}

.declaration-agree-btn {
  background: #8224e3;
  color: white;
  border: none;
  padding: 16px 48px;
  font-size: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
  min-width: 200px;
}

.declaration-agree-btn:hover {
  transform: translateY(-2px);
}

.declaration-agree-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    padding: 40px 30px;
  }

  .main-content h1 {
    font-size: 2rem;
  }

  .declaration-header {
    padding: 16px;
  }

  .declaration-body {
    padding: 16px;
  }

  .declaration-footer {
    padding: 16px;
  }

  .declaration-header .maintitle {
    font-size: 1.6rem;
  }

  .disclaimer-text {
    font-size: 0.9rem;
  }

  .declaration-agree-btn {
    padding: 14px 32px;
    font-size: 1rem;
    min-width: 180px;
  }
}

@media (max-width: 550px) {
  .declaration-content {
    margin: 10px;
    border-radius: 16px;
  }

  .declaration-body {
    padding: 14px;
  }

  .declaration-footer {
    padding: 14px;
  }

  .declaration-header {
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding: 14px;
  }

  .declaration-logo {
    width: 80px;
    height: 80px;
  }

  .declaration-header .maintitle {
    font-size: 1.4rem;
  }

  .declaration-agree-btn {
    padding: 10px;
    font-size: 0.8rem;
    min-width: 130px;
  }
}

@media (max-width: 1400px) {
  .declaration-header {
    background-color: white;
    position: sticky;
    top: 0;
  }

  .declaration-footer {
    background-color: white;
    position: sticky;
    bottom: 0;
  }

  .declaration-content {
    overflow: auto;
  }
}

@media (max-height: 1400px) {
  .declaration-header {
    background-color: white;
    position: sticky;
    top: 0;
  }

  .declaration-footer {
    background-color: white;
    position: sticky;
    bottom: 0;
  }

  .declaration-content {
    overflow: auto;
  }
}
