@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg-1: #f6f0e8;
  --bg-2: #d7ecf7;
  --card: rgba(255, 255, 255, 0.9);
  --card-strong: rgba(255, 255, 255, 0.98);
  --accent: #0da67a;
  --accent-strong: #ff7a1a;
  --text: #0f172a;
  --muted: #4b5563;
  --border: #e2e8f0;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, rgba(255, 213, 128, 0.35), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(13, 166, 122, 0.25), transparent 28%),
    linear-gradient(140deg, var(--bg-1) 10%, var(--bg-2) 60%, #f6fbff 100%);
  min-height: 100vh;
  padding: 32px 18px 64px 18px;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
}

.header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 122, 26, 0.12), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(13, 166, 122, 0.14), transparent 32%);
  pointer-events: none;
}

.header h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.header p {
  margin: 6px 0 0 0;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.4;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #0da67a1a;
  color: var(--accent);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  gap: 8px;
}

.badge span {
  width: 10px;
  height: 10px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(13, 166, 122, 0.1);
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  margin-top: 20px;
}

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

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

.hidden {
  display: none !important;
}

.card {
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.card h2 {
  margin: 0 0 12px 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.select,
.input,
.button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  transition: all 160ms ease;
  background: white;
}

.select:focus,
.input:focus,
.button:focus-visible {
  outline: 2px solid rgba(13, 166, 122, 0.35);
  border-color: rgba(13, 166, 122, 0.45);
  box-shadow: 0 10px 30px rgba(13, 166, 122, 0.12);
}

.button {
  cursor: pointer;
  border: none;
  color: white;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 40px rgba(255, 122, 26, 0.35);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}

.helper-text {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.table-card {
  background: var(--card-strong);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px 12px;
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.table thead {
  background: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table th,
.table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.table th {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
}

.table tbody tr:hover {
  background: rgba(13, 166, 122, 0.06);
}

.service-name {
  font-weight: 700;
  color: var(--text);
}

.provider {
  color: var(--muted);
  font-size: 14px;
}

.price {
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: 0.01em;
}

.breakdown {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 166, 122, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.table-empty,
.status {
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  margin: 0;
}

.status strong {
  color: var(--text);
}

.footer-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.fade-in {
  animation: fadeIn 220ms ease;
}

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

.autocomplete-wrapper {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0 0;
  padding: 0;
  list-style: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
}

.autocomplete-dropdown li {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 120ms ease;
}

.autocomplete-dropdown li:first-child {
  border-radius: 12px 12px 0 0;
}

.autocomplete-dropdown li:last-child {
  border-radius: 0 0 12px 12px;
}

.autocomplete-dropdown li:only-child {
  border-radius: 12px;
}

.autocomplete-dropdown li:hover,
.autocomplete-dropdown li.active {
  background: rgba(13, 166, 122, 0.1);
}

.autocomplete-dropdown li.active {
  color: var(--accent);
  font-weight: 600;
}

.scheme-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.scheme-standard {
  background: rgba(13, 166, 122, 0.12);
  color: #0da67a;
}

.scheme-starting {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.scheme-lookup {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}
