/* ==========================================================================
   ONLINE-TRAINING-REGISTRATION.CSS - online-training-registration.php
   Prefix: otr-
   ========================================================================== */

#otr-page {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  background: var(--bg-main);
}

.otr-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.12;
  filter: blur(10px);
  pointer-events: none;
}

.otr-shape-1 { width: 340px; height: 340px; top: -110px; left: -90px; }
.otr-shape-2 { width: 280px; height: 280px; right: -80px; bottom: -70px; }

.otr-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.otr-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.otr-card-head { margin-bottom: 30px; text-align: center; }

.otr-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-section);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.otr-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pure-red);
  animation: otrPulse 1.6s ease-in-out infinite;
}

@keyframes otrPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}

.otr-title {
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 800;
}

.otr-subtitle { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }

.otr-hp {
  position: absolute;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.otr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

.otr-field-full { grid-column: 1 / -1; }

.otr-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 600;
}

.otr-req { color: var(--pure-red); }

.otr-input-wrap { position: relative; }

.otr-input-wrap > i {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: var(--transition);
}

.otr-input-wrap:focus-within > i { color: var(--primary); }

.otr-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: 0.93rem;
  outline: none;
  transition: var(--transition);
}

.otr-input::placeholder { color: var(--text-muted); opacity: 1; }

.otr-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.14);
}

.otr-input.otr-invalid { border-color: var(--pure-red); }

.otr-input.otr-invalid:focus { box-shadow: 0 0 0 4px rgba(255, 75, 43, 0.14); }

select.otr-input {
  padding-right: 38px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

select.otr-input option { background: var(--bg-card); color: var(--text-primary); }

.otr-select-wrap::after {
  content: "\F282"; /* bootstrap-icons chevron-down */
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-family: "bootstrap-icons";
  font-size: 0.8rem;
  pointer-events: none;
}

.otr-error {
  min-height: 0;
  margin-top: 5px;
  color: var(--pure-red);
  font-size: 0.78rem;
  font-weight: 500;
}

.otr-error:empty { display: none; }

.otr-submit-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.otr-captcha-input {
  width: 110px;
  padding: 0 12px;
  font-weight: 700;
  text-align: center;
}

.otr-submit {
  justify-content: center;
  min-width: 220px;
  height: 50px;
  margin-top: 27px;
}

.otr-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.otr-alert {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 75, 43, 0.35);
  border-radius: 12px;
  background: rgba(255, 75, 43, 0.09);
  color: var(--pure-red);
  font-size: 0.88rem;
  font-weight: 500;
}

.otr-success { padding: 14px 0 10px; text-align: center; outline: none; }

.otr-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 2.3rem;
}

.otr-success-title { color: var(--text-primary); font-size: 1.45rem; font-weight: 800; }

.otr-success-text { margin: 8px auto 22px; max-width: 440px; color: var(--text-secondary); }

@media (max-width: 767px) {
  #otr-page { padding: 34px 0 56px; }
  .otr-card { padding: 30px 20px; border-radius: var(--radius-md); }
  .otr-title { font-size: 1.55rem; }
  .otr-grid { grid-template-columns: minmax(0, 1fr); }
  .otr-submit-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .otr-captcha-input { width: 100%; }
  .otr-submit { width: 100%; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .otr-live-dot { animation: none; }
}
