/* ==========================================================================
   BMP FIRE COMPETITION REGISTRATION PAGE STYLES (bmpfire.in/competition)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  --bmp-black: #0a0a0a;
  --bmp-dark-gray: #1a1a1a;
  --bmp-charcoal: #2b2b2b;
  --bmp-fire-orange: #f57c00;
  --bmp-fire-dark: #e65100;
  --bmp-fire-gold: #ffb300;
  --bmp-fire-light: #fff3e0;
  --bmp-light-bg: #f8f9fa;
  --bmp-white: #ffffff;
  --bmp-text-main: #212529;
  --bmp-text-muted: #6c757d;
  --bmp-border: #e0e0e0;
  --bmp-success: #2e7d32;
  --bmp-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --bmp-radius: 8px;
  --bmp-transition: all 0.25s ease-in-out;
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Montserrat', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--bmp-text-main);
  background-color: var(--bmp-light-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--bmp-transition);
}

/* ==========================================================================
   Header & Navbar (Matching BMP Fire)
   ========================================================================== */
#myHeader {
  border-top: 3px solid var(--bmp-fire-orange);
  z-index: 1000;
  background: var(--bmp-black);
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.navbar-nav {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--bmp-fire-gold);
}

.nav-link.btn-header-cta {
  background: linear-gradient(135deg, var(--bmp-fire-orange), var(--bmp-fire-dark));
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: 4px;
}

.nav-link.btn-header-cta:hover {
  background: linear-gradient(135deg, var(--bmp-fire-gold), var(--bmp-fire-orange));
  box-shadow: 0 4px 12px rgba(245, 124, 0, 0.4);
}

/* Mobile Toggler */
.nav-toggler {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggler span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--bmp-transition);
}

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(rgba(10, 10, 10, 0.85), rgba(26, 26, 26, 0.9)),
              radial-gradient(circle at top right, rgba(245, 124, 0, 0.2), transparent 70%);
  color: var(--bmp-white);
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 4px solid var(--bmp-fire-orange);
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.event-badge {
  display: inline-block;
  background-color: rgba(245, 124, 0, 0.2);
  border: 1px solid var(--bmp-fire-orange);
  color: var(--bmp-fire-gold);
  padding: 0.35rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title span {
  color: var(--bmp-fire-gold);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #d1d1d1;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 1.75rem;
}

.event-meta-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border-left: 3px solid var(--bmp-fire-orange);
  font-size: 0.95rem;
  font-weight: 500;
}

.meta-item svg {
  width: 18px;
  height: 18px;
  fill: var(--bmp-fire-gold);
}

/* ==========================================================================
   Main Layout Container
   ========================================================================== */
.main-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .grid-two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   Details Card
   ========================================================================== */
.info-card {
  background: var(--bmp-white);
  border-radius: var(--bmp-radius);
  box-shadow: var(--bmp-shadow);
  padding: 2rem;
  border-top: 4px solid var(--bmp-dark-gray);
}

.section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bmp-black);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.75rem;
}

.section-heading::after {
  content: '';
  display: block;
  height: 2px;
  width: 50px;
  background: var(--bmp-fire-orange);
  margin-top: 0.75rem;
}

.info-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.info-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #444;
}

.info-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bmp-fire-dark);
  font-weight: 800;
  font-size: 1.05rem;
}

.notice-box {
  background-color: var(--bmp-fire-light);
  border-left: 4px solid var(--bmp-fire-orange);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: #5d4037;
}

.notice-box strong {
  color: var(--bmp-fire-dark);
  display: block;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Registration Form Section
   ========================================================================== */
.form-card {
  background: var(--bmp-white);
  border-radius: var(--bmp-radius);
  box-shadow: var(--bmp-shadow);
  padding: 2.25rem 2rem;
  border-top: 4px solid var(--bmp-fire-orange);
  transition: var(--bmp-transition);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bmp-black);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-label span.req {
  color: #d32f2f;
  margin-left: 3px;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--bmp-text-main);
  background-color: #fdfdfd;
  border: 1px solid var(--bmp-border);
  border-radius: 6px;
  outline: none;
  transition: var(--bmp-transition);
}

.form-control:focus {
  border-color: var(--bmp-fire-orange);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.15);
}

.form-control.is-invalid {
  border-color: #d32f2f;
  background-color: #fff8f8;
}

.error-feedback {
  color: #d32f2f;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
  display: none;
}

.form-control.is-invalid ~ .error-feedback {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, var(--bmp-fire-orange) 0%, var(--bmp-fire-dark) 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(245, 124, 0, 0.35);
  transition: var(--bmp-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--bmp-fire-dark) 0%, #bf360c 100%);
  box-shadow: 0 8px 24px rgba(230, 81, 0, 0.45);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ==========================================================================
   Confirmation & Pass State (Hidden initially)
   ========================================================================== */
#confirmationState {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-banner {
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-left: 5px solid var(--bmp-success);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.success-icon {
  width: 44px;
  height: 44px;
  background: var(--bmp-success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.success-banner-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 0.25rem;
}

.success-banner-content p {
  color: #2e7d32;
  font-size: 0.95rem;
}

.pass-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--bmp-shadow);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--bmp-border);
}

.pass-header-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bmp-fire-dark);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.pass-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--bmp-black);
}

.pass-image-wrapper {
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  max-width: 450px;
  margin: 0 auto 1.75rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border: 3px solid var(--bmp-fire-orange);
}

.pass-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.btn-download {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.35);
  transition: var(--bmp-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
}

.btn-download:hover {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.45);
  transform: translateY(-2px);
}

.btn-secondary-action {
  background: transparent;
  border: 1px solid var(--bmp-border);
  color: var(--bmp-text-muted);
  padding: 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary-action:hover {
  background-color: #f1f1f1;
  color: var(--bmp-black);
}

.registration-summary-box {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 0.9rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 600;
  color: var(--bmp-text-muted);
}

.summary-val {
  font-weight: 700;
  color: var(--bmp-black);
}

/* ==========================================================================
   Footer (Matching BMP Fire)
   ========================================================================== */
footer {
  background-color: var(--bmp-black);
  color: #bbb;
  padding: 3rem 1.5rem 1.5rem;
  border-top: 3px solid var(--bmp-fire-dark);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 800px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col h4 {
  color: var(--bmp-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: var(--bmp-fire-orange);
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #bbb;
}

.footer-links a:hover {
  color: var(--bmp-fire-gold);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #222;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #888;
}

.footer-bottom a {
  color: #aaa;
}

.footer-bottom a:hover {
  color: var(--bmp-fire-gold);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .navbar-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
  }
  .navbar-nav.show {
    display: flex;
  }
  .nav-toggler {
    display: block;
  }
  .header-container {
    flex-wrap: wrap;
  }
  .form-card, .info-card {
    padding: 1.5rem 1.25rem;
  }
}
