/* ==========================================================
   Vertex Healing Centre
   Reiki Level One Landing Page
   Version 2
   ========================================================== */

/* ==========================================================
   Base
   ========================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Noto Sans Devanagari", sans-serif;

  overflow-x: hidden;

  background: #f8fafc;

  color: #1e293b;
}

* {
  box-sizing: border-box;
}

img {
  display: block;

  max-width: 100%;

  height: auto;
}

/* ==========================================================
   Scrollbar
   ========================================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #6d28d9;

  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5b21b6;
}

/* ==========================================================
   Selection
   ========================================================== */

::selection {
  background: #6d28d9;

  color: #ffffff;
}

/* ==========================================================
   Scroll Progress
   ========================================================== */

#scrollProgress {
  transition: width 0.15s linear;
}

/* ==========================================================
   Header
   ========================================================== */

#header {
  transition:
    box-shadow 0.3s,
    background 0.3s;
}

/* ==========================================================
   Register Button
   ========================================================== */

.registerBtn {
  cursor: pointer;

  transition:
    transform 0.25s,
    box-shadow 0.25s,
    background-color 0.25s;
}

.registerBtn:hover {
  transform: translateY(-2px);
}

.registerBtn:active {
  transform: scale(0.98);
}

/* ==========================================================
   Inputs
   ========================================================== */

input {
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

input:focus {
  outline: none;

  border-color: #6d28d9;

  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}

/* ==========================================================
   Validation
   ========================================================== */

.border-red-500 {
  border-color: #ef4444 !important;
}

.border-green-500 {
  border-color: #22c55e !important;
}

.error-text {
  display: block;

  margin-top: 6px;

  color: #dc2626;

  font-size: 0.85rem;

  font-weight: 500;
}

/* ==========================================================
   Loading Button
   ========================================================== */

.loading {
  pointer-events: none;

  opacity: 0.9;
}

.loading::after {
  content: "";

  display: inline-block;

  width: 18px;

  height: 18px;

  margin-left: 10px;

  border-radius: 50%;

  border: 3px solid rgba(255, 255, 255, 0.35);

  border-top-color: #ffffff;

  animation: spin 0.8s linear infinite;

  vertical-align: middle;
}

/* ==========================================================
   FAQ
   ========================================================== */

.faq-item {
  transition: 0.25s;
}

.faq-item:hover {
  transform: translateY(-2px);
}

/* ==========================================================
   Reveal Animation
   ========================================================== */

.reveal {
  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

/* ==========================================================
   Back To Top
   ========================================================== */

#backToTop {
  opacity: 0;

  visibility: hidden;

  transform: translateY(20px);

  transition: 0.3s;
}

#backToTop.show {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

/* ==========================================================
   Success Section
   ========================================================== */

#successSection {
  animation: fadeUp 0.5s ease;
}

/* ==========================================================
   Modal
   ========================================================== */

#registrationModal {
  animation: fadeIn 0.25s ease;
}

#registrationModal > div {
  animation: zoomIn 0.25s ease;
}

/* ==========================================================
   Animations
   ========================================================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;

    transform: scale(0.95);
  }

  to {
    opacity: 1;

    transform: scale(1);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(30px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 768px) {
  .registerBtn {
    width: 100%;
  }
}

/* ==========================================================
   Accessibility
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;

    transition: none !important;

    scroll-behavior: auto !important;
  }
}
