
@media screen and (min-width: 960px) {
  body .nbs-eligibility {
    padding: 0;
  }
}
.nbs-eligibility strong {
  font-weight: bold;
}
.nbs-eligibility *, .nbs-eligibility *::before, .nbs-eligibility *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #074766;
  --primary-light: #0a5a7f;
  --accent: #eb7f29;
  --accent-hover: #d47326;
  --bg-main: #e0e0e0;
  --bg-card: #ffffff;
  --bg-section: #f8f9fa;
  --text-dark: #074766;
  --text-light: #6c757d;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --border: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 5px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --sidebar-width: 280px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nbs-eligibility ul {
  list-style-type: disc;
}

.nbs-eligibility ul ul {
  list-style-type: circle;
}

.nbs-eligibility header {
  background: var(--primary);
  color: white;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 100;
}

.nbs-eligibility header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.nbs-eligibility header p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.nbs-eligibility .app-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 1.75rem;
}

/* Aside Sidebar */
.nbs-eligibility aside {
  flex-shrink: 0;
}

.nbs-eligibility .sidebar-sticky {
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nbs-eligibility .sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.nbs-eligibility .sidebar-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.nbs-eligibility .mode-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nbs-eligibility .mode-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--border);
  background: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: var(--text-dark);
}

.nbs-eligibility .mode-btn:hover {
  border-color: var(--primary);
  background: var(--bg-section);
  transform: translateX(4px);
}

.nbs-eligibility .mode-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.nbs-eligibility .mode-icon {
  font-size: 1.5rem;
}

.nbs-eligibility .mode-text {
  flex: 1;
  text-align: left;
}

.nbs-eligibility .mode-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.nbs-eligibility .mode-desc {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.25rem;
  line-height: 1;
}

.nbs-eligibility .sidebar-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.6;
}

.nbs-eligibility .sidebar-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nbs-eligibility .stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--bg-main) 0%, #e3f2fd 100%);
  border-radius: var(--radius-sm);
}

.nbs-eligibility .stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.nbs-eligibility .stat-value {
  font-weight: 600;
  color: var(--primary);
}

/* Main Content */
.nbs-eligibility main {
  flex: 1;
  min-width: 0;
}

.nbs-eligibility .tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.nbs-eligibility .tab-content.active {
  display: block;
  height: auto;
}

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

/* Cards */
.nbs-eligibility .card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.nbs-eligibility .card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-section);
}

.nbs-eligibility .card-header h2 {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
}

.nbs-eligibility .card-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Info Box */
.nbs-eligibility .info-box {
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.nbs-eligibility .info-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  outline: none;
}

.nbs-eligibility .info-toggle {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.nbs-eligibility .info-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nbs-eligibility .info-content.expanded {
  margin-top: 0.5rem;
  max-height: 500px;
}

.nbs-eligibility .info-content ul {
  margin: 0.75rem 0 0 1.25rem;
  color: var(--text-dark);
}

.nbs-eligibility .info-content li {
  margin-bottom: 0.5rem;
}

/* Form Elements */
.nbs-eligibility .form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .nbs-eligibility .form-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nbs-eligibility .form-group {
  display: flex;
  flex-direction: column;
}

.nbs-eligibility .form-label {
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.nbs-eligibility .form-label .required {
  display: inline;
}

.nbs-eligibility .form-group, .nbs-eligibility .form-input, .nbs-eligibility .form-select {
  margin: 0;
}

.nbs-eligibility .form-label .required {
  color: var(--danger);
  margin-left: 0.25rem;
}

.nbs-eligibility .form-input,
.nbs-eligibility .form-select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.nbs-eligibility .form-input:focus,
.nbs-eligibility .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(7, 71, 102, 0.1);
}

.nbs-eligibility .form-input:disabled {
  background: var(--bg-section);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Buttons */
.nbs-eligibility .btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.nbs-eligibility .btn-primary {
  background: var(--accent);
  color: white;
}

.nbs-eligibility .btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.nbs-eligibility .btn-secondary {
  background: var(--primary);
  color: white;
}

.nbs-eligibility .btn-secondary:hover:not(:disabled) {
  background: var(--primary-light);
}

.nbs-eligibility .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.nbs-eligibility .btn-full {
  width: 100%;
}

/* Chat Interface */
.nbs-eligibility .chat-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.nbs-eligibility .chat-messages {
  height: 600px;
  overflow-y: auto;
  padding: 1.5rem;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nbs-eligibility .chat-bubble {
  max-width: 75%;
  padding: 1rem;
  border-radius: var(--radius-lg);
  animation: slideIn 0.3s ease;
  word-wrap: break-word;
}

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

.nbs-eligibility .chat-bubble.bot {
  align-self: flex-start;
  background: var(--primary);
  color: white;
  border-bottom-left-radius: 4px;
}

.nbs-eligibility .chat-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.nbs-eligibility .chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
}

.nbs-eligibility .chat-option-btn {
  padding: 0.5rem 1rem;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nbs-eligibility .chat-option-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.nbs-eligibility .chat-input-area {
  padding: 1rem;
  background: white;
  border-top: 2px solid var(--border);
  display: flex;
  gap: 0.75rem;
}

/* Results */
.nbs-eligibility .result-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.5s ease;
  margin-top: 1.5rem;
}

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

.nbs-eligibility .result-card.eligible {
  background: linear-gradient(135deg, #d4f1f9 0%, #e8f8fb 100%);
  border-left: 5px solid var(--success);
}

.nbs-eligibility .result-card.partial {
  background: linear-gradient(135deg, #fff4e1 0%, #fff9ed 100%);
  border-left: 5px solid var(--warning);
}

.nbs-eligibility .result-card.not-eligible {
  background: linear-gradient(135deg, #fdd 0%, #fee 100%);
  border-left: 5px solid var(--danger);
}

.nbs-eligibility .result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nbs-eligibility .result-icon {
  font-size: 3rem;
}

.nbs-eligibility .result-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nbs-eligibility .result-score {
  display: inline-block;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Scrollbar Styling */
.nbs-eligibility .chat-messages::-webkit-scrollbar {
  width: 8px;
}

.nbs-eligibility .chat-messages::-webkit-scrollbar-track {
  background: var(--bg-section);
  border-radius: 4px;
}

.nbs-eligibility .chat-messages::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.nbs-eligibility .hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 960px) {
  .nbs-eligibility .app-container {
      grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1024px) {
  .nbs-eligibility aside {
    width: 100%;
  }

  .nbs-eligibility .sidebar-sticky {
    position: relative;
    top: 0;
  }

  .nbs-eligibility .mode-selector {
    flex-direction: row;
  }

  .nbs-eligibility .mode-btn {
    flex: 1;
  }

  .nbs-eligibility .mode-desc {
    display: none;
  }
}

@media (max-width: 768px) {
  .nbs-eligibility .card {
    padding: 1.5rem;
  }

  .nbs-eligibility .chat-messages {
    height: 400px;
  }

  .nbs-eligibility .form-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .nbs-eligibility .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}
.nbs-eligibility .form-input.error {
  border-color: #e74c3c;
  box-shadow: 0 0 3px #e74c3c;
}

.nbs-eligibility .header-section {
  margin: 0 0 2rem;
}

.nbs-eligibility .header-section h2 {
  text-transform: inherit;
  font-weight: 700;
}

.nbs-spinner{
  display:inline-block;
  width:14px;
  height:14px;
  border:2px solid currentColor;
  border-right-color: transparent;
  border-radius:50%;
  margin-right:8px;
  vertical-align:middle;
  animation:nbs-spin 0.8s linear infinite;
}
@keyframes nbs-spin { to { transform: rotate(360deg); } }
