/* HR LMS – Checkout & Access Styles */

/* ── Buy button ────────────────────────────────────────────── */
.hr-lms-buy-wrap {
  text-align: center;
  margin: 32px 0;
}

#hr-buy-btn {
  display: inline-block;
  padding: 18px 48px;
  background: #e63946;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(230,57,70,.35);
}

#hr-buy-btn:hover {
  background: #c1121f;
  transform: translateY(-2px);
}

.hr-lms-price-note {
  margin-top: 10px;
  font-size: 13px;
  color: #777;
}

/* ── Checkout overlay modal ────────────────────────────────── */
#hr-checkout-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hr-lms-modal {
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  animation: hrSlideUp .2s ease;
}

@keyframes hrSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

#hr-overlay-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.hr-lms-modal h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #1a1a2e;
}

.hr-lms-modal .hr-lms-modal-subtitle {
  font-size: 13px;
  color: #777;
  margin-bottom: 24px;
}

/* ── Form fields ───────────────────────────────────────────── */
.hr-lms-field {
  margin-bottom: 16px;
}

.hr-lms-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
}

.hr-lms-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  color: #222;
  box-sizing: border-box;
  transition: border-color .2s;
  outline: none;
}

.hr-lms-input:focus {
  border-color: #e63946;
}

/* ── Submit button ─────────────────────────────────────────── */
#hr-submit-btn {
  width: 100%;
  padding: 14px;
  background: #e63946;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s;
}

#hr-submit-btn:hover:not(:disabled) {
  background: #c1121f;
}

#hr-submit-btn:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.hr-lms-secure-note {
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin-top: 10px;
}

/* ── Messages ──────────────────────────────────────────────── */
.hr-lms-message {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 12px;
}

.hr-lms-msg-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.hr-lms-msg-success { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.hr-lms-msg-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; }

/* ── Toast notification ────────────────────────────────────── */
#hr-lms-toast {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100000;
  max-width: 340px;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  animation: hrFadeIn .25s ease;
}

@keyframes hrFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hr-lms-toast-success { background: #15803d; color: #fff; }
.hr-lms-toast-error   { background: #b91c1c; color: #fff; }
.hr-lms-toast-info    { background: #1d4ed8; color: #fff; }

/* ── Access page ───────────────────────────────────────────── */
.hr-lms-access-wrap {
  max-width: 500px;
  margin: 60px auto;
  text-align: center;
  padding: 40px 30px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.hr-lms-access-wrap .hr-lms-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ── Resend form ───────────────────────────────────────────── */
.hr-lms-resend-wrap {
  max-width: 480px;
  margin: 20px auto;
  padding: 30px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}

.hr-lms-form-group {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.hr-lms-form-group .hr-lms-input {
  flex: 1;
}

.hr-lms-btn {
  padding: 11px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s;
  white-space: nowrap;
}

.hr-lms-btn-secondary {
  background: #1a1a2e;
  color: #fff;
}

.hr-lms-btn-secondary:hover {
  background: #2d2d50;
}

/* ── Video wrapper ─────────────────────────────────────────── */
.hr-lms-video-wrap video::-webkit-media-controls-download-button { display: none; }
.hr-lms-video-wrap video::-webkit-media-controls-enclosure { overflow: hidden; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hr-lms-modal { padding: 28px 20px; }
  .hr-lms-form-group { flex-direction: column; }
  #hr-lms-toast { bottom: 12px; right: 12px; left: 12px; max-width: none; }
}
