/* =========================================================
   HH CAMPS — Registration Modal Styles
   ========================================================= */

.hh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 13, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hh-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hh-modal-box {
  background: #fafaf8;
  border: 1px solid var(--hh-line, #d5d2cc);
  width: 100%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hh-modal-overlay.is-active .hh-modal-box {
  transform: translateY(0);
}

/* Close button */
.hh-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--hh-ink-dim, #6a6a65);
  transition: color 0.2s;
  padding: 5px;
}
.hh-modal-close:hover {
  color: var(--hh-ink, #0f0f0d);
}

/* Title and typography */
.hh-modal-title {
  font-family: var(--hh-font-display, "Anton", sans-serif);
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--hh-ink, #0f0f0d);
}
.hh-modal-subtitle {
  font-family: var(--hh-font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hh-accent-ink, #0f0f0d);
  background: var(--hh-accent, #b2ffff);
  display: inline-block;
  padding: 4px 10px;
  margin: 0 0 28px;
}

/* Fields layout */
.hh-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.hh-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hh-modal-field label {
  font-family: var(--hh-font-mono, monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hh-ink-dim, #6a6a65);
}

.hh-modal-field input {
  font-family: var(--hh-font-body, sans-serif);
  font-size: 15px;
  padding: 12px 16px;
  background: #fafaf8;
  border: 1px solid var(--hh-line, #d5d2cc);
  color: var(--hh-ink, #0f0f0d);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.hh-modal-field input:focus {
  border-color: var(--hh-ink, #0f0f0d);
  background: #ffffff;
}

/* Error banner */
.hh-modal-error {
  font-family: var(--hh-font-mono, monospace);
  font-size: 12px;
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 12px;
  margin-bottom: 20px;
  text-align: left;
}

/* Submit button */
.hh-modal-submit {
  width: 100%;
  background: var(--hh-ink, #0f0f0d);
  color: #ffffff;
  border: none;
  padding: 16px;
  font-family: var(--hh-font-mono, monospace);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.25s, opacity 0.2s;
}

.hh-modal-submit:hover {
  background: #2b2b27;
}

.hh-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner */
.hh-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: hh-spin 0.8s linear infinite;
}
@keyframes hh-spin {
  to { transform: rotate(360deg); }
}

/* Success View */
#hh-reg-success-view {
  text-align: center;
  padding: 20px 0;
}

.hh-success-checkmark {
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hh-success-checkmark svg circle {
  fill: var(--hh-accent, #b2ffff);
}

.hh-modal-success-msg {
  font-family: var(--hh-font-body, sans-serif);
  font-size: 16px;
  color: var(--hh-ink-dim, #6a6a65);
  margin-bottom: 30px;
}

.hh-modal-close-btn {
  background: var(--hh-ink, #0f0f0d);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  font-family: var(--hh-font-mono, monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s;
}
.hh-modal-close-btn:hover {
  background: #2b2b27;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .hh-modal-box {
    padding: 30px 20px;
  }
  .hh-modal-title {
    font-size: 26px;
  }
}
