/* Pomoc Komputerowa - Contact Form Theme */
/* Inspired by retro computer repair flyer aesthetic */

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

:root {
  --background: 216 14% 82%;
  --foreground: 0 0% 8%;

  --card: 0 0% 98%;
  --card-foreground: 0 0% 8%;

  --primary: 0 0% 8%;
  --primary-foreground: 0 0% 98%;

  --secondary: 216 10% 90%;
  --secondary-foreground: 0 0% 8%;

  --muted: 216 10% 88%;
  --muted-foreground: 0 0% 40%;

  --accent: 6 72% 57%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 100%;

  --border: 0 0% 14%;
  --input: 216 10% 78%;
  --ring: 6 72% 57%;

  --radius: 0.25rem;
}

/* Base */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.section-container {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .section-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-padding {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Progress bar */
.progress-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 4px;
  background-color: hsl(var(--muted));
  border-radius: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: hsl(var(--accent));
  transition: width 0.3s ease;
}

/* Card */
.card {
  border-radius: var(--radius);
  border: 3px solid hsl(var(--foreground));
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  padding: 2rem;
  box-shadow: 6px 6px 0px hsl(var(--foreground));
}

@media (min-width: 640px) {
  .card {
    padding: 2.5rem;
  }
}

/* Typography */
.question-title {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: hsl(var(--foreground));
  margin: 0;
}

.question-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin: 0.25rem 0 0 0;
}

.multi-hint {
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--accent));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
}

/* Form fields */
.field-container {
  margin-top: 1.25rem;
}

.input {
  display: flex;
  height: 3rem;
  width: 100%;
  border-radius: var(--radius);
  border: 2px solid hsl(var(--foreground));
  background-color: hsl(var(--card));
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 3px 3px 0px hsl(var(--accent));
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

textarea.input,
textarea {
  display: block;
  width: 100%;
  min-height: 6rem;
  border-radius: var(--radius);
  border: 2px solid hsl(var(--foreground));
  background-color: hsl(var(--card));
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 3px 3px 0px hsl(var(--accent));
}

/* Multi-select options */
.options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 2px solid hsl(var(--foreground));
  border-radius: var(--radius);
  background-color: hsl(var(--card));
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.option:hover {
  background-color: hsl(var(--secondary));
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px hsl(var(--foreground));
}

.option.selected {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px hsl(var(--foreground));
}

.option.selected .option-label {
  color: hsl(var(--accent-foreground));
}

.option.selected .checkbox {
  border-color: hsl(var(--accent-foreground));
}

.option.selected .checkbox svg {
  stroke: hsl(var(--accent-foreground));
  opacity: 1;
}

.checkbox {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border: 2px solid hsl(var(--foreground));
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox svg {
  width: 0.875rem;
  height: 0.875rem;
  stroke: hsl(var(--foreground));
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.15s;
}

.option-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.15s;
  cursor: pointer;
  border: 2px solid hsl(var(--foreground));
  font-family: inherit;
}

.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.35;
}

.btn-primary {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--accent));
  box-shadow: 3px 3px 0px hsl(var(--foreground));
}

.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px hsl(var(--foreground));
}

.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px hsl(var(--foreground));
}

.btn-outline {
  border: 2px solid hsl(var(--foreground));
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: 3px 3px 0px hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsl(var(--secondary));
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px hsl(var(--foreground));
}

.btn-ghost {
  border: 2px solid transparent;
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--foreground));
}

.btn-sm { height: 2.25rem; padding: 0 0.75rem; font-size: 0.75rem; }
.btn-md { height: 2.75rem; padding: 0 1.25rem; }
.btn-lg { height: 3.25rem; padding: 0 1.75rem; font-size: 1rem; }

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid hsl(var(--foreground) / 0.1);
}

/* Flash messages */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border: 2px solid hsl(var(--foreground));
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.alert-success {
  background-color: hsl(120 40% 92%);
  color: hsl(120 40% 20%);
}

.alert-error,
.alert-danger {
  background-color: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
}

/* Error list */
.errors {
  color: hsl(var(--accent));
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  list-style: none;
  padding: 0;
}
