@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #063f45;
  --primary-light: #0a5c65;
  --secondary: #b30e19;
  --secondary-gradient: linear-gradient(135deg, #d01c26, #a10a15);
  --accent: #e7a719;
  --bg-color: #f8f6f0;
  --surface: #ffffff;
  --text-main: #222d30;
  --text-muted: #5e686b;
  --border: #e6dfd1;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 12px 30px rgba(52, 43, 24, 0.08);
  --shadow-lg: 0 20px 45px rgba(52, 43, 24, 0.12);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-color);
  color: var(--text-main);
  font-family: "Noto Sans Devanagari", sans-serif;
  line-height: 1.6;
}

/* ================= TOP BAR ================= */
.topbar-back {
  background: #063f45;
  color: #fff;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 3px solid var(--accent);
}

.topbar-back .nav-container {
  width: min(1180px, 92%);
  margin: auto;
}

.topbar-back a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.topbar-back a:hover {
  color: var(--accent);
}

/* ================= HERO & LOGOS ================= */
.hero {
  min-height: 580px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fffef9 0%, #faecd3 50%, #c47c43 100%);
  border-bottom: 6px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: min(1120px, 92%);
  text-align: center;
  padding: 40px 0 80px;
}

/* 3-Column Layout for Logos */
.hero-logos-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 20px;
}

.sponsor-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sponsor-label {
  font-size: 11px;
  font-weight: 700;
  color: #665b4c;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.6);
  padding: 2px 10px;
  border-radius: 12px;
}

.sponsor-logo-img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
}

.event-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-event-logo {
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 15px 25px rgba(138, 77, 23, 0.2));
}

.hero-event-title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  color: var(--secondary);
  margin: 10px 0 15px;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.7);
  line-height: 1.2;
}

.tag {
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary);
  margin: 15px 0 5px;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.hero-subtext {
  margin: 0 0 25px;
  font-size: 15px;
  color: #443c33;
  font-weight: 500;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-gradient);
  color: #fff;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(179, 14, 25, 0.4);
  transition: var(--transition);
  border: 2px solid transparent;
}

.cta:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(179, 14, 25, 0.5);
  border-color: rgba(255,255,255,0.2);
}

/* Scenery */
.sun {
  position: absolute;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  left: 15%;
  bottom: 110px;
  background: #ffebcc;
  box-shadow: 0 0 70px 30px #ffd699;
}

.hills {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: radial-gradient(ellipse at 15% 100%, #2f5332 0, #2f5332 20%, transparent 21%),
              radial-gradient(ellipse at 85% 100%, #365e39 0, #365e39 21%, transparent 22%),
              radial-gradient(ellipse at 50% 100%, #427046 0, #427046 25%, transparent 26%);
  z-index: 2;
  opacity: 0.9;
}

.hills.front {
  height: 120px;
  background: radial-gradient(ellipse at 30% 100%, #1e3a20 0, #1e3a20 22%, transparent 23%),
              radial-gradient(ellipse at 70% 100%, #234226 0, #234226 24%, transparent 25%);
  z-index: 3;
}

/* ================= ALERTS ================= */
.alert {
  width: min(1100px, 92%);
  margin: 30px auto 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  animation: slideDown 0.4s ease-out;
}

.alert.error {
  background: #fff5f5;
  color: var(--secondary);
  border: 1px solid #ffe3e3;
  box-shadow: 0 4px 15px rgba(179, 14, 25, 0.08);
}

.alert .icon { font-size: 20px; }

/* ================= MAIN LAYOUT ================= */
.wrap {
  width: min(1100px, 92%);
  margin: 60px auto 90px;
}

.heading {
  text-align: center;
  margin-bottom: 40px;
}

.heading > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #a47a16;
  text-transform: uppercase;
}

.heading h1 {
  font-size: 46px;
  color: var(--secondary);
  margin: 10px 0;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
}

.heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 30px;
  align-items: start;
}

/* ================= CARDS ================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 35px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.form-card {
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: var(--secondary-gradient);
}

.cardhead {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  margin-bottom: 25px;
}

.icon-pen {
  font-style: normal;
  background: #fdf5f5;
  color: var(--secondary);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: inset 0 0 0 2px #fae1e1;
}

.cardhead h2 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
}

.cardhead small {
  font-size: 12px;
  color: var(--text-muted);
}

.req-star { color: var(--secondary); margin-left: 3px; }

/* ================= FORMS ================= */
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

label {
  font-size: 13.5px;
  font-weight: 600;
  color: #2c3639;
}

label.full { grid-column: 1 / -1; }

input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid #d4dcd9;
  background: #fcfdfc;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  outline: none;
  margin-top: 8px;
  transition: var(--transition);
  color: var(--text-main);
}

input::placeholder, textarea::placeholder {
  color: #a4b0b3;
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(6, 63, 69, 0.08);
}

.file-upload-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 10px;
}

.file-input-wrapper {
  margin-top: 8px;
  border: 1.5px dashed #c0ccc8;
  background: #f7f9f8;
  padding: 15px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-align: center;
}

.file-input-wrapper:hover {
  border-color: var(--primary-light);
  background: #f0f5f4;
}

.file-input-wrapper input {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  width: 100%;
  cursor: pointer;
}

.file-input-wrapper small {
  display: block;
  color: #7b8688;
  font-size: 10.5px;
  margin-top: 8px;
  font-weight: 500;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 30px 0 25px;
  padding: 15px;
  background: #fafaf9;
  border-radius: var(--radius-md);
  border: 1px solid #f0ebe1;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--secondary);
  cursor: pointer;
}

.check span {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.4;
  cursor: pointer;
}

.submit {
  width: 100%;
  border: none;
  background: var(--secondary-gradient);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(179, 14, 25, 0.25);
  transition: var(--transition);
}

.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(179, 14, 25, 0.35);
}

.privacy {
  text-align: center;
  color: #889396;
  font-size: 11px;
  margin-top: 15px;
  font-weight: 500;
}

/* ================= SIDEBAR ================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info {
  background: linear-gradient(145deg, #ffffff, #fffdf8);
}

.glow-border {
  position: relative;
}
.glow-border::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(231,167,25,0.4), transparent, rgba(179,14,25,0.2));
  z-index: -1;
}

.info h2 {
  font-size: 21px;
  color: var(--primary);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.info article {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.info article:hover {
  background: #fafaf8;
  transform: translateX(5px);
}

.feat-icon {
  font-style: normal;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #fff8eb;
  color: var(--secondary);
  display: grid;
  place-items: center;
  font-size: 24px;
  border: 1px solid #ffe9c4;
}

.info article b {
  color: var(--primary-dark);
  font-size: 15.5px;
  display: block;
  margin-bottom: 4px;
}

.info article p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.quote-card {
  text-align: center;
  background: var(--primary);
  color: white;
  padding: 40px 30px;
  border: none;
}

.quote-mark {
  font: 700 80px Georgia;
  color: rgba(255,255,255,0.15);
  display: block;
  height: 40px;
  line-height: 70px;
}

.quote-card p {
  font: 26px Kalam, cursive;
  color: #fff;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ================= VERIFY / OTP ================= */
.verify {
  min-height: 75vh;
  display: grid;
  place-items: center;
  padding: 60px 5%;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  max-width: 500px;
  width: 100%;
}

.bigicon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fdf5f5;
  color: var(--secondary);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 38px;
  box-shadow: 0 0 0 10px #fff, 0 0 0 12px #fae1e1;
}

.verify h1 {
  color: var(--primary);
  margin: 0 0 10px;
  font-size: 28px;
}

.verify p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 15px;
}

.otpgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
  margin-bottom: 30px;
}

.otpgrid input {
  text-align: center;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 700;
}

.expiry-note {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 12px;
  background: #f7f9f8;
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 11px;
}

/* ================= FOOTER ================= */
footer {
  background: #042427;
  color: #fff;
  text-align: center;
  padding-top: 20px;
}

.footer-content {
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1180px;
  margin: auto;
}

.brand {
  text-align: left;
}

.brand b {
  display: block;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--accent);
}

.brand span {
  font-size: 12px;
  color: #9cb1b3;
}

.socials {
  display: flex;
  gap: 15px;
}

.socials span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.socials span:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

footer small {
  display: block;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px;
  color: #728b8e;
  font-size: 11.5px;
  background: rgba(0,0,0,0.15);
}

.hp { position: absolute; left: -9999px; opacity: 0; }

@keyframes slideDown {
  from { transform: translateY(-15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ================= RESPONSIVE ================= */
@media(max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 25px; }
}

@media(max-width: 650px) {
  .hero { min-height: 480px; padding-top: 10px; }
  .hero-inner { padding-top: 20px; }
  
  /* Mobile Layout for Logos: Ensures they stay aligned on small screens */
  .hero-logos-wrapper {
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .sponsor-logo-img { max-height: 45px; max-width: 80px; }
  .main-event-logo { max-height: 120px; }
  .sponsor-label { font-size: 9px; padding: 2px 6px; }

  .hero-event-title { font-size: 28px; }
  .heading h1 { font-size: 36px; }
  .fields { grid-template-columns: 1fr; }
  .file-upload-group { grid-template-columns: 1fr; }
  .otpgrid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
  .brand { text-align: center; }
}

@media(max-width: 480px) {
  .card { padding: 20px; }
  .hero { min-height: 440px; }
  .tag { font-size: 15px; }
  .heading h1 { font-size: 32px; }
  .sun { width: 70px; height: 70px; bottom: 130px; }
  .main-event-logo { max-height: 100px; }
}