/* ================================================
   IBA Modern Design System — iba-modern.css
   Prime Minister's International Business Awards
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy:        #1e2a5e;
  --navy-dark:   #141d45;
  --navy-light:  #2d3f8a;
  --gold:        #c9a84c;
  --gold-dark:   #a8852c;
  --gold-pale:   #fdf8ec;
  --bg:          #f0f4f8;
  --white:       #ffffff;
  --text:        #1a202c;
  --text-muted:  #718096;
  --border:      #e2e8f0;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.14);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;
  --ease:        all 0.2s ease;
}

/* ---- Global reset for iba pages ---- */
body.iba-auth,
body.iba-home,
body.iba-app {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  margin: 0;
  padding: 0;
}

/* ================================================
   AUTH PAGES  (login.aspx / signup.aspx)
   ================================================ */

body.iba-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.iba-auth > form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.iba-auth-wrap {
  display: flex;
  flex: 1;
  min-height: 100vh;
  overflow: hidden;
}

/* ── Left brand panel ─────────────────────────────── */
.iba-brand-panel {
  flex: 0 0 42%;
  background: linear-gradient(155deg, #0a1128 0%, #1e2a5e 45%, #14205a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}

/* Top-right warm gold glow */
.iba-brand-panel::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(201,168,76,0.22) 0%, transparent 68%);
  pointer-events: none;
}

/* Bottom-left cool glow */
.iba-brand-panel::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.10) 0%, transparent 68%);
  pointer-events: none;
}

.iba-brand-inner {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
  max-width: 340px;
}

.iba-brand-logo {
  width: 88px;
  height: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
}

.iba-brand-title {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 14px;
  color: white;
}

.iba-brand-gold { color: var(--gold); }

.iba-brand-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  margin: 0 0 32px;
  line-height: 1.65;
}

.iba-brand-divider {
  width: 44px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 32px;
  border-radius: 2px;
}

.iba-brand-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.iba-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-left: 3px solid rgba(201,168,76,0.60);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 11px 16px;
  transition: background 0.2s;
}

.iba-feature:hover { background: rgba(255,255,255,0.10); }

.iba-feature i {
  font-size: 16px;
  color: var(--gold);
  width: 20px;
  flex-shrink: 0;
  text-align: center;
}

.iba-feature span {
  font-size: 13px;
  color: rgba(255,255,255,0.90);
  font-weight: 500;
}

/* ── Right form panel ─────────────────────────────── */
.iba-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  /* Layered background */
  background-color: #1a2860;
  background-image:
    repeating-linear-gradient(
      -55deg,
      transparent 0px,
      transparent 38px,
      rgba(255,255,255,0.03) 38px,
      rgba(255,255,255,0.03) 39px
    ),
    repeating-linear-gradient(
      35deg,
      transparent 0px,
      transparent 38px,
      rgba(255,255,255,0.03) 38px,
      rgba(255,255,255,0.03) 39px
    ),
    radial-gradient(ellipse at 85% 10%, rgba(201,168,76,0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(14,20,60,0.85) 0%, transparent 60%),
    linear-gradient(160deg, #1e2a5e 0%, #141d45 60%, #0e1435 100%);
}

/* Gold arc ring — top-right */
.iba-form-panel::before {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 60px solid rgba(201,168,76,0.10);
  pointer-events: none;
}

/* Faint gold ring — bottom-left */
.iba-form-panel::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 40px solid rgba(201,168,76,0.07);
  pointer-events: none;
}

/* IBA logo watermarks */
.iba-panel-logo-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.iba-panel-logo-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Large logo — bottom-right corner, very slow spin */
.iba-panel-logo-br {
  bottom: -90px;
  right: -90px;
  width: 420px;
  height: 420px;
  opacity: 0.16;
  animation: iba-logo-spin 70s linear infinite;
  transform-origin: center center;
}

/* Smaller logo — upper-right, gentle counter-spin */
.iba-panel-logo-tr {
  top: 24px;
  right: 24px;
  width: 100px;
  height: 100px;
  opacity: 0.11;
  animation: iba-logo-spin-rev 100s linear infinite;
  transform-origin: center center;
}

@keyframes iba-logo-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes iba-logo-spin-rev {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
/* ── Form card ────────────────────────────────────── */
.iba-form-card {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow:
    0 2px 0 rgba(201,168,76,0.60),
    0 32px 80px rgba(0,0,0,0.55),
    0 8px 24px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 44px 42px 40px;
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.9);
}

/* Gold gradient top bar */
.iba-form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, #e8c96a 50%, var(--gold-dark) 100%);
  border-radius: 20px 20px 0 0;
}

/* Subtle inner glow */
.iba-form-card::after {
  content: '';
  position: absolute;
  top: 4px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.25), transparent);
}

.iba-form-logo-mobile {
  width: 64px;
  height: auto;
  display: none;
  margin: 0 auto 20px;
}

.iba-form-heading {
  font-size: 29px;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 0 0 6px;
  letter-spacing: -0.4px;
}

.iba-form-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

/* ── Form fields ──────────────────────────────────── */
.iba-field { margin-bottom: 18px; }

.iba-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.iba-label i {
  color: var(--navy);
  margin-right: 5px;
  width: 14px;
}

.iba-input,
.iba-input.form-control {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: var(--text) !important;
  background: #f7f9fc !important;
  border: 2px solid #e8edf5 !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
  line-height: 1.5 !important;
}

.iba-input:focus,
.iba-input.form-control:focus {
  border-color: var(--navy) !important;
  background: var(--white) !important;
  box-shadow: 0 0 0 4px rgba(30,42,94,0.09) !important;
}

.iba-input::placeholder { color: #c0cad8; }

/* ── Buttons ──────────────────────────────────────── */
.iba-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px;
  padding: 13px 28px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.22s ease !important;
  letter-spacing: 0.03em;
  line-height: 1 !important;
}

/* Sign In — navy with gold shimmer on hover */
.iba-btn-primary {
  background: linear-gradient(135deg, #1e2a5e 0%, #2d3f8a 100%) !important;
  color: white !important;
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(30,42,94,0.30);
  position: relative;
  overflow: hidden;
}

.iba-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.iba-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(30,42,94,0.45) !important;
  color: white !important;
  text-decoration: none !important;
}

.iba-btn-primary:hover::after { opacity: 1; }

/* Sign Up — gold gradient */
.iba-btn-signup {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
  color: var(--navy-dark) !important;
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(201,168,76,0.30);
}

.iba-btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,0.45) !important;
  color: var(--navy-dark) !important;
  text-decoration: none !important;
}

/* ── Alerts ───────────────────────────────────────── */
.iba-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.55;
}

.iba-alert-error {
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  color: #b91c1c;
}

.iba-alert-success {
  background: #f0fff4;
  border: 1.5px solid #86efac;
  color: #166534;
}

.iba-alert i { margin-top: 2px; flex-shrink: 0; }

/* ── Validation ───────────────────────────────────── */
.iba-valid-wrap {
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 14px;
  color: #b91c1c;
  font-size: 13px;
}

/* ── Form links ───────────────────────────────────── */
.iba-form-links {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eef0f6;
}

.iba-form-links p {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.iba-form-links p:last-child { margin: 0; }

.iba-form-links a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

.iba-form-links a:hover {
  color: var(--gold-dark);
  text-decoration: none;
}

/* Username check feedback */
.iba-email-feedback {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  margin-top: 4px;
}

/* Username check feedback */
.iba-email-feedback {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  margin-top: 4px;
}

/* ================================================
   HOME PAGE  (HomePage.aspx)
   ================================================ */

/* Top navbar */
.iba-navbar {
  background: var(--navy);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.22);
}

.iba-navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.iba-navbar-logo { height: 40px; width: auto; }

.iba-navbar-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
  line-height: 1.35;
  display: none;
}

@media (min-width: 576px) { .iba-navbar-name { display: block; } }

.iba-navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.iba-welcome-text {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  display: flex;
  align-items: center;
  gap: 7px;
}

.iba-welcome-text i { color: var(--gold); font-size: 14px; }

.iba-welcome-name { display: none; }
@media (min-width: 576px) { .iba-welcome-name { display: inline; } }

.iba-btn-nav-logout {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: white !important;
  padding: 7px 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  cursor: pointer;
  font-family: inherit !important;
  transition: var(--ease) !important;
  line-height: 1.4 !important;
}

.iba-btn-nav-logout:hover {
  background: rgba(255,255,255,0.22) !important;
  color: white !important;
}

/* Home content */
.iba-home-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 48px;
}

.iba-home-heading {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.iba-home-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 28px;
}

/* Award category cards */
.iba-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .iba-cards-grid { grid-template-columns: 1fr 1fr; }
}

.iba-award-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
}

.iba-award-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.iba-card-header {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.iba-card-header i {
  font-size: 22px;
  color: var(--navy-dark);
}

.iba-card-header h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0;
}

.iba-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.iba-card-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 20px;
  flex: 1;
}

/* Note box */
.iba-note-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.iba-note-box h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.iba-note-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.iba-note-box strong { color: var(--text); }

/* ================================================
   APPLICATION PAGE  (application.aspx)
   ================================================ */

/* App top navbar */
.iba-app-nav {
  background: var(--navy);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.iba-app-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iba-app-nav-logo {
  height: 34px;
  width: auto;
}

.iba-app-nav-appname {
  font-size: 12.5px;
  font-weight: 600;
  color: white;
  display: none;
}

@media (min-width: 768px) { .iba-app-nav-appname { display: block; } }

.iba-app-nav-center {
  flex: 1;
  text-align: center;
}

.iba-app-nav-title {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  display: none;
  margin: 0;
}

@media (min-width: 992px) { .iba-app-nav-title { display: block; } }

.iba-app-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iba-nav-user {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  gap: 6px;
  display: none;
}

@media (min-width: 576px) { .iba-nav-user { display: flex; align-items: center; } }

/* Step tab navigation */
.iba-steps-bar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  position: sticky;
  top: 58px;
  z-index: 100;
}

.iba-steps-bar::-webkit-scrollbar { height: 3px; }
.iba-steps-bar::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 2px; }

.iba-steps-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 12px;
  min-width: max-content;
  align-items: stretch;
}

.iba-step-item { display: flex; }

.iba-step-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 15px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  transition: var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.iba-step-link:hover {
  color: var(--navy);
  border-bottom-color: rgba(30,42,94,0.3);
  text-decoration: none;
  background: transparent;
}

.iba-step-link.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
  font-weight: 700;
}

.iba-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 700;
  background: #e2e8f0;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: var(--ease);
}

.iba-step-link.active .iba-step-num {
  background: var(--navy);
  color: white;
}

.iba-step-link:hover .iba-step-num {
  background: var(--navy-light);
  color: white;
}

.iba-step-home-item { margin-left: 16px; border-left: 1px solid var(--border); }

.iba-step-home-item .iba-step-link {
  color: var(--text-muted);
  padding-left: 20px;
}

.iba-step-home-item .iba-step-link:hover { color: var(--navy); background: transparent; }

/* App main content */
.iba-app-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

@media (min-width: 768px) { .iba-app-body { padding: 28px 24px 48px; } }

/* Validation bar */
.iba-app-valid {
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #c53030;
  font-size: 13px;
}

/* Tab panels */
.tab-pane.iba-tab-panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-top: 8px;
}

@media (max-width: 576px) {
  .tab-pane.iba-tab-panel { padding: 16px 14px; }
}

/* Section card headers in forms */
.iba-section-head {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.iba-section-head h4,
.iba-section-head h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
}

.iba-section-head i { color: var(--navy-dark); font-size: 16px; }

/* Table forms */
.tab-pane .table-bordered th {
  background: #f7f9fc !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  padding: 10px 12px !important;
  vertical-align: middle;
}

.tab-pane .table-bordered td {
  padding: 9px 12px !important;
  font-size: 13px !important;
  vertical-align: middle;
}

/* Inputs within application tabs */
.tab-pane input[type=text],
.tab-pane input[type=email],
.tab-pane input[type=number],
.tab-pane input[type=tel],
.tab-pane select,
.tab-pane textarea {
  width: 100% !important;
  min-width: 0 !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  color: var(--text) !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  outline: none !important;
  box-shadow: none !important;
}

.tab-pane input[type=text]:focus,
.tab-pane input[type=email]:focus,
.tab-pane input[type=number]:focus,
.tab-pane input[type=tel]:focus,
.tab-pane select:focus,
.tab-pane textarea:focus {
  border-color: var(--navy) !important;
  background: white !important;
  box-shadow: 0 0 0 3px rgba(30,42,94,0.07) !important;
}

.tab-pane textarea {
  min-height: 100px !important;
  resize: vertical;
}

/* Checkboxes */
.tab-pane input[type=checkbox] {
  width: 17px !important;
  min-width: 17px !important;
  height: 17px !important;
  cursor: pointer;
  accent-color: var(--navy);
}

/* Buttons inside tabs */
.tab-pane .btn-primary,
.tab-pane .btn-secondary,
.tab-pane .buttontry {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: white !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 9px 20px !important;
  font-size: 13px !important;
  transition: var(--ease) !important;
}

.tab-pane .btn-primary:hover,
.tab-pane .btn-secondary:hover,
.tab-pane .buttontry:hover {
  background: var(--navy-dark) !important;
  border-color: var(--navy-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(30,42,94,0.25) !important;
}

/* Scrollable criteria box */
.ScrollStyle {
  background: #f8fafc !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 18px 22px !important;
}

/* Responsive overflow for tables */
.iba-tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}

/* Radio/checkbox label text */
.tab-pane label {
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

/* ================================================
   SUPPORTING DOCUMENTS — Dropzone upload slots
   ================================================ */

/* Section banner */
.iba-support-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.iba-support-banner i { color: var(--navy-dark); font-size: 18px; }

.iba-support-banner h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
}

/* Individual upload slot card */
.iba-upload-slot {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid #3b82f6;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* Slot header bar */
.iba-upload-slot-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.iba-upload-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.iba-upload-slot-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 4px;
}

.iba-upload-slot-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.iba-upload-slot-meta i { color: var(--gold-dark); margin-right: 3px; }

/* Drop zone area */
.iba-dz-wrap {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  margin: 16px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafbff;
  position: relative;
}

.iba-dz-wrap:hover,
.iba-dz-wrap.dz-drag-hover {
  border-color: var(--navy);
  background: rgba(30, 42, 94, 0.04);
}

.iba-dz-cloud {
  font-size: 36px;
  color: var(--navy);
  opacity: 0.5;
  display: block;
  margin-bottom: 10px;
}

.iba-dz-msg {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.iba-dz-link { color: var(--navy); text-decoration: underline; cursor: pointer; }

.iba-dz-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* File list (queued / uploading / done) */
.iba-dz-list {
  padding: 0 16px 4px;
}

/* Single file row */
.iba-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border);
  margin-bottom: 7px;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}

.iba-file-row.is-success { border-color: #86efac; background: #f0fff4; }
.iba-file-row.is-error   { border-color: #fca5a5; background: #fff5f5; }

/* Animated progress underline */
.iba-file-row::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: var(--progress, 0%);
  background: var(--navy);
  transition: width 0.2s;
}

.iba-file-row.is-success::after { background: #22c55e; width: 100%; }
.iba-file-row.is-error::after   { background: #ef4444; width: 100%; }

.iba-file-icon { font-size: 16px; flex-shrink: 0; color: var(--text-muted); }
.iba-file-row.is-success .iba-file-icon { color: #16a34a; }
.iba-file-row.is-error   .iba-file-icon { color: #dc2626; }

.iba-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: var(--text);
}

.iba-file-size { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }

.iba-file-status { font-size: 12px; font-weight: 600; flex-shrink: 0; }
.iba-file-status.ok  { color: #16a34a; }
.iba-file-status.err { color: #dc2626; }
.iba-file-status.up  { color: var(--navy); }

.iba-file-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}

.iba-file-remove:hover { color: #dc2626; background: #fff5f5; }

.iba-file-error-msg {
  width: 100%;
  font-size: 11.5px;
  color: #dc2626;
  margin-top: 3px;
  padding-left: 26px;
}

/* Saved files bar */
.iba-saved-files-bar {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  background: #f9fafb;
}

.iba-btn-show-saved {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  color: var(--navy) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  cursor: pointer;
  font-family: inherit !important;
  transition: var(--ease) !important;
}

.iba-btn-show-saved:hover {
  background: var(--navy) !important;
  color: white !important;
  border-color: var(--navy) !important;
}

.iba-saved-count {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-left: 12px;
}

.iba-files-grid { margin-top: 12px !important; }

/* Notification toast (save result) */
.iba-upload-toast {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 14px 18px;
  min-width: 260px;
  max-width: 360px;
  border-left: 4px solid var(--navy);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  animation: toastIn 0.25s ease;
}

.iba-upload-toast.toast-success { border-left-color: #16a34a; }
.iba-upload-toast.toast-error   { border-left-color: #dc2626; }
.iba-upload-toast i { margin-right: 8px; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   AWARD CATEGORIES — Selectable Award Cards
   ================================================ */

.iba-awards-header {
  text-align: center;
  margin-bottom: 24px;
}

.iba-awards-header h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.iba-awards-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.iba-awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}

@media (max-width: 1100px) { .iba-awards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .iba-awards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 420px)  { .iba-awards-grid { grid-template-columns: 1fr; } }

/* ── Award card — default (clean white) ── */
.iba-award-sel {
  position: relative;
  border-radius: var(--radius);
  border: 1.5px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 14px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.22s ease;
  overflow: hidden;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.iba-award-sel:hover {
  border-color: #a0aec0;
  box-shadow: 0 6px 22px rgba(30,42,94,0.12);
  transform: translateY(-4px);
}

/* ── Selected: premium dark flip ── */
.iba-award-sel.is-selected {
  background: linear-gradient(150deg, #1e2a5e 0%, #141d45 100%);
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.20), 0 10px 32px rgba(20,29,69,0.35);
  transform: translateY(-4px);
}

/* ── Card top strip ── */
.iba-award-sel-top {
  background: #f8fafc;
  border-top: 3px solid #e2e8f0;
  border-bottom: 1px solid #f0f4f8;
  padding: 7px 12px 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.22s;
}

.iba-award-sel:hover .iba-award-sel-top {
  border-top-color: #a0aec0;
  background: #f1f5f9;
}

.iba-award-sel.is-selected .iba-award-sel-top {
  background: rgba(255,255,255,0.06);
  border-top: 3px solid var(--gold);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* ── Number badge ── */
.iba-award-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.22s, color 0.22s;
}

.iba-award-sel.is-selected .iba-award-badge {
  background: var(--gold);
  color: var(--navy-dark);
}

/* ── "AWARD N" label ── */
.iba-award-sel-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.22s;
}

.iba-award-sel.is-selected .iba-award-sel-label {
  color: rgba(255,255,255,0.55);
}

/* ── Checkmark bubble (top-right) ── */
.iba-award-checkmark {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.22s, transform 0.22s;
  box-shadow: 0 2px 8px rgba(201,168,76,0.45);
}

.iba-award-sel.is-selected .iba-award-checkmark {
  opacity: 1;
  transform: scale(1);
}

.iba-award-checkmark i {
  font-size: 10px;
  color: var(--navy-dark);
}

/* ── Card body ── */
.iba-award-sel-body {
  padding: 6px 12px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Trophy icon ── */
.iba-award-trophy-icon {
  display: block;
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 5px;
  transition: color 0.22s, transform 0.22s;
}

.iba-award-sel:hover .iba-award-trophy-icon {
  color: var(--navy-light);
}

.iba-award-sel.is-selected .iba-award-trophy-icon {
  color: var(--gold);
  transform: scale(1.15);
}

/* ── Award name ── */
.iba-award-sel-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 8px;
  flex: 1;
  transition: color 0.22s;
}

.iba-award-sel.is-selected .iba-award-sel-name {
  color: #fff;
}

/* ── Select / Selected pill ── */
.iba-award-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  background: #f0f4f8;
  border-radius: 20px;
  padding: 5px 12px;
  transition: all 0.22s;
  border: 1px solid transparent;
}

.iba-award-sel:hover .iba-award-pill {
  background: #e2e8f0;
  color: var(--navy);
}

.iba-award-sel.is-selected .iba-award-pill {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold-dark);
  font-weight: 700;
}

.iba-award-pill i { font-size: 10px; }

/* ── Hide ASP.NET checkbox ── */
.iba-award-sel input[type=checkbox] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}
.iba-award-sel label { display: none !important; }

/* ── Hint callout ── */
.iba-award-hint {
  background: #fff5f5;
  border: 1.5px solid #c0392b;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 14.5px;
  color: #7b1e1e;
  text-align: center;
  margin-top: 4px;
}

.iba-award-hint i { color: #c0392b; margin-right: 8px; }

/* ── Unified Tab Section Header ── */
.iba-tab-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8ecf2;
  border-left: 5px solid var(--gold);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(30,42,94,0.07);
}
.iba-tab-header-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 19px; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(30,42,94,0.22);
}
.iba-tab-header-title {
  font-size: 16px; font-weight: 800;
  color: var(--navy-dark); margin: 0 0 4px; letter-spacing: -0.2px;
}
.iba-tab-header-sub {
  font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.5;
}
.iba-tab-header-watermark {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 66px; font-weight: 900; color: var(--navy);
  opacity: 0.045; line-height: 1; pointer-events: none;
  user-select: none; letter-spacing: -3px;
}

/* ── Unified Tab Navigation Bar ── */
.iba-nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 18px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.iba-nav-bar-right { display: flex; justify-content: flex-end; }

.iba-nav-btn-prev,
.iba-nav-btn-save,
.iba-nav-btn-next {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 9px; font-size: 13.5px;
  font-weight: 700; cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.iba-nav-btn-prev {
  background: #fff; color: var(--navy); border: 1.5px solid var(--border);
}
.iba-nav-btn-prev:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.iba-nav-btn-save {
  background: rgba(201,168,76,0.10); color: var(--gold-dark);
  border: 1.5px solid rgba(201,168,76,0.35);
}
.iba-nav-btn-save:hover { background: rgba(201,168,76,0.18); color: var(--gold-dark); text-decoration: none; }
.iba-nav-btn-next {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; border: none; box-shadow: 0 4px 14px rgba(30,42,94,0.25);
}
.iba-nav-btn-next:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(30,42,94,0.35); }

/* ================================================
   AWARD QUESTIONS — Left Sidebar Nav
   ================================================ */

/* ─────────────────────────────────────────────────────────── */

/* ── Award sidebar — unified dark panel (matches FETA style) ── */
.iba-award-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--navy-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Header */
.iba-award-nav-header-item {
  margin-bottom: 0;
}

.iba-award-nav-header {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  background: #0d1535;
  padding: 14px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.iba-award-nav-header-icon {
  font-size: 13px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

.iba-award-nav-header-title {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.2;
}

.iba-award-nav-header-sub {
  width: 100%;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  padding-left: 21px;
  white-space: normal;
  word-break: break-word;
}

/* "No categories selected" placeholder */
.iba-award-nav-empty {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
  text-align: center;
  gap: 5px;
  background: #fff;
}

.iba-award-nav-empty .fa {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 4px;
}

.iba-award-nav-empty span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
}

.iba-award-nav-empty small {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Each nav item row */
.iba-award-nav-item {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(30,42,94,0.08);
}

.iba-award-nav-link {
  display: flex !important;
  align-items: center;
  gap: 9px;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border: none !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  color: var(--navy) !important;
  text-decoration: none !important;
  font-family: 'Inter', sans-serif !important;
  transition: background 0.15s, border-color 0.15s !important;
  cursor: pointer;
  outline: none !important;
}

.iba-award-nav-link:hover {
  background: #f0f4fc !important;
  border-left-color: var(--navy-light) !important;
  text-decoration: none !important;
}

.iba-award-nav-link.active {
  background: #dde6f5 !important;
  border-left: 3px solid var(--gold) !important;
  color: var(--navy) !important;
}

/* Number circle */
.iba-award-nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: rgba(30,42,94,0.10);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.iba-award-nav-link:hover .iba-award-nav-num {
  background: rgba(30,42,94,0.18);
  color: var(--navy);
}

.iba-award-nav-link.active .iba-award-nav-num {
  background: var(--navy);
  color: #fff;
}

/* Text block */
.iba-award-nav-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.iba-award-nav-label {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--navy);
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
}

.iba-award-nav-name {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

/* Trophy icon */
.iba-award-nav-trophy {
  font-size: 11px;
  color: #c8d0de;
  flex-shrink: 0;
  transition: color 0.15s;
}

.iba-award-nav-link:hover .iba-award-nav-trophy,
.iba-award-nav-link.active .iba-award-nav-trophy {
  color: var(--gold);
}

/* ================================================
   RESPONSIVE  — mobile / tablet tweaks
   ================================================ */

/* Mobile: hide brand panel, show mobile logo */
@media (max-width: 767px) {
  .iba-brand-panel { display: none; }

  .iba-form-panel {
    padding: 32px 16px;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
  }

  .iba-form-card {
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(30,42,94,0.10);
  }

  .iba-form-logo-mobile { display: block; }
  .iba-form-heading { font-size: 24px; }

  .iba-home-body { padding: 20px 16px; }
  .iba-app-body { padding: 16px 12px; }
  .tab-pane.iba-tab-panel { padding: 16px 14px; }

  /* Hide the year badge on small phones — not enough room */
  .iba-navbar-badge { display: none; }

  /* Tighten homepage navbar on mobile */
  .iba-navbar { padding: 0 14px; height: 56px; }
  .iba-navbar-logo { height: 34px; }
  .iba-btn-nav-logout { padding: 6px 12px !important; font-size: 12px !important; }

  /* Steps bar — tighter tabs so more fit without scrolling */
  .iba-step-link { padding: 12px 10px; font-size: 11.5px; gap: 5px; }
  .iba-step-num  { width: 18px; height: 18px; font-size: 9.5px; }
}

/* Tablet: show compact brand panel stacked */
@media (min-width: 576px) and (max-width: 767px) {
  .iba-auth-wrap { flex-direction: column; }

  .iba-brand-panel {
    display: flex;
    flex: 0 0 auto;
    min-height: 200px;
    padding: 28px 24px;
  }

  .iba-brand-features { display: none; }
  .iba-brand-logo { width: 56px; margin-bottom: 14px; }
  .iba-brand-title { font-size: 19px; }
  .iba-brand-divider { display: none; }

  .iba-form-panel {
    padding: 36px 24px;
    min-height: 0;
    flex: 1;
    align-items: center;
  }

  .iba-form-logo-mobile { display: none; }
}

/* Large screens — constrain brand panel max width */
@media (min-width: 1400px) {
  .iba-brand-panel { flex: 0 0 480px; }
}

/* ---- Application navbar mobile tightening (<= 480px) ---- */
@media (max-width: 480px) {
  .iba-app-nav {
    height: 50px;
    padding: 0 10px;
  }

  .iba-app-nav-logo { height: 28px; }

  /* Hide center title entirely — already hidden at <992px but be explicit */
  .iba-app-nav-title { display: none !important; }

  /* Shrink logout button */
  .iba-btn-nav-logout {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }

  /* Step links a bit tighter */
  .iba-step-link { padding: 12px 11px; font-size: 11.5px; }
  .iba-step-num  { width: 18px; height: 18px; font-size: 9.5px; }

}

/* ================================================
   MOBILE STEP DROPDOWN  (shown only on mobile)
   ================================================ */

/* Mobile step dropdown — base styles */
.iba-steps-mobile-bar {
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  box-sizing: border-box;
  z-index: 150;
}

/* Desktop: hide dropdown, show horizontal steps bar */
@media (min-width: 768px) {
  .iba-steps-mobile-bar { display: none; }
  .iba-steps-bar { display: block; }
}

/* Mobile: fixed to viewport so it can NEVER drift off-screen horizontally */
@media (max-width: 767px) {
  .iba-steps-mobile-bar {
    display: flex;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    width: 100%;
  }
  .iba-steps-bar { display: none; }
  /* Push content down so the fixed bar doesn't cover it (bar ~60px tall) */
  .iba-app-body { margin-top: 62px; }
}

/* Tighter top offset when nav is compact at <=480px */
@media (max-width: 480px) {
  .iba-steps-mobile-bar { top: 50px; }
}

.iba-steps-mobile-dropdown {
  flex: 1;
  min-width: 0;
  width: 0;            /* flex will grow it to fill remaining space */
  box-sizing: border-box;
  padding: 10px 36px 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  background: #f8fafc 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' stroke='%231e2a5e' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.iba-steps-mobile-dropdown:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30,42,94,0.08);
}

.iba-steps-mobile-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  font-size: 17px;
  text-decoration: none !important;
  transition: background 0.15s;
}

.iba-steps-mobile-home:hover {
  background: var(--navy-light);
  color: white;
}

/* ---- File upload button — mobile touch target ---- */
@media (max-width: 767px) {
  .ajax__fileupload_selectFileButton {
    min-height: 44px !important;
    width: 100% !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
  }
}

/* ---- Application navbar small tablet (481px – 767px) ---- */
@media (min-width: 481px) and (max-width: 767px) {
  .iba-app-nav { padding: 0 14px; }
  .iba-app-nav-title { display: none !important; }
}

/* Print */
@media print {
  .iba-navbar,
  .iba-app-nav,
  .iba-steps-bar { display: none !important; }
}


/* ================================================
   Executive Summary — Sector Tile Grid
   ================================================ */

.iba-sector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.iba-sector-tile {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 10px 14px;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.iba-sector-tile:hover {
  border-color: rgba(201, 168, 76, 0.5);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.15);
  transform: translateY(-1px);
}

.iba-sector-tile.is-selected {
  border-color: var(--gold);
  border-width: 2.5px;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18), 0 4px 16px rgba(201, 168, 76, 0.22);
  background: #fffdf5;
}

.iba-sector-icon {
  font-size: 28px;
  color: #b0bec5;
  transition: color 0.2s, transform 0.2s;
  display: block;
}

.iba-sector-tile.is-selected .iba-sector-icon {
  color: var(--gold);
  transform: scale(1.12);
}

.iba-sector-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  flex: 1;
}

.iba-sector-check {
  font-size: 14px;
  color: #d1d9e6;
  transition: color 0.2s;
}

.iba-sector-tile.is-selected .iba-sector-check {
  color: var(--gold);
}

.iba-sector-tile input[type=checkbox] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

@media (max-width: 1199px) {
  .iba-sector-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .iba-sector-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .iba-sector-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ================================================
   Agreement & Declaration — Tab 6
   ================================================ */

.iba-decl-header {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 24px;
  color: white;
}

.iba-decl-header > .fa {
  font-size: 38px;
  color: var(--gold);
  flex-shrink: 0;
}

.iba-decl-header-title {
  font-size: 21px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.iba-decl-header-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 5px;
}

/* Cards */
.iba-decl-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto 28px;
  max-width: 700px;
}

.iba-decl-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  cursor: pointer;
  transition: var(--ease);
  user-select: none;
}

.iba-decl-card:hover {
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 2px 14px rgba(201, 168, 76, 0.13);
  transform: translateX(2px);
}

.iba-decl-card.is-agreed {
  border-color: var(--gold);
  background: #fffdf5;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15), 0 4px 16px rgba(201, 168, 76, 0.18);
}

.iba-decl-card-icon {
  font-size: 28px;
  color: #b0bec5;
  width: 44px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.iba-decl-card.is-agreed .iba-decl-card-icon {
  color: var(--gold);
  transform: scale(1.08);
}

.iba-decl-card-body {
  flex: 1;
}

.iba-decl-card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 5px;
  transition: color 0.2s;
}

.iba-decl-card.is-agreed .iba-decl-card-label {
  color: var(--gold-dark);
}

.iba-decl-card-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

.iba-decl-card-check {
  flex-shrink: 0;
}

.iba-decl-checkbox {
  width: 30px;
  height: 30px;
  border: 2px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8;
  transition: all 0.2s;
}

.iba-decl-card.is-agreed .iba-decl-checkbox {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.35);
}

.iba-decl-checkmark {
  font-size: 14px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s, transform 0.15s;
}

.iba-decl-card.is-agreed .iba-decl-checkmark {
  opacity: 1;
  transform: scale(1);
}

.iba-decl-card input[type=checkbox] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Action buttons */
.iba-decl-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
  padding: 18px 0 40px;
  border-top: 1px solid var(--border);
}

.iba-btn-prev {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: #fff;
  border: 1.5px solid var(--border) !important;
  color: var(--navy) !important;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s;
}

.iba-btn-prev:hover {
  border-color: var(--navy) !important;
  color: var(--navy) !important;
  text-decoration: none !important;
}

.iba-btn-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 36px !important;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
  color: var(--navy-dark) !important;
  border: none !important;
  border-radius: 9px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(201,168,76,0.40) !important;
  transition: all 0.22s ease !important;
}

.iba-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(201,168,76,0.52) !important;
  color: var(--navy-dark) !important;
  text-decoration: none !important;
}

/* ── Rich Submit Button ── */
.iba-submit-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--gold) 0%, #b8922a 100%);
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(201,168,76,0.42);
  transition: all 0.22s ease;
  user-select: none;
}
.iba-submit-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201,168,76,0.55);
}
.iba-submit-icon {
  font-size: 28px;
  color: var(--navy-dark);
  flex-shrink: 0;
}
.iba-submit-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.iba-submit-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: 0.2px;
  line-height: 1;
}
.iba-submit-sub {
  font-size: 10.5px;
  color: rgba(20,29,69,0.62);
  font-weight: 500;
}
.iba-submit-hidden {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.iba-btn-submit:hover::before {
  opacity: 1;
}

.iba-btn-submit span,
.iba-btn-submit {
  position: relative;
  z-index: 1;
}

/* ---- Save Progress Toast Notification ---- */
.iba-toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 18px 18px;
  background: #fff;
  border-radius: 14px;
  border-left: 5px solid #16a34a;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  min-width: 300px;
  max-width: 380px;
}
.iba-toast-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(22,163,74,0.35);
}
.iba-toast-icon-wrap i {
  color: #fff;
  font-size: 17px;
}
.iba-toast-body {
  flex: 1;
  min-width: 0;
}
.iba-toast-title {
  font-size: 14px;
  font-weight: 700;
  color: #14532d;
  margin: 0 0 3px;
  line-height: 1.3;
}
.iba-toast-sub {
  font-size: 12.5px;
  color: #4b7a56;
  margin: 0;
  line-height: 1.5;
}
.iba-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 16px;
  padding: 0 0 0 4px;
  line-height: 1;
  transition: color 0.2s;
  margin-top: -2px;
}
.iba-toast-close:hover {
  color: #475569;
}
.iba-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 0 0 0 9px;
  width: 100%;
  transform-origin: left;
  animation: ibaToastProgress 3.2s linear forwards;
}
@keyframes ibaToastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
@keyframes ibaSpin {
  to { transform: rotate(360deg); }
}
@keyframes ibaSubmitProgress {
  from { width: 0%; }
  to   { width: 90%; }
}

/* ---- Validation Error Modal ---- */
.iba-app-valid { display: none !important; }

.iba-val-backdrop {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(14,20,50,0.55);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.iba-val-backdrop.iba-val-open {
  opacity: 1; pointer-events: auto;
}
.iba-val-modal {
  position: fixed; z-index: 99991;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  width: 90%; max-width: 520px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(14,20,50,0.22), 0 4px 16px rgba(14,20,50,0.10);
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34,1.3,0.64,1);
}
.iba-val-modal.iba-val-open {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%);
}
.iba-val-modal-head {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #fee2e2;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}
.iba-val-modal-icon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(220,38,38,0.35);
}
.iba-val-modal-icon i { color: #fff; font-size: 18px; }
.iba-val-modal-head-text { flex: 1; }
.iba-val-modal-title {
  font-size: 15px; font-weight: 800;
  color: #991b1b; margin: 0 0 3px;
}
.iba-val-modal-sub {
  font-size: 12px; color: #9ca3af; margin: 0;
}
.iba-val-modal-close {
  background: none; border: none; cursor: pointer;
  color: #9ca3af; font-size: 18px;
  padding: 4px; line-height: 1; transition: color 0.2s;
}
.iba-val-modal-close:hover { color: #6b7280; }
.iba-val-modal-body { padding: 20px 24px; max-height: 340px; overflow-y: auto; }
.iba-val-list { list-style: none; margin: 0; padding: 0; }
.iba-val-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f3f4f6;
  font-size: 13px; color: #374151; line-height: 1.5;
}
.iba-val-list li:last-child { border-bottom: none; }
.iba-val-list li::before {
  content: '\f071';
  font-family: FontAwesome;
  color: #ef4444; font-size: 11px;
  flex-shrink: 0; margin-top: 2px;
}
.iba-val-modal-foot {
  padding: 16px 24px;
  border-top: 1px solid #f3f4f6;
  display: flex; justify-content: flex-end;
}
.iba-val-modal-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 9px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(30,42,94,0.25);
  transition: opacity 0.2s;
}
.iba-val-modal-btn:hover { opacity: 0.88; }

/* ---- Word Limit Counter ---- */
.iba-wl-container { position: relative; }

textarea.iba-word-limited {
  width: 100%; resize: vertical;
  overflow-y: auto !important;
  height: 200px !important;
  min-height: 120px;
  font-size: 13px;
  line-height: 1.6;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
textarea.iba-word-limited:focus {
  border-color: var(--navy-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45,63,138,0.10);
}

.iba-wl-bar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px;
}
.iba-wl-count {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2px 9px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.iba-wl-count::before {
  content: '\f040';
  font-family: FontAwesome;
  font-size: 9px;
  opacity: 0.6;
}
.iba-wl-count.iba-wl-warn  { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.iba-wl-count.iba-wl-full  { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.iba-wl-track {
  flex: 1; height: 3px; background: #e2e8f0;
  border-radius: 4px; overflow: hidden;
}
.iba-wl-fill {
  height: 100%; width: 0%; border-radius: 4px;
  background: #22c55e;
  transition: width 0.2s ease, background 0.3s ease;
}
.iba-wl-fill.iba-wl-warn { background: #f59e0b; }
.iba-wl-fill.iba-wl-full { background: #ef4444; }
