:root {
  --primary: #5D1F6B;
  --accent: #ff4d4f;
  --bg: #0e0e0e;
  --text: #f0f0f0;
  --card-bg: #1a1a1a;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  --radius: 16px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
}



* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.hero {
  background: linear-gradient(to bottom right, #0d0d0d, #1f1f1f);
  color: var(--text);
  text-align: center;
  padding: 4rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
}

.main {
  padding: 1rem;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  max-width: 100%;
  width: 100%;
  max-width: 480px;
  margin: 2rem auto;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

input[type=tel], input[type=text] {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  border: 1px solid #333;
  border-radius: var(--radius);
  background: #121212;
  color: var(--text);
}

input:focus {
  border-color: var(--primary);
  outline: none;
}

button.btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  background: var(--primary);
  border: none;
  color: white;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button.btn:hover {
  background: var(--accent);
  transform: scale(1.02);
}

.error {
  background: #2a0000;
  color: #f0eded;
  padding: 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  text-align: center;
}

/* Responsive layout */
@media (max-width: 600px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .card {
    padding: 1.5rem 1rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  input, button {
    font-size: 1rem;
  }
}


/* Parallax hero background enhancement */
.hero {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Icon input wrapper */
.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1rem;
}

.input-icon input {
  padding-left: 2.5rem;
}

/* Swipe-in animation for cards */
.card {
  animation: swipeIn 0.6s ease;
}

@keyframes swipeIn {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #1e90ff;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.tap-effect:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

