/* ==========================================================================
   Film Expo India — Exhibitor Registration
   Theme matched to visitors.filmexpoindia.com
   Navy #102542 · Orange #f07c1f · Montserrat + Barlow Condensed
   ========================================================================== */

:root {
  --navy:        #102542;
  --navy-deep:   #0b1b31;
  --navy-soft:   #1b3557;
  --orange:      #f07c1f;
  --orange-dark: #d76710;
  --orange-tint: #fff4e9;

  /* Sampled from the existing filmexpoindia.com footer */
  --teal:        #063f5c;
  --amber:       #ee9d21;

  --ink:         #16202e;
  --ink-soft:    #56657a;
  --line:        #dfe4ec;
  --page:        #eef1f6;
  --white:       #ffffff;

  --danger:      #c1272d;
  --success:     #157347;

  --header-h:    75px;   /* 44px logo + 2x14px padding + 3px rule */

  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 10px 30px rgba(16, 37, 66, 0.08);

  --font-body:    'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Barlow Condensed', 'Montserrat', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-dark); }

/* Keyboard focus stays visible everywhere. */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ========== Top bar ========== */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header__logo img {
  display: block;
  height: 44px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  padding: 7px 12px;
  cursor: pointer;
}

/* ========== Layout: sidebar + content ========== */
.layout {
  display: flex;
  flex: 1;
  align-items: stretch;
}

.sidebar {
  flex: 0 0 218px;
  width: 218px;
  background: var(--teal);
  padding: 26px 0 34px;
  position: sticky;
  top: var(--header-h);         /* sits under the sticky header */
  align-self: flex-start;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

/* Shown inside the drawer on mobile; the header already has it on desktop. */
.sidebar__logo { display: none; }

.sidebar__logo img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto;
}

.sidebar ul { list-style: none; }

.sidebar a {
  display: block;
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  transition: color 0.18s ease, background 0.18s ease;
}

.sidebar a:hover,
.sidebar a:focus-visible {
  color: var(--amber);
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 49, 0.55);
  z-index: 900;
}

.content {
  flex: 1;
  min-width: 0;                 /* lets the form shrink instead of overflowing */
  display: flex;
  flex-direction: column;
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 54px 20px 64px;
  text-align: center;
}

.hero__inner { max-width: 760px; margin: 0 auto; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero p {
  color: #c4d0e0;
  font-size: 15px;
  max-width: 58ch;
  margin: 0 auto;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.hero__facts span {
  border: 1px solid rgba(240, 124, 31, 0.55);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f8d7b4;
}

/* ========== Form shell ========== */
.form-shell {
  flex: 1;
  padding: 0 20px 60px;
}

.form-card {
  max-width: 880px;
  margin: -34px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-card__body { padding: 34px 40px 40px; }

/* Section grouping */
.fset { border: 0; margin: 0 0 30px; }
.fset:last-of-type { margin-bottom: 22px; }

.fset__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--navy);
  padding-left: 12px;
  border-left: 4px solid var(--orange);
  margin-bottom: 4px;
}

.fset__note {
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 16px;
  margin-bottom: 18px;
}

.fset__title + .grid,
.fset__title + .field,
.fset__title + .choice { margin-top: 18px; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.grid:last-child { margin-bottom: 0; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.grid .field { margin-bottom: 0; }

label,
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.req { color: var(--orange-dark); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder { color: #9aa6b6; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240, 124, 31, 0.16);
}

textarea { min-height: 110px; resize: vertical; }

.char-count {
  font-size: 12px;
  color: var(--ink-soft);
  text-align: right;
  margin-top: 5px;
}

/* ========== Choice tiles (GST + exhibit city) ========== */
.choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice__item { position: relative; }

.choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice label {
  display: block;
  margin: 0;
  cursor: pointer;
  background: #fbfcfe;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 18px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.choice label:hover { border-color: #b9c4d4; background: var(--white); }

.choice__name {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
}

.choice__meta {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 3px;
}

.choice input[type="radio"]:checked + label {
  border-color: var(--orange);
  background: var(--orange-tint);
  box-shadow: 0 0 0 3px rgba(240, 124, 31, 0.14);
}

.choice input[type="radio"]:checked + label .choice__meta { color: var(--orange-dark); }

.choice input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ========== Conditional GST field ========== */
#gstField { margin-top: 18px; }
#gstField[hidden] { display: none; }

/* ========== Consent ========== */
.consent-wrap { margin-bottom: 24px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.consent.is-invalid-box {
  border-color: var(--danger);
  background: #fdeceb;
}

.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.consent label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

.consent small { display: block; margin-top: 4px; font-size: 12px; }

/* ========== Buttons ========== */
.btn-primary {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.btn-primary:hover:not(:disabled) { background: var(--orange-dark); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { background: #c9a583; cursor: not-allowed; }

/* ========== Messages ========== */
.msg {
  margin-top: 18px;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.msg[hidden] { display: none; }
.msg--error   { background: #fdeceb; color: var(--danger);  border: 1px solid #f6c9c6; }
.msg--success { background: #e7f4ec; color: var(--success); border: 1px solid #b9dfc8; }

.field-error {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  margin-top: 5px;
}

.field-error[hidden] { display: none; }

.is-invalid { border-color: var(--danger) !important; }
.is-invalid:focus { box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.15) !important; }

/* ========== Footer ========== */
.site-footer {
  background: var(--teal);
  color: #dbe6ee;
  padding: 22px 26px;
  font-size: 13px;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* Social icons */
.social {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.social a {
  display: block;
  color: var(--amber);
  line-height: 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social a:hover,
.social a:focus-visible { color: var(--white); transform: translateY(-2px); }

/* Centre links */
.footer-links {
  list-style: none;
  text-align: center;
}

.footer-links li { margin-bottom: 7px; }
.footer-links li:last-child { margin-bottom: 0; }

.footer-links a {
  color: #eaf1f6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--amber); }

/* Copyright */
.copyright {
  text-align: right;
  font-size: 12.5px;
  color: #eaf1f6;
  line-height: 1.6;
}

.copyright a { color: #6cb6e8; text-decoration: none; }
.copyright a:hover { text-decoration: underline; }

/* ========== Back to top ========== */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 950;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(6, 63, 92, 0.3);
  transition: background 0.18s ease, transform 0.18s ease;
}

.to-top[hidden] { display: none; }
.to-top svg { width: 22px; height: 22px; fill: currentColor; }
.to-top:hover { background: #d98b17; transform: translateY(-2px); }

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .nav-toggle { display: block; }

  /* Sidebar slides in over the page instead of taking a column. */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 262px;
    max-width: 82vw;
    max-height: none;
    flex: none;
    z-index: 1100;
    padding-top: 22px;
    transform: translateX(-100%);
    transition: transform 0.26s ease;
    box-shadow: 0 0 34px rgba(0, 0, 0, 0.35);
  }

  .sidebar.is-open { transform: translateX(0); }

  /* The drawer covers the header, so it carries its own logo. */
  .sidebar__logo {
    display: block;
    padding: 4px 20px 22px;
  }

  .sidebar a { padding: 13px 20px; font-size: 16px; }

  .sidebar-backdrop { display: block; }
  .sidebar-backdrop[hidden] { display: none; }

  /* Stop the page behind the drawer from scrolling. */
  body.nav-open { overflow: hidden; }

  /* Footer stacks and centres. */
  .site-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  .copyright { text-align: center; }
  .footer-links li { margin-bottom: 9px; }
}

@media (max-width: 680px) {
  .hero { padding: 40px 18px 52px; }
  .form-card__body { padding: 26px 20px 30px; }
  .grid { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr; }
  .site-header__logo img { height: 36px; }
  .site-footer { padding: 24px 18px; }
  .social { gap: 18px; }
  .social svg { width: 23px; height: 23px; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}