/* VK Trail Score Estimator */
.categories-main .container {
  margin: 0 0 2rem 0;
  max-width: 1200px;
}

/* Form panel */
.vk-panel {
  margin-bottom: 2rem;
  overflow: hidden;
}

.vk-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header with title + gender selector */
.vk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.vk-header h2 {
  margin: 0;
}

.vk-gender-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.vk-gender-select select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vk-gender-select select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.vk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.vk-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.75rem 1rem 1rem;
  background: #fff;
  height: 100%;
}

.vk-fieldset legend {
  padding: 0 0.5rem;
  font-weight: 600;
  color: #111827;
}

.vk-fieldset label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.92rem;
  color: #374151;
}

.vk-fieldset select,
.vk-fieldset input[type="number"] {
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.vk-fieldset select:focus,
.vk-fieldset input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.vk-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vk-inline .unit {
  font-size: 0.9rem;
  color: #4b5563;
}

.vk-time {
  display: flex;
  gap: 1rem;
}

.vk-time label {
  display: flex;
  flex-direction: column;
}

.vk-submit {
  align-self: flex-start;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.2s;
}

.vk-submit:hover {
  filter: brightness(1.05);
}

.vk-status {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.vk-status.error {
  color: #b91c1c;
}

/* Result section */
.vk-result {
  margin-bottom: 2rem;
  display: none;
}

.vk-result.visible {
  display: block;
}

.vk-score-display {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.vk-score-value {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.vk-score-label {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 1rem;
}

/* Gauge */
.vk-gauge {
  position: relative;
  height: 28px;
  border-radius: 14px;
  background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 15%, #22c55e 40%, #f59e0b 70%, #ef4444 100%);
  margin: 1.5rem auto;
  max-width: 500px;
  overflow: visible;
}

.vk-gauge-marker {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 40px;
  background: #111827;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.5s ease;
}

.vk-gauge-marker::after {
  content: attr(data-value);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.vk-gauge-labels {
  display: flex;
  justify-content: space-between;
  max-width: 500px;
  margin: 0.25rem auto 0;
  font-size: 0.75rem;
  color: #64748b;
}

/* Qualification table */
.vk-qualif-table {
  margin-top: 1.5rem;
}

.vk-qualif-table h3 {
  color: #0066cc;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.vk-qualif-table table {
  width: 100%;
  border-collapse: collapse;
}

.vk-qualif-table th,
.vk-qualif-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.vk-qualif-table th {
  background: #f9fafb;
  font-weight: 600;
}

.vk-qualif-table .qualified {
  color: #16a34a;
  font-weight: 600;
}

.vk-qualif-table .not-qualified {
  color: #dc2626;
}

.vk-qualif-table .check {
  font-size: 1.1rem;
}

/* Disclaimer */
.vk-disclaimer {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.92rem;
}

.vk-disclaimer strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #78350f;
}

/* Info section */
.vk-info {
  margin-bottom: 2.5rem;
}

.vk-distinction {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
}

.vk-distinction h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #1e40af;
}

.vk-distinction p {
  margin: 0.4rem 0;
  font-size: 0.93rem;
  color: #1e3a5f;
}

.vk-formula {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  overflow-x: auto;
}

.vk-info .note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

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

  .vk-time {
    flex-direction: column;
  }

  .vk-score-value {
    font-size: 2.5rem;
  }

  .vk-gauge {
    max-width: 100%;
  }

  .vk-gauge-labels {
    max-width: 100%;
  }
}
