/* ---------------- GLOBAL RESET ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;

  /* ⭐ BACKGROUND IMAGE HERE */
  /* background: url("your-image.jpg") no-repeat center center/cover; */

  min-height: 100vh;
  padding: 20px;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* ================= NAVBAR ================= */
/* NAVBAR BASE STYLES */
/* =========================================
   NAVBAR BASE
========================================= */
.rism-navbar {
  width: 100%;
  padding: 10px 24px;
  position: fixed;
  top: 0;
  left: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);

  z-index: 1000;
}

/* LOGO + TITLES */
.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  height: 55px;
  width: auto;
}

.nav-title-block {
  display: flex;
  flex-direction: column;
  color: #07de2b;
  line-height: 1.15;  
}

.nav-rism {
  font-family: 'Times New Roman', Times, serif;
  font-size: 30px;
  font-weight: 700;
  color: #efecec;
  letter-spacing: 0.09em;

}

.nav-full {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
}

/* TAG BADGE */
.nav-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-size: 11px;
color: #ebf5ed;
  text-transform: uppercase;
  letter-spacing: 0.12em;

  border-radius: 999px;
  background: rgba(240, 160, 102, 0.15);
  border: 1px solid rgba(227, 237, 116, 0.934);
}

.nav-tag .bullet {
  width: 7px;
  height: 7px;
  background: #37ff9f;
  border-radius: 50%;
  box-shadow: 0 0 8px #37ff9f;
}

/* Fix: Prevent form from going under navbar on mobile */
/* Prevent form from sliding under header in mobile */
@media (max-width: 600px) {
  .form-wrapper,
  .form-card,
  .hero-section {
    margin-top: 140px !important; /* Adjust based on your nav height */
  }
}

 
/* ===============================
   📱 MOBILE — FIXED LAYOUT
================================ */
@media (max-width: 600px) {

  .rism-navbar {
    flex-direction: column;
    align-items: center;
    padding: 12px;
    gap: 8px;
  }

  .nav-left {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .nav-logo {
    height: 52px;
  }

  .nav-title-block {
    text-align: left;
  }

  .nav-rism {
    font-size: 21px;
  }

  .nav-full {
    font-size: 11px;
  }

  /* TAG BELOW EVERYTHING */
  .nav-tag {
    margin-top: 6px;
    width: auto;
  }
}

/* Push content down below fixed navbar */
body {
  padding-top: 90px;
}

/* ------------ SIMPLE GRID LAYOUT ------------- */
/* PAGE LAYOUT */
.page-wrap {
  width: 100%;
  max-width: 850px;       /* desktop width */
  margin: auto;           /* center the form */
  padding: 40px 20px;
}


@media (max-width: 900px) {
  .page-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------------- LEFT SECTION ---------------- */
.hero-block {
  text-align: center;
  padding: 20px;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

.rism-logo {
  font-size: 80px;
  font-weight: 700;
  margin-top: 15px;
}

.rism-full {
  margin-bottom: 20px;
  letter-spacing: 2px;
  font-size: 14px;
}

/* ---------------- FORM CARD ---------------- */
.form-card {
  background: linear-gradient(
    135deg,
    rgba(58, 29, 100, 0.9),   /* Purple */
    rgba(157, 29, 89, 0.5),   /* Pink */
    rgba(222, 63, 15, 0.32)    /* Orange */
  );

  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2rem;
  border-radius: 20px;
}



.field {
  margin-bottom: 10px; /* less gap */
}


.form-card label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #eadb31;
  font-weight: 600;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 10px 12px;
  margin: 0;
  
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.btn-primary {
  width: 100%;
  background: #0066ff;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}

.btn-primary:hover {
  background: #004ecc;
}

/* ===== FULLSCREEN BACKGROUND VIDEO ===== */

/* Background container */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

/* Foreground video (YouTube iframe) */
.video-foreground iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* makes it non-interactive */
  object-fit: cover;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;

  background: linear-gradient(
    to bottom,
    rgba(58, 29, 100, 0.75),   /* Ramaiah Purple */
    rgba(157, 29, 89, 0.65),   /* Ramaiah Pink */
    rgba(222, 63, 15, 0.60)    /* Ramaiah Orange */
  );

  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}

input, select, textarea {
  font-size: 16px;
  padding: 12px 14px;
}

@media (min-width: 900px) {
  .field-row {
    display: flex;
    gap: 12px;
  }
  .field-row .field {
    flex: 1;
  }
}


.form-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f566e2;
  text-align: center;
  background-color: black;
  border-radius: 10px;
}



/* ================================
   MOBILE — KEEP SAME GRADIENT
================================ */
@media (max-width: 600px) {
  .form-card {
    background: linear-gradient(
      135deg,
      rgba(58, 29, 100, 0.9),   /* Purple */
      rgba(157, 29, 89, 0.5),   /* Pink */
      rgba(222, 63, 15, 0.32)      /* Orange */
    );

    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(18px);
    padding: 1.6rem;
  }
}

.form-sub {
  font-size: 13px;
  color: #81eb7c;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
}

.btn-primary {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;

  /* ✨ Ramaiah Gradient (Purple → Pink → Orange) */
  background: linear-gradient(
    135deg,
    #3A1D64,   /* Ramaiah Purple */
    #9D1D59,   /* Ramaiah Pink */
    #DE3F0F    /* Ramaiah Orange */
  );

  color: #fff;
  letter-spacing: 0.05em;

  /* Glow effect */
  box-shadow:
    0 0 12px rgba(222, 63, 15, 0.6),
    0 0 24px rgba(157, 29, 89, 0.45),
    0 0 36px rgba(58, 29, 100, 0.4);

  transition: 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 18px rgba(222, 63, 15, 0.9),
    0 0 30px rgba(157, 29, 89, 0.65),
    0 0 45px rgba(58, 29, 100, 0.6);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.97);
  box-shadow:
    0 0 10px rgba(222, 63, 15, 0.6),
    0 0 20px rgba(157, 29, 89, 0.5);
}


/* form-minimize style  */
/* Minimize Button */
/* ---------------------------------------------------
   MINIMIZE / EXPAND BUTTON
--------------------------------------------------- */
.toggle-form-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border: 0;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  z-index: 10;
}

.toggle-form-btn:hover {
  background: white;
}

/* ---------------------------------------------------
   COLLAPSED (MINIMIZED) FORM CARD
--------------------------------------------------- */
.form-card.collapsed {
  height: 60px !important;
  width: 300px !important;
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  overflow: hidden;
  padding: 10px 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  cursor: pointer;
  z-index: 9999;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Keep button inside */
.form-card.collapsed .toggle-form-btn {
  top: 8px;
  right: 8px;
  padding: 5px 12px;
  background: #ffffff;
  color: #333;
}

.form-card.collapsed .form-title,
.form-card.collapsed form,
.form-card.collapsed .fine-print {
  opacity: 0;
  pointer-events: none;
}

/* video unmute */
.unmute-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 9999 !important;
  background: rgba(0,0,0,0.6);
  padding: 10px 18px;
  border-radius: 8px;
  color: white;
  font-size: 15px;
  border: 1px solid #fff3;
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.unmute-btn:hover {
  background: #ffca2e;
  transform: scale(1.05);
}

.unmute-btn {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.07); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; }
}

.unmute-btn.muted {
  background: rgba(0,0,0,0.6);
  color: #fff;
}

.unmute-btn.unmuted {
  background: #ffca2e;
  color: black;
}


.video-background {
  pointer-events: none;
}

.video-foreground iframe {
  pointer-events: none;
}

.unmute-btn {
  pointer-events: auto !important;
}


/* Fix sound button to bottom-right ALWAYS */
#soundToggleBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;

  padding: 10px 18px;
  font-size: 16px;

  z-index: 999999;  /* highest layer */

  background: rgba(0,0,0,0.65);
  color: white;
  border: 1px solid #ffffff55;
  border-radius: 10px;

  backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.35);

  cursor: pointer;
}

/* Slightly bigger on mobile (touch-friendly) */
@media (max-width: 600px) {
  #soundToggleBtn {
    bottom: 15px;
    right: 15px;
    padding: 12px 22px;
    font-size: 18px;
  }
}

/* ------------------------------
   OUR LEGACY TEXT — DESKTOP
------------------------------ */
/* --------------------------------------------
   LEGACY TEXT (Full + Effects Included)
-------------------------------------------- */
.legacy-text {
  position: absolute;
  top: 90px; /* below navbar */
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: 600;
  color: white;
  z-index: 10;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(0,0,0,0.6);
  margin: 10px;

  /* EFFECTS */
  animation: legacyFadeIn 1.6s ease-out forwards,
             legacyGlow 3s ease-in-out infinite alternate;
}

/* --------------------------------------------
   FADE-IN ANIMATION
-------------------------------------------- */
@keyframes legacyFadeIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* --------------------------------------------
   GLOW PULSE
-------------------------------------------- */
@keyframes legacyGlow {
  0% {
    text-shadow: 
      0 0 8px rgba(255,255,255,0.5),
      0 0 12px rgba(55,255,159,0.3);
  }
  100% {
    text-shadow: 
      0 0 16px rgba(255,255,255,0.9),
      0 0 24px rgba(55,255,159,0.6),
      0 0 36px rgba(55,255,159,0.45);
  }
}

/* --------------------------------------------
   MOBILE VERSION
-------------------------------------------- */
@media (max-width: 600px) {
  .legacy-text {
    top: 120px;
    font-size: 20px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.45);
    border-radius: 8px;
    backdrop-filter: blur(6px);
  }
}



/* -----------------------------
   FIX BUTTON OVERLAP ON MOBILE
----------------------------- */
@media (max-width: 600px) {

  /* Move form collapsed button slightly up */
  .form-card.collapsed {
    bottom: 80px !important;   /* was 20px — now sits above sound button */
    right: 20px !important;
  }

  /* Place sound button at bottom always */
  #soundToggleBtn {
    bottom: 20px !important;
    right: 20px !important;
  }
}

.fine-print {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;

  color: rgba(255, 255, 255, 0.72);
  text-align: center;

  padding: 10px 12px;

  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 8px;
  opacity: 0.85;

  transition: 0.25s ease;
}

.fine-print span {
  color: #37ff9f;
  font-weight: 600;
  font-size: 20px;
}

.fine-print:hover {
  opacity: 1;
  transform: scale(1.01);
}

/* helper in above submit button */
.helper {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;

  color: rgba(255, 255, 255, 0.82);

  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow: 0 0 12px rgba(55, 255, 159, 0.12);

  transition: 0.25s ease;
}

.helper:hover {
  box-shadow: 0 0 16px rgba(55, 255, 159, 0.25);
  transform: translateY(-1px);
  color: #ffffff;
}

