/* Mobile-only responsive styles for Survey and ThankYou pages */
@media (max-width: 767.98px) {
  .container.survey-mobile, .container.thankyou-mobile {
    padding: 10px !important;
    max-width: 100% !important;
  }
  .container.survey-mobile h1,
  .container.thankyou-mobile h1 {
    font-size: 1.5rem !important;
  }
  .container.survey-mobile .btn,
  .container.thankyou-mobile a {
    font-size: 1rem !important;
    padding: 10px 10px !important;
  }
}

@media (max-width: 600px) {
  .container.thankyou-mobile {
    padding: 20px 5px !important;
  }
  .container.thankyou-mobile h1 {
    font-size: 2rem !important;
  }
  .container.thankyou-mobile a {
    font-size: 1rem !important;
    padding: 10px 10px !important;
  }
}

/* ── Typography — Inter (matches AdminApp) ──────────────────────────── */
:root {
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  --custom-orange:          #f26522;
  --custom-orange-dark:     #e52d0e;
  --custom-orange-light:    #f5813d;
  --custom-orange-gradient: linear-gradient(135deg, #f26522 0%, #e52d0e 100%);
  --bam-breadcrumb-bg:      #919191;
}
html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html { font-size: 16px; }
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 60px;
  background-color: #ffffff;
}

/* Headers */
h1, .h1 { font-size: 1.5rem;   font-weight: 600; line-height: 1.2;  }
h2, .h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
h3, .h3 { font-size: 1.25rem;  font-weight: 600; line-height: 1.3;  }
h4, .h4 { font-size: 1.125rem; font-weight: 500; line-height: 1.35; }
h5, .h5 { font-size: 1rem;     font-weight: 500; line-height: 1.4;  }
h6, .h6 { font-size: 0.9375rem;font-weight: 500; line-height: 1.4;  }
.text-sm  { font-size: 0.875rem; }
small, .small { font-size: 0.8125rem; }
.text-xs  { font-size: 0.75rem; }

.card-header, .nav-link, thead th, label, .form-label {
  font-family: var(--font-base);
  font-weight: 500;
}
.badge { font-family: var(--font-base); font-weight: 600; letter-spacing: .01em; }
.btn   {
  font-family: var(--font-base);
  font-weight: 500;
  letter-spacing: .01em;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .15s ease, transform .15s ease;
}
.btn:not(:disabled):hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.btn:active {
  box-shadow: 0 1px 2px rgba(0,0,0,.04) !important;
  transform: translateY(0) !important;
}

/* ── Orange Theme (matches AdminApp) ───────────────────────────────── */
.bg-primary          { background: var(--custom-orange-gradient) !important; }
.btn-primary         { background-color: var(--custom-orange); border-color: var(--custom-orange); }
.btn-primary:hover   { background-color: var(--custom-orange-dark); border-color: var(--custom-orange-dark); }
.text-primary        { color: var(--custom-orange) !important; }
.bg-success          { background-color: var(--custom-orange) !important; }
.btn-success         { background-color: var(--custom-orange); border-color: var(--custom-orange); }
.btn-success:hover   { background-color: var(--custom-orange-dark); border-color: var(--custom-orange-dark); }
.card-header.bg-primary,
.card-header.bg-success { background-color: var(--custom-orange) !important; }
.badge.bg-primary,
.badge.bg-success    { background-color: var(--custom-orange) !important; }
.border-primary      { border-color: var(--custom-orange) !important; }
.text-success        { color: var(--custom-orange) !important; }
.btn-secondary       { background-color: #374151; border-color: #374151; color: #fff; }
.btn-secondary:hover { background-color: #1f2937; border-color: #1f2937; color: #fff; }
.btn-outline-secondary       { color: #374151; border-color: #d1d5db; }
.btn-outline-secondary:hover { background-color: #374151; border-color: #374151; color: #fff; }
.btn-info       { background-color: var(--custom-orange-light); border-color: var(--custom-orange-light); color: #fff; }
.btn-info:hover { background-color: var(--custom-orange); border-color: var(--custom-orange); color: #fff; }

/* ── Cards ──────────────────────────────────────────────────────────── */
:root {
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.05);
}
.card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow-md);
}

/* ── Navbar — Glassmorphism ─────────────────────────────────────────── */
.bam-glass-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 64px;
  padding-top: 0;
  padding-bottom: 0;
  /* orange-tinted frosted glass */
  background: linear-gradient(
    135deg,
    rgba(242, 101, 34, 0.88) 0%,
    rgba(200, 40, 5,  0.85) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  /* lift shadow with orange glow */
  box-shadow:
    0 4px 24px rgba(242, 101, 34, 0.30),
    0 1px 0   rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  transition: min-height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* animated shimmer line — orange → gold → white → gold → orange */
.bam-glass-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,200,100,0.55) 25%,
    rgba(255,255,255,0.70) 50%,
    rgba(255,200,100,0.55) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: bam-nav-shimmer 5s linear infinite;
  pointer-events: none;
}

@keyframes bam-nav-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* scrolled state — tighter, deeper, fully opaque */
.bam-glass-nav.scrolled {
  min-height: 48px;
  background: linear-gradient(
    135deg,
    rgba(210, 60, 5, 0.97) 0%,
    rgba(160, 20, 0, 0.97) 100%
  );
  box-shadow: 0 4px 28px rgba(0,0,0,.40);
}

.bam-glass-nav .navbar-nav { gap: 2px; }

.bam-glass-nav .nav-link {
  font-size: .85rem;
  font-weight: 500;
  padding: 0 .6rem;
  color: rgba(255,255,255,.88) !important;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.bam-glass-nav .nav-link:hover,
.bam-glass-nav .nav-link:focus {
  color: #fff !important;
  background: rgba(255,255,255,0.14);
}
.bam-glass-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.20);
  font-weight: 600;
}

.bam-glass-nav .navbar-brand { color: #ffffff !important; }

.bam-glass-nav .navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}
.bam-glass-nav .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(255,255,255,0.35); }

/* ── Breadcrumb Bar ─────────────────────────────────────────────────── */
.bam-breadcrumb-bar {
  padding: 7px 0;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}
.bam-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 4px; font-size: .85rem;
  margin: 0; list-style: none; padding-left: 0;
}
.bam-breadcrumb li {
  display: flex; align-items: center;
}
.bam-breadcrumb a {
  position: relative;
  color: var(--custom-orange);
  text-decoration: none;
  font-weight: 500;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.18s ease, background 0.18s ease;
}
.bam-breadcrumb a:hover {
  color: var(--custom-orange-dark);
  background: rgba(242,101,34,0.08);
}
.bam-bc-sep {
  color: #bbb;
  font-size: .8rem;
  margin: 0 2px;
  user-select: none;
}
.bam-bc-current {
  color: #555;
  font-weight: 400;
  padding: 2px 4px;
}

/* ── Focus / Forms ──────────────────────────────────────────────────── */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--custom-orange);
}
.form-check-input:checked {
  background-color: var(--custom-orange) !important;
  border-color:     var(--custom-orange) !important;
}
#inputBox            { background: #BCBEC0; }
#activateSubmitButton{ background: var(--custom-orange); }
#resultButton        { color: white; background: var(--custom-orange); }

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder { color: var(--bs-secondary-color); text-align: end; }
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder { text-align: start; }

/* ── Link colors ────────────────────────────────────────────────────── */
a { color: #374151; }
a:hover { color: var(--custom-orange); }

/* ── Account management sidebar nav-pills ──────────────────────────── */
.nav-pills .nav-link           { color: #212529; }
.nav-pills .nav-link:hover     { color: var(--custom-orange); background-color: #f8f9fa; }
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link   { background-color: var(--custom-orange) !important; color: #fff !important; }
/* Navigation enhancements */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    z-index: 1050 !important;
}

.navbar-nav .dropdown-item {
  padding: 8px 20px;
  transition: all 0.2s ease;
  color: #333;
}

.navbar-nav .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #212529;
  padding-left: 25px;
}

.navbar-nav .dropdown-item i {
  width: 20px;
  color: #6c757d;
}

.navbar-nav .dropdown-item:hover i {
  color: var(--custom-orange);
}

.navbar-nav .dropdown-divider {
  margin: 8px 0;
  border-color: #e9ecef;
}

.navbar-nav .dropdown-item button {
  background: none;
  border: none;
  color: inherit;
  width: 100%;
  text-align: left;
  padding: 0;
}

.navbar-nav .dropdown-item button:hover {
  background: none;
}

/* Main navigation links */
.navbar-nav .nav-link {
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 8px 15px !important;
  border-radius: 6px;
  margin: 0 4px;
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Mobile navigation improvements */
@media (max-width: 991px) {
  .navbar-nav .nav-link {
    margin: 2px 0;
    border-radius: 4px;
  }

  .navbar-nav .dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: none;
    margin-top: 0;
  }
}

/* ── Layered Profile Card System (Stripe-inspired) ──────────────────── */

/* Intro banner on profile edit page */
.profile-intro {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(0,0,0,.05);
}
.intro-tag {
  display: inline-flex;
  align-items: center;
  font-size: .8rem;
  font-weight: 500;
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
  padding: .25rem .75rem;
}
.intro-tag i { color: var(--custom-orange); }
.intro-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: .75rem 1rem;
  text-align: center;
  min-width: 100px;
}

/* Profile section cards */
.profile-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.05);
}
.profile-card-header {
  padding: .75rem 1.25rem;
  font-weight: 500;
  font-size: .95rem;
  color: #374151;
  background: #f8f9fb;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.profile-card-header i {
  color: var(--custom-orange);
  width: 16px;
  text-align: center;
}
.profile-card-body {
  padding: 1.5rem;
}
.profile-card-chevron {
  transition: transform .2s ease;
  flex-shrink: 0;
}
.profile-card-header[aria-expanded="false"] .profile-card-chevron {
  transform: rotate(-90deg);
}

/* White footer override */
.site-footer-white {
  background: #ffffff !important;
  color: #4b5563 !important;
  border-top: 1px solid #e5e7eb;
}

/* ── Global white background — consistent across all pages ──────── */
html, body, main { background-color: #ffffff !important; }

/* ── Remove any blue highlight / Bootstrap primary overrides ─────── */
/* All .bg-primary now uses the orange gradient from the navbar */
.table-primary,
.table-primary > td,
.table-primary > th       { background-color: #fff3ed !important; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: #fafafa; }
/* Remove blue active/focus ring on links */
a:focus { outline: none; box-shadow: 0 0 0 2px rgba(242,101,34,.35); }
