/*
 * Application-wide form styles.
 * Keep colors here (no dark: utilities in views).
 */

.input {
  margin-bottom: 1rem;
}

.input label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.35rem;
}

.input input[type="text"],
.input input[type="number"],
.input input[type="email"],
.input input[type="password"],
.input input[type="tel"],
.input input[type="date"],
.input textarea,
.input select {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.input input:focus,
.input textarea:focus,
.input select:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.input .hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #64748b;
}

.input .error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #b91c1c;
}

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

.input.boolean.field_with_hint {
  flex-wrap: wrap;
}

.input.boolean label.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.input.boolean.field_with_hint .hint {
  flex-basis: 100%;
  margin-top: 0;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.35rem;
}

.form-control {
  display: block;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.form-control:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

select.form-control {
  min-height: 2.5rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.form-actions.hidden {
  display: none;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
}

.btn-primary {
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
}

.btn-primary:hover {
  background: #1e293b;
}

.btn-secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.btn-secondary:hover {
  background: #f8fafc;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem;
  background: #f1f5f9;
  border-radius: 0.75rem;
}

.segmented label {
  cursor: pointer;
  margin: 0;
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.4rem;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
}

.segmented input:checked + span {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.segmented input:focus-visible + span {
  outline: 2px solid #0f172a;
  outline-offset: 1px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.wizard-step {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: #fff;
}

.wizard-step.is-active {
  border-color: #0f172a;
  background: #f8fafc;
}

.wizard-step.is-done {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.wizard-step-index {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.wizard-step-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.passenger-summary {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
}

.passenger-summary-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.result-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  cursor: pointer;
}

.result-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.result-card:focus-visible {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.admin-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.admin-menu-card {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.admin-menu-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.admin-menu-card:focus-visible {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

.admin-menu-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.admin-menu-card-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

.admin-menu-card-description {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #64748b;
}

.stats-filters .input {
  margin-bottom: 0;
}

.export-menu summary {
  list-style: none;
}

.export-menu summary::-webkit-details-marker {
  display: none;
}
