@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-400: #fb923c;
  --orange-500: #ff671f;
  --orange-600: #ea580c;
  --orange-700: #c2410c;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --primary: #ff671f;
  --primary-hover: #ea580c;
  --primary-light: rgba(255, 103, 31, 0.08);
  --primary-ring: rgba(255, 103, 31, 0.2);

  --header-bg: #1e293b;
  --header-text: #f8fafc;

  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #f8fafc;
  --bg: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #f8fafc;

  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #ff671f;

  --success: #16a34a;
  --success-bg: #f0fdf4;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --info: #2563eb;
  --info-bg: #eff6ff;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-focus: 0 0 0 3px var(--primary-ring);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 150ms;
  --duration-md: 200ms;
  --duration-lg: 300ms;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

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

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

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  color: var(--header-text);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

header .header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

header .home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--slate-400);
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

header .home-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--header-text);
}

header .home-link svg {
  width: 20px;
  height: 20px;
}

header .header-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

header .logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

header .header-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

header h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--header-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

header .version,
header small,
header .sub-h1 {
  font-size: 11px;
  font-weight: 400;
  color: var(--slate-400);
  white-space: nowrap;
  flex-shrink: 0;
}

header .title-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.page-hero {
  text-align: center;
  padding: 40px 24px 36px;
  margin-bottom: 4px;
}

.page-hero h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.division-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--duration-md) var(--ease);
  overflow: hidden;
}

.division-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--primary-ring);
  transform: translateY(-2px);
}

.division-card .card-image {
  width: 100%;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.division-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-lg) var(--ease);
}

.division-card:hover .card-image img {
  transform: scale(1.04);
}

.division-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.division-card .card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  stroke: var(--primary);
}

.division-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.division-card .card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.division-card .card-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--duration) var(--ease);
}

.division-card:hover .card-arrow {
  gap: 10px;
}

.division-card .card-arrow svg {
  width: 16px;
  height: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .separator {
  color: var(--slate-300);
  font-size: 14px;
  user-select: none;
}

.breadcrumb .current {
  color: var(--text-primary);
  font-weight: 600;
}

.directions-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--info-bg);
  border-left: 3px solid var(--info);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.step-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 0 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 12px;
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.step-item.active .step-badge {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.step-item.completed .step-badge {
  background: var(--success);
  color: var(--text-inverse);
  border-color: var(--success);
}

.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.step-item.active .step-label {
  color: var(--text-primary);
}

.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.form-section-header .section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-section-header .section-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  stroke: var(--primary);
}

.form-section-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.form-section-header p {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.form-row > * {
  flex: 1;
}

.bold-text {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: block;
}

.helper-text {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
  line-height: 1.5;
}

.page-header-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.validation-space {
  min-height: 20px;
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  transition: opacity var(--duration) var(--ease);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="url"],
input[type="password"],
textarea {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

textarea {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
}

input:disabled,
textarea:disabled {
  background: var(--surface-sunken);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.wide-field {
  width: 100%;
}

select {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

select:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}

select:disabled {
  background: var(--surface-sunken);
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.scrollable-select {
  height: auto;
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  background-image: none;
  padding-right: 4px;
}

.scrollable-select option {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  cursor: pointer;
}

.scrollable-select option:checked {
  background: linear-gradient(0deg, var(--primary-light) 0%, var(--primary-light) 100%);
  color: var(--primary);
  font-weight: 500;
}

button {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 0 16px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text-primary);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

button:hover {
  background: var(--surface-sunken);
  border-color: var(--slate-300);
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

button:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-secondary {
  background: #6b839e;
  color: #ffffff;
  border-color: #5a7189;
}

.btn-secondary:hover {
  background: #5a7189;
  border-color: #4a6178;
}

.btn-primary {
  background: var(--header-bg);
  color: var(--text-inverse);
  border-color: var(--header-bg);
}

.btn-primary:hover {
  background: var(--slate-700);
  border-color: var(--slate-700);
}

.big-button {
  background: var(--primary);
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 600;
  padding: 0 28px;
  height: 42px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.01em;
}

.big-button:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.big-button:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--surface-sunken);
  color: var(--text-primary);
}

.btn-sm {
  height: 32px;
  font-size: 12px;
  padding: 0 12px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  user-select: none;
  padding: 6px 0;
}

.custom-checkbox input[type="checkbox"] {
  display: none;
}

.custom-checkbox .checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--slate-300);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
  background: var(--surface);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid var(--text-inverse);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.custom-checkbox:hover .checkmark {
  border-color: var(--primary);
}

.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.button-row.right {
  justify-content: flex-end;
}

.button-row.center {
  justify-content: center;
}

.button-row.between {
  justify-content: space-between;
}

.four-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 16px;
  align-items: start;
}

.four-columns label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  padding-top: 10px;
}

.four-columns input,
.four-columns select {
  width: 100%;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn var(--duration-md) var(--ease);
}

.modal.active,
.modal[style*="flex"] {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp var(--duration-lg) var(--ease);
  position: relative;
}

#table-modal .modal-content {
  max-width: 90vw;
  text-align: center;
}

#table-modal .modal-content table {
  margin-left: auto;
  margin-right: auto;
}

.modal-working-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 16px;
}

.modal-success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--success);
  text-align: center;
  margin-bottom: 8px;
}

.modal-success-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.working-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 16px auto;
}

.secondary-action {
  text-align: center;
  margin-top: 32px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border);
}

.secondary-action button {
  background: var(--surface);
  border: 1px solid var(--border);
}

.secondary-action a {
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.secondary-action a:hover {
  color: var(--primary-hover);
}

.secondary-action p {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

.logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

thead th {
  background: var(--header-bg);
  color: var(--text-inverse);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}

thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

tbody tr:nth-child(even) {
  background: var(--surface-sunken);
}

tbody tr:hover {
  background: var(--primary-light);
}

tbody tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius);
}

tbody tr:last-child td:last-child {
  border-radius: 0 0 var(--radius) 0;
}

.phone-input {
  width: auto !important;
  flex: 0 0 auto !important;
}

.form-row span {
  flex: 0 0 auto;
}

.phone-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-input-group select {
  width: 100px;
  flex-shrink: 0;
}

.phone-input-group input {
  flex: 1;
}

.phone-input-group span {
  color: var(--text-tertiary);
  font-size: 14px;
  flex-shrink: 0;
}

.ts-wrapper {
  font-family: 'Inter', sans-serif;
}

.ts-wrapper .ts-control {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  min-height: 40px;
  font-size: 14px;
  box-shadow: none;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.ts-wrapper.focus .ts-control,
.ts-wrapper .ts-control:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}

.ts-wrapper .ts-dropdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  overflow: hidden;
}

.ts-wrapper .ts-dropdown .option {
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-primary);
  transition: background var(--duration) var(--ease);
}

.ts-wrapper .ts-dropdown .option:hover,
.ts-wrapper .ts-dropdown .active {
  background: var(--primary-light);
  color: var(--primary);
}

.ts-wrapper .ts-dropdown .option.selected {
  background: var(--orange-50);
  color: var(--primary);
  font-weight: 500;
}

.ts-wrapper .ts-control .item {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 500;
}

.ts-wrapper .ts-control .item .remove {
  border: none;
  color: var(--primary);
}

.ts-wrapper .ts-control input {
  height: auto;
  border: none;
  box-shadow: none;
}

.ts-wrapper .ts-control input:focus {
  box-shadow: none;
}

.status-valid,
.status-invalid,
.status-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-valid {
  background: var(--success-bg);
  color: var(--success);
}

.status-valid::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.status-invalid {
  background: var(--error-bg);
  color: var(--error);
}

.status-invalid::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--error);
}

.status-loading {
  background: var(--warning-bg);
  color: var(--warning);
}

.status-loading::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  animation: pulse 1.2s ease infinite;
}

.question-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 50%;
  cursor: pointer;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 6px;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.question-button:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.1);
}

.tooltiptext {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.tooltiptext img {
  margin-top: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  max-width: 100%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .four-columns {
    grid-template-columns: 1fr 1fr;
  }

  .page-container {
    padding: 20px 16px 36px;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .button-row {
    flex-direction: column;
    gap: 8px;
  }

  .button-row button,
  .button-row a {
    width: 100%;
  }

  .button-row a button {
    width: 100%;
  }

  header h1 {
    font-size: 14px;
  }

  .modal-content {
    padding: 24px 20px;
    width: 95%;
  }

  .phone-input-group {
    flex-wrap: wrap;
  }

  .step-flow {
    gap: 4px;
  }

  .step-label {
    display: none;
  }

  .page-hero h2 {
    font-size: 22px;
  }

  .page-hero p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .four-columns {
    grid-template-columns: 1fr;
  }

  header {
    padding: 0 16px;
  }

  .page-header-text {
    font-size: 14px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--slate-400);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--slate-300) transparent;
}

.text-center {
  text-align: center;
}

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.hidden {
  display: none !important;
}

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

/* Facility cards */
.facility-card {
  border: 1px solid var(--border-color, #ddd);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--surface-color, #f9fafb);
}

.facility-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.facility-card-title {
  font-weight: 600;
  font-size: 14px;
}

.facility-card-header .btn-remove {
  font-size: 12px;
  padding: 2px 10px;
  color: var(--error-color, #c0392b);
  border-color: var(--error-color, #c0392b);
  background: transparent;
}

.facility-card-header .btn-remove:hover {
  background: var(--error-color, #c0392b);
  color: #fff;
}
