 /* ===== Base Styles ===== */
* {
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
}

body {
  margin: 0;
  color: #333;
  min-height: 100vh;
}

/* ===== Royal Background Base ===== */
.royal-bg {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at top, #0b1c2d, #020617);

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;

  overflow-y: auto; /* Allow vertical scroll */
  overflow-x: hidden;
}

/* ===== Animated Gradient Waves ===== */
.royal-bg::before {
  content: "";
  position: fixed; /* change from absolute to fixed */
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    120deg,
    rgba(59,130,246,0.15),
    rgba(234,179,8,0.12),
    rgba(59,130,246,0.15)
  );
  transform: scale(1.6) rotate(15deg);
  animation: royalWave 18s linear infinite;
  pointer-events: none; /* ensures it doesn't block scrolling */
  z-index: 0;
}

/* ===== Soft Glow Layer ===== */
.royal-bg::after {
  content: "";
  position: fixed; /* change from absolute to fixed */
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(234,179,8,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(59,130,246,0.12), transparent 45%);
  animation: glowShift 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* ===== Floating Gold Particles ===== */
.bg-animation {
  position: fixed; /* change from absolute to fixed */
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(234,179,8,0.35) 1px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 2px);
  background-size: 120px 120px, 180px 180px;
  animation: particleFloat 30s linear infinite;
  z-index: 0;
}




/* ===== Card Box ===== */
.form-box {
  background: #fff;
  width: 100%;
  max-width: 420px;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease;

  position: relative;
  z-index: 2;
}

.form-box h2 {
  margin-bottom: 20px;
  color: #222;
  font-size: 24px;
  letter-spacing: 0.5px;
}

/* ===== Form Group ===== */
.form-group {
  margin-bottom: 1.4rem;
}

/* ===== Labels ===== */
label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
  color: #222;
}

/* ===== Inputs & Select ===== */
input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  background-color: #fff;
}

input::placeholder {
  color: #9aa4b2;
}

input:focus,
select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}
/* ===== Textarea (Match Inputs) ===== */
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Inter', Arial, sans-serif;
  outline: none;
  transition: all 0.2s ease;
  background-color: #fff;
  resize: vertical;
  min-height: 90px;
}

/* Placeholder */
textarea::placeholder {
  color: #9aa4b2;
}

/* Focus (same as input) */
textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.15);
}

/* Disabled */
textarea:disabled {
  background-color: #f8fafc;
  cursor: not-allowed;
}
/* ===== Helper Text ===== */
.form-help {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.3rem;
}

.form-help strong {
  color: #0056b3;
  font-weight: 600;
}

/* ===== Subdomain Input Group ===== */
.subdomain-wrap {
  display: flex;
  align-items: stretch;
}

.subdomain-wrap input {
  flex: 1;
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.domain-suffix {
  background: #f1f5f9;
  padding: 12px 14px;
  border: 1px solid #d0d7e2;
  border-left: none;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #333;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
input[readonly] {
  background-color: #f8fafc;
  font-weight: 600;
  color: #111;
  cursor: not-allowed;
}
input[type="checkbox"]{
    width:auto;
}

/* ===== Button ===== */
button {
  width: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.35);
}

/* ===== Footer Text ===== */
.footer-text {
  margin-top: 15px;
  font-size: 13px;
  color: #777;
  text-align: center;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Animations ===== */
@keyframes royalWave {
  0%   { transform: translateX(-10%) scale(1.6) rotate(15deg); }
  100% { transform: translateX(10%)  scale(1.6) rotate(15deg); }
}

@keyframes glowShift {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

@keyframes particleFloat {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 400px 600px, -300px 500px; }
}


/* ===== Mobile ===== */
@media (max-width: 500px) {
  .form-box {
    padding: 30px 20px;
  }
}
/* ===== Policy Modal Overlay ===== */
.policy-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ===== Modal Box ===== */
.policy-box {
  background: #fff;
  width: 92%;
  max-width: 520px;
  max-height: 80vh;
  border-radius: 16px;
  padding: 26px 28px;
  position: relative;
  animation: scaleIn 0.3s ease;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

/* ===== Title ===== */
.policy-box h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 22px;
  color: #111827;
}

/* ===== Content ===== */
.policy-content {
  overflow-y: auto;
  max-height: 55vh;
  padding-right: 6px;
}

.policy-content ul {
  padding-left: 18px;
}

.policy-content li {
  margin-bottom: 10px;
  color: #374151;
  line-height: 1.5;
  font-size: 15px;
}

/* ===== Close Button ===== */
.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: #6b7280;
  width: auto;
}

.close-btn:hover {
  color: #000;
}
.back-link {
  text-align: center;
  margin-top: 20px;
}

.back-btn {
  display: inline-block;
  color: #c9a24d;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(201, 162, 77, 0.5);
  padding: 8px 18px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #c9a24d;
  color: #000;
}


/* ===== Animation ===== */
@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
