@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  background: linear-gradient(
    120deg,
    #ff5f6d,
    #ffc371,
    #47c6ff,
    #9d50bb,
    #ff6a00,
    #fbc7d4
  );
  background-size: 400% 400%;
  animation: rainbowBG 10s ease infinite;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  color: #fff;
}

/* MAIN CARD */
form, .card {
  background: rgba(255, 255, 255, 0.61);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 35px 45px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
  animation: fadeIn 0.8s ease-in-out;

  display: flex;
  flex-direction: column;
}

/* HEADINGS */
h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  font-size: clamp(24px, 4vw, 30px);

  background: linear-gradient(
    90deg,
    #ff416c,
    #ff4b2b,
    #ffafbd,
    #ffc3a0,
    #00c6ff,
    #0072ff,
    #9d50bb
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowBG 4s linear infinite;
}

.page-title, .popup-card p {
  text-align: center;
  color: #000000;
  margin-bottom: 20px;
  font-size: 18px;
  opacity: 0.9;
}

/* INPUTS */
input {
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.85);
}

input:focus {
  box-shadow: 0 0 0 2px #00e6e6;
}

/* BUTTONS */
button {
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #00e6e6, #00b3b3);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,230,230,0.4);
}

/* PDF */
iframe {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.pdf-frame {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.pdf-text{
    color: #ff416c !important;
     text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
  opacity: 0.9;
}
/* POPUP */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}
.popup-card {
  width: 50%;
  max-width: 560px;

  background: #ffffff;
  color: #333;

  padding: 30px 35px;
  border-radius: 14px;

  text-align: center;
  line-height: 1.6;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: popupScale 0.35s ease;
}
.popup-card p {
  font-size: 15px;
  margin: 0;
}
.popup-card::before {
  content: "⚠️";
  display: block;
  font-size: 38px;
  margin-bottom: 15px;
}
@keyframes popupScale {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 768px) {
  .popup-card {
    width: 90%;
  }
}
/* ===============================
   LOADER OVERLAY
================================ */
.loader {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loader.show {
  opacity: 1;
  pointer-events: all;
}

.loader-box {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(15px);
  border-radius: 14px;
  padding: 25px 30px;
  text-align: center;
  color: #fff;
  width: 260px;
}

/* Spinner */
.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid #00e6e6;
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rainbowBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

