/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --p: #4c1d95;
  --p2: #7c3aed;
  --a: #e11d48;
  --g: #f59e0b;
  --bg: #f5f3ff;
  --t: #1f2937;
  --m: #6b7280;
  --bd: #e4dcfa;
  --primary: #4c1d95;
  --primary-dark: #312e81;
  --accent: #e11d48;
  --text-dark: #1f2937;
  --card-bg: #ffffff;
  --border-color: #e4dcfa;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--t);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--p2);
  text-decoration: none;
}

a:hover {
  color: var(--a);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 0 20px;
}

/* ==========================================
   2. NAVIGATION BAR, LOGO & HOVER DROPDOWNS
   ========================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #1e1b4b;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-logo {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.brand:hover {
  color: #fff;
}

.menu {
  display: flex;
  gap: 10px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu li {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.menu > li > a {
  display: block;
  color: #ddd6fe;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu > li > a:hover {
  background: var(--p2);
  color: #fff;
}

.menu > li.dropdown:hover > a {
  background: var(--p2);
  color: #fff;
}

/* Dropdown Menu Container */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  background: #ffffff;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  z-index: 100;
  padding: 8px 0;
  border: 1px solid var(--bd);
}

.dropdown-menu li {
  width: 100%;
  padding-bottom: 0;
  margin-bottom: 0;
}

.dropdown-menu a {
  display: block;
  color: #1f2937;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  background: transparent !important;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.dropdown-menu a:hover, 
.dropdown-menu a.active {
  background: var(--bg) !important;
  color: var(--p2) !important;
  padding-left: 22px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ==========================================
   3. COUNTDOWN & BANNER STYLES
   ========================================== */
.countdown-section {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #ffffff;
  padding: 24px 20px;
  text-align: center;
  border-radius: 16px;
  margin: 24px auto 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.countdown-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fde68a;
  letter-spacing: 0.5px;
}

.timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.time-box {
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 18px;
  border-radius: 10px;
  min-width: 85px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.time-box span:first-child {
  display: block;
  font-size: 32px;
  font-weight: 800;
  font-family: monospace;
  color: #38bdf8;
}

.time-box .label {
  font-size: 12px;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-top: 2px;
}

.separator {
  font-size: 28px;
  font-weight: 700;
  color: #94a3b8;
}

.timer-banner-inner {
  background: #312e81;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

#innerCountdown {
  color: #38bdf8;
  font-weight: 700;
  font-family: monospace;
}

/* ==========================================
   4. FULL-WIDTH ILLUSTRATIVE HERO BANNER
   ========================================== */
.hero-banner {
  width: 100%;
  background: #1e1b4b;
  padding: 0;
  border-bottom: none;
}

.banner-wrapper {
  position: relative;
  max-width: 1350px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.banner-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.banner-cta-container {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.paper-submit-btn {
  display: inline-block;
  background: var(--g);
  color: #1e1b4b;
  font-weight: 800;
  font-size: 16px;
  padding: 12px 36px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.paper-submit-btn:hover {
  background: var(--a);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

#call-for-papers {
  scroll-margin-top: 100px;
  padding-top: 10px;
}

/* ==========================================
   5. LAYOUT & CONTENT SECTIONS
   ========================================== */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding-top: 30px;
  padding-bottom: 40px;
}

.main {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--bd);
}

.main p {
  margin: 12px 0;
  text-align: justify;
}

.h {
  color: var(--p);
  font-size: 24px;
  margin: 26px 0 8px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--a);
  display: inline-block;
}

.main > .h:first-child {
  margin-top: 0;
}

.h3 {
  color: var(--p2);
  margin: 18px 0 6px;
  font-size: 18px;
}

.tech {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 14px auto;
  border-radius: 14px;
}

.topics {
  columns: 2;
  column-gap: 30px;
}

.topics li, 
.jr li {
  position: relative;
  padding: 4px 0 4px 22px;
  break-inside: avoid;
}

.topics li:before, 
.jr li:before {
  content: "◆";
  position: absolute;
  left: 2px;
  top: 7px;
  font-size: 10px;
  color: var(--a);
}

.muted {
  color: var(--m);
}

/* ==========================================
   6. VENUE IMAGE STYLING (Curved & Polished)
   ========================================== */
.venue-image-container {
  max-width: 800px;
  margin: 18px auto;
}

.venue-fig img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(76, 29, 149, 0.15);
  border: 1px solid var(--bd);
  display: block;
}

.venue-fig figcaption {
  font-size: 13px;
  color: var(--m);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ==========================================
   7. PROCEEDINGS & SIDEBAR WIDGETS
   ========================================== */
.proceedings-heading {
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--primary) !important;
  margin-bottom: 16px !important;
  text-align: center;
}

.proceedings-link {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  padding: 10px 0 !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
}

.book {
  width: 100% !important;
  max-width: 220px !important;
  height: auto !important;
  max-height: 280px !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.25s ease;
}

.book:hover {
  transform: translateY(-4px) scale(1.03);
}

.proceedings-text {
  margin-top: 12px;
  margin-bottom: 16px;
  font-size: 14px !important;
  text-align: left;
  line-height: 1.5;
  color: var(--text-dark);
}

.grey-card-box {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 16px !important;
  text-align: center;
  margin: 12px 0 4px 0;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.grey-card-box:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card.center .grey-card-box a,
.grey-card-box .hindex-link {
  display: inline-block !important;
  min-height: initial !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card.center .grey-card-box a:hover,
.grey-card-box .hindex-link:hover {
  transform: none !important;
  color: var(--accent) !important;
  text-decoration: underline !important;
}

.hindex-p {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--bd);
  border-top: 4px solid var(--p2);
}

.card h3 {
  color: var(--p);
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
}

.card-split-container {
  display: flex;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--bd);
  border-top: 4px solid var(--primary);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.card-split-col {
  flex: 1;
  background-color: #ffffff;
}

.card-split-col h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-dark);
  color: var(--primary-dark);
}

.center {
  text-align: center;
}

.card.center .sponsor-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.card.center .sponsor-link-item {
  display: block;
  background: #f8f9fa;
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s ease;
}

.card.center .sponsor-link-item img {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.card.center .sponsor-link-item:hover {
  border-color: var(--p2);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
  background: #fff;
}

.dates {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.dates div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--bd);
  gap: 6px;
}

.dates dt {
  font-weight: 600;
  color: var(--p);
  font-size: 13px;
  margin-top: 0;
  line-height: 1.4;
}

.dates dd {
  color: var(--a);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.evs li {
  position: relative;
  padding: 2px 0;
}

.evs li a {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--p2);
  padding: 8px 12px;
  border-radius: 8px;
  border-bottom: 1px solid var(--bd);
  transition: all 0.25s ease;
}

.evs li a:hover {
  background: var(--bg);
  color: var(--a);
  padding-left: 18px;
  border-color: var(--p2);
}

.evs li .mi {
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--a);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.evs li a:hover .mi {
  opacity: 1;
}

/* ==========================================
   8. FORMS & BUTTONS
   ========================================== */
.btn {
  display: inline-block;
  background: var(--p2);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--a);
}

.btn.sm {
  white-space: nowrap;
}

.btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.form label {
  display: block;
  font-weight: 600;
  margin: 14px 0 4px;
}

.form input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #9ca3af;
  border-radius: 8px;
  font-size: 15px;
  margin-top: 4px;
  font-family: inherit;
}

.form input:focus {
  outline: 2px solid var(--p2);
}

.form input:disabled {
  background: #f3f4f6;
}

.row {
  display: flex;
  gap: 10px;
}

.hidden {
  display: none;
}

.msg {
  font-weight: 600;
  min-height: 22px;
}

.msg.ok {
  color: #047857;
}

.msg.err {
  color: #b91c1c;
}

.hint {
  font-size: 14px;
  color: var(--m);
}

/* ==========================================
   9. FOOTER, DRAWER & MOBILE NAV
   ========================================== */
.foot {
  background: #1e1b4b;
  color: #ddd6fe;
}

.foot-content {
  padding-top: 30px;
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.foot-left {
  text-align: left;
}

.foot-left h4 {
  color: #fda4af;
  font-size: 20px;
  margin-bottom: 4px;
}

.foot-left a {
  color: #fff;
  font-weight: 500;
}

.foot-right {
  text-align: right;
}

.foot-right h4 {
  color: #fda4af;
  font-size: 16px;
  margin-bottom: 8px;
}

.soc-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.soc-foot img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}

.soc-foot img:hover {
  transform: translateY(-2px);
}

.copy {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  text-align: center;
}

.burger {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 90;
}

.overlay.on {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 100;
  transition: 0.3s;
  padding: 18px;
}

.drawer.on {
  right: 0;
}

.dh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--a);
  padding-bottom: 8px;
}

.dh h4 {
  color: var(--p);
  font-size: 20px;
}

.dh button {
  background: none;
  border: 0;
  font-size: 34px;
  cursor: pointer;
  color: var(--p);
}

.drawer a {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--bd);
}

.drawer a.active {
  color: var(--a);
}

#topBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--a);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 60;
}

#topBtn.show {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   10. MEDIA QUERIES (RESPONSIVE)
   ========================================== */
@media(max-width: 1000px) {
  .layout { 
    grid-template-columns: 1fr; 
  }
}

@media(max-width: 860px) {
  .menu { 
    display: none; 
    position: static;
    transform: none;
  }
  .burger { 
    display: block; 
  }
  .nav {
    min-height: 70px;
  }
  .brand-logo {
    width: 50px;
    height: 50px;
  }
  .banner-cta-container {
    bottom: 5%;
  }
  .paper-submit-btn {
    font-size: 13px;
    padding: 8px 22px;
  }
}

@media(max-width: 600px) {
  .topics { 
    columns: 1; 
  }
  .main { 
    padding: 20px 16px; 
  }
  .row { 
    flex-direction: column; 
  }
  .card-split-container {
    flex-direction: column;
  }
  .timer-container {
    gap: 8px;
  }
  .time-box {
    min-width: 65px;
    padding: 8px;
  }
  .time-box span:first-child {
    font-size: 22px;
  }
  .foot-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .foot-left, .foot-right {
    text-align: center;
  }
  .soc-foot {
    justify-content: center;
  }
}
/* ==========================================
   11. SUBMISSION SYSTEM (Paper + Author details)
   ========================================== */
.subform { margin-top: 18px; }

.sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.sub-panel {
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: #fff;
  padding: 0 0 8px;
  min-width: 0;
  overflow: hidden;
}

.sub-head {
  float: left;
  width: 100%;
  padding: 12px 18px;
  background: var(--p);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 16px;
}

.sub-head + .fld { clear: both; }

.sub-panel .fld { padding: 0 18px; margin-bottom: 14px; }

.subform label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--p);
  margin-bottom: 5px;
}

.subform .sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.req { color: var(--a); font-weight: 700; }

.subform input[type="text"],
.subform input[type="email"],
.subform input[type="tel"],
.subform select,
.subform textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c4b8ea;
  border-radius: 8px;
  background: #fff;
  color: var(--t);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}

.subform textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.subform select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234c1d95' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.subform ::placeholder { color: #8b8fa3; opacity: 1; }

.subform input:focus,
.subform select:focus,
.subform textarea:focus {
  outline: none;
  border-color: var(--p2);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .18);
}

.subform .is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
}

.fld-err {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c;
}

.subform .hint { display: block; margin-top: 5px; font-size: 13px; line-height: 1.45; color: var(--m); }

/* file picker */
.filebox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px dashed #b4a5e6;
  border-radius: 8px;
  background: var(--bg);
  transition: border-color .15s, background .15s;
}
.filebox:hover, .filebox:focus-within { border-color: var(--p2); background: #efe9ff; }
.filebox.is-invalid { border-color: #dc2626; }
.filebox.has-file { border-style: solid; background: #f0fdf4; border-color: #34d399; }

.filebox input[type="file"] {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  color: var(--t);
}
.filebox input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--p2);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.filebox input[type="file"]::file-selector-button:hover { background: var(--a); }
.file-name { display: none; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* actions */
.sub-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.sub-actions .msg { margin: 0; min-height: 0; flex: 1 1 260px; text-align: left; }

.submit-btn {
  min-width: 160px;
  padding: 12px 34px;
  border: 0;
  border-radius: 8px;
  background: var(--p2);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.submit-btn:hover { background: var(--a); }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:focus-visible { outline: 3px solid rgba(124, 58, 237, .4); outline-offset: 2px; }
.submit-btn:disabled { background: #9ca3af; cursor: wait; }

/* notes */
.sub-note {
  margin-top: 22px;
  padding: 16px 20px;
  border-left: 4px solid var(--g);
  border-radius: 0 10px 10px 0;
  background: #fffbeb;
}
.sub-note .note-h { margin: 0 0 6px; font-weight: 700; color: #92400e; }
.sub-note ul { list-style: disc; padding-left: 20px; }
.sub-note li { font-size: 14px; line-height: 1.6; margin: 5px 0; color: #78350f; text-align: left; }
.sub-note a { color: var(--p2); font-weight: 600; text-decoration: underline; }

/* success panel */
.sub-success {
  text-align: center;
  padding: 34px 22px;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  background: #ecfdf5;
}
.sub-success .tick {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%;
  background: #059669; color: #fff;
  display: grid; place-items: center;
  font-size: 30px; line-height: 1;
}
.sub-success h3 { color: #065f46; font-size: 22px; margin-bottom: 6px; }
.sub-success p { text-align: center !important; color: #064e3b; }
.sub-success .ref { font-weight: 700; }

@media (max-width: 760px) {
  .sub-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .subform * { transition: none !important; }
}

/* OTP verification inside the submission form */
.otp-row { display: flex; gap: 8px; }
.otp-row input { flex: 1 1 auto; min-width: 0; }
.otp-box { margin-top: 8px; }
.otp-btn {
  flex: 0 0 auto;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--p2);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s;
}
.otp-btn:hover:not(:disabled) { background: var(--a); }
.otp-btn:disabled { background: #b8b2cf; cursor: not-allowed; }
.otp-btn:focus-visible { outline: 3px solid rgba(124, 58, 237, .4); outline-offset: 2px; }
.otp-msg { margin: 6px 0 0 !important; min-height: 0; font-size: 13px; font-weight: 600; line-height: 1.45; text-align: left !important; }
.otp-msg:empty { display: none; }
.otp-msg.ok { color: #047857; }
.otp-msg.err { color: #b91c1c; }
.subform input.is-verified { border-color: #34d399; background: #f0fdf4; }
.filebox.is-locked { opacity: .6; cursor: not-allowed; background: #f3f4f6; border-style: dashed; }
.filebox.is-locked input[type="file"], .filebox.is-locked input[type="file"]::file-selector-button { cursor: not-allowed; }
.filebox.is-locked input[type="file"]::file-selector-button { background: #9ca3af; }
