/*
 * =============================================================
 *  base.css — rez-website Basis-Stylesheet
 *
 *  Enthält ausschließlich strukturelle Regeln.
 *  KEINE hartcodierten Farben, Schriftarten oder Abstände.
 *  Alle Werte über CSS Custom Properties (Design Tokens).
 *
 *  Token-Defaults sind hier für die Standard-Version gesetzt.
 *  Marken-spezifische Overrides kommen via themes/*.css.
 *
 *  Layer-Reihenfolge im HTML:
 *    <link href="base.css">          ← Struktur + Default-Theme
 *    <link href="themes/xyz.css">    ← Marken-Overrides
 * =============================================================
 */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS — Standard-Theme (Warm Editorial)
   Werden von themes/*.css überschrieben.
--------------------------------------------------------------- */
:root {
  /* Farben */
  --page-bg:          #F7F2EB;
  --surface:          #FDFAF5;
  --text-heading:     #2C1A0E;
  --text-body:        #5C3D2A;
  --text-label:       #8B6347;
  --input-border:     #E2D5C3;
  --input-bg:         #FAF6F0;
  --input-focus-border: #C2410C;
  --input-focus-ring: rgba(194, 65, 12, 0.12);
  --progress-fill:    #C2410C;
  --cta-bg:           #B84A0A;
  --cta-hover:        #9A3A08;
  --required-color:   #C2410C;
  --error-color:      #DC2626;
  --shadow-ambient:   0 24px 60px rgba(44, 26, 14, 0.08);

  /* Shape */
  --radius-lg: 24px;
  --radius-md: 12px;

  /* Typografie */
  --font-base:    'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;

  --text-size-body:  16px;
  --text-size-label: 12px;
  --text-size-title: 32px;
}

/* Dark Mode — Standard-Theme */
[data-theme="dark"],
.dark {
  --page-bg:          #1A1108;
  --surface:          #231A10;
  --text-heading:     #F0E6D6;
  --text-body:        #C4A882;
  --text-label:       #9B7A5A;
  --input-border:     #3D2B1A;
  --input-bg:         #2C1F12;
  --input-focus-border: #D97706;
  --input-focus-ring: rgba(217, 119, 6, 0.15);
  --progress-fill:    #D97706;
  --cta-bg:           #C2410C;
  --cta-hover:        #A83508;
  --required-color:   #D97706;
  --error-color:      #EF4444;
  --shadow-ambient:   0 32px 80px rgba(0, 0, 0, 0.4);
}

/* Responsive Token-Anpassungen */
@media (max-width: 640px) {
  :root {
    --text-size-title: 28px;
    --text-size-body:  16px;
  }
}

@media (min-width: 768px) {
  :root {
    --text-size-title: 40px;
    --text-size-body:  17px;
  }
}

@media (min-width: 1024px) {
  :root {
    --text-size-title: 48px;
    --text-size-body:  18px;
  }
}

/* ---------------------------------------------------------------
   2. GLOBAL RESET
--------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------------
   3. BASE STYLES
--------------------------------------------------------------- */
body {
  font-family: var(--font-base);
  background: var(--page-bg);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.survey-page {
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* ---------------------------------------------------------------
   4. LAYOUT
--------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Survey-Seite: Card vertikal + horizontal zentriert */
body.survey-page .container {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .container {
    padding: 48px 32px;
  }
}

/* ---------------------------------------------------------------
   5. CARD / SURFACE
--------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
  /* Mobile-base: 32px top/bottom, 24px sides */
  padding: 32px 24px;
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

@media (min-width: 480px) {
  .card {
    padding: 40px 32px;
    gap: 36px;
  }
}

@media (min-width: 768px) {
  .card {
    padding: 56px 64px;
    gap: 48px;
  }
}

/* ---------------------------------------------------------------
   6. HEADER & BRAND (App-Header, Logo, Theme Toggle)
--------------------------------------------------------------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--input-border);
  transition: border-color 0.4s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 20px;
}

.brand-logo img {
  height: 20px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease, filter 0.4s ease;
}

/* Transforms the black SVG logo to match --text-heading in light mode */
.logo-default {
  filter: invert(12%) sepia(21%) saturate(2320%) hue-rotate(345deg) brightness(96%) contrast(92%);
}

[data-theme="dark"] .logo-default,
.dark .logo-default {
  filter: invert(96%) sepia(13%) saturate(637%) hue-rotate(320deg) brightness(99%) contrast(93%);
}

.brand-logo .logo-hover {
  position: absolute;
  inset: 0;
  height: 20px;
  opacity: 0;
}

.brand:hover .logo-hover {
  opacity: 1;
}

.brand:hover .logo-default {
  opacity: 0;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-label);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
  background: var(--input-bg);
  color: var(--text-heading);
}

/* Icon-Switching basierend auf aktivem Theme */
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }

[data-theme="dark"] .theme-toggle .icon-moon,
.dark .theme-toggle .icon-moon { display: none; }

[data-theme="dark"] .theme-toggle .icon-sun,
.dark .theme-toggle .icon-sun  { display: block; }

/* ---------------------------------------------------------------
   7. HEADING SECTION (.header)
--------------------------------------------------------------- */
.header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-size-title);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-heading);
  transition: color 0.4s ease;
}

.header p {
  color: var(--text-body);
  font-size: var(--text-size-body);
  max-width: 620px;
  font-weight: 400;
  transition: color 0.4s ease;
}

@media (max-width: 640px) {
  .header p {
    max-width: 100%;
  }
}

/* ---------------------------------------------------------------
   8. INSTRUCTIONS ACCORDION
--------------------------------------------------------------- */
.instructions-accordion {
  background: transparent;
}

.instructions-accordion summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

/* Standardmäßige Details-Marker ausblenden (plattformübergreifend) */
.instructions-accordion summary::-webkit-details-marker { display: none; }
.instructions-accordion summary::marker              { display: none; }

.instructions-accordion summary:hover {
  color: var(--text-heading);
}

.icon-info-chevron {
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  color: var(--text-label);
}

.instructions-accordion[open] .icon-info-chevron {
  transform: rotate(180deg);
  color: var(--cta-bg);
}

.instructions-content {
  margin-top: 16px;
  padding: 20px;
  background: var(--input-bg);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--input-border);
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
  animation: slideDownFade 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.instructions-content ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.instructions-content strong {
  color: var(--text-heading);
  font-weight: 600;
}

/* ---------------------------------------------------------------
   9. PROGRESS BAR
--------------------------------------------------------------- */
.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.progress-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-label);
  transition: color 0.4s ease;
}

.progress-track {
  height: 2px;
  background: var(--input-border);
  border-radius: 999px;
  overflow: hidden;
  transition: background 0.4s ease;
}

.progress-fill {
  height: 100%;
  background: var(--progress-fill);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.4s ease;
}

/* ---------------------------------------------------------------
   10. FORM STRUCTURE
--------------------------------------------------------------- */
/* Honeypot: visually hidden but reachable by bots */
.hp-field {
  position: fixed !important;
  top: -200vh !important;
  left: -200vw !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* Form steps: only active step visible */
.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: formStepFadeIn 0.6s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

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

/* ---------------------------------------------------------------
   11. FORM LABELS & INPUTS
--------------------------------------------------------------- */
label {
  display: block;
  font-size: var(--text-size-label);
  text-transform: uppercase;
  line-height: 1.5;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-label);
  margin-bottom: 12px;
  transition: color 0.4s ease;
}

.required {
  color: var(--required-color);
}

.optional {
  color: var(--text-label);
  font-weight: 500;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: var(--text-size-body);
  background: var(--input-bg);
  color: var(--text-body);
  transition: border 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease, color 0.4s ease;
  font-family: var(--font-base);
}

textarea {
  min-height: 120px;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-label);
  opacity: 0.6;
}

/* Filled state: subtle border when value is present */
input:not(:placeholder-shown),
textarea:not(:placeholder-shown) {
  border-color: var(--text-label);
}

input:focus,
textarea:focus {
  outline: none;
  border: 1.5px solid var(--input-focus-border);
  box-shadow: 0 0 0 3px var(--input-focus-ring);
}

/* ---------------------------------------------------------------
   12. STAR RATING
--------------------------------------------------------------- */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

/* Visually hidden radio inputs */
.star-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  cursor: pointer;
  color: var(--input-border);
  transition: color 0.3s cubic-bezier(0.32, 0.72, 0, 1), transform 0.2s ease;
  /* Reset uppercase from generic label rule */
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

.star-rating label svg {
  width: 48px;
  height: 48px;
}

.star-rating label:hover {
  transform: scale(1.1);
}

/* Keyboard focus: outline on label when its input is :focus-visible */
.star-rating input:focus-visible + label {
  outline: 2px solid var(--input-focus-border);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Fill all stars up to and including the hovered/checked one */
.star-rating input:checked ~ label,
.star-rating label:hover ~ label,
.star-rating label:hover {
  color: var(--input-focus-border);
}

@media (max-width: 640px) {
  .star-rating {
    gap: 8px;
  }
  .star-rating label svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px) {
  .star-rating {
    gap: 4px;
  }
  .star-rating label svg {
    width: 28px;
    height: 28px;
  }
}

/* ---------------------------------------------------------------
   13. COMPANY SELECTION LIST
--------------------------------------------------------------- */
.company-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 8px;
}

/* label IS the clickable item */
.company-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
  margin-bottom: 0;
}

/* Native radio hidden — label handles the click */
.company-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.company-item .company-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.company-item:hover {
  border-color: var(--cta-bg);
  background: var(--surface);
}

.company-item.is-selected {
  border-color: var(--cta-bg);
  background: var(--cta-bg);
  box-shadow: 0 4px 16px var(--input-focus-ring);
  transform: translateY(-1px);
}

.company-item.is-selected .company-name {
  color: #fff;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   14. CHOICE GRID (Likes / Improvements)
--------------------------------------------------------------- */
/* Reset generic label margin on choice wrappers */
.choice {
  margin-bottom: 0;
  position: relative;
  cursor: pointer;
  display: block;
  width: 100%;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 480px) {
  .choice-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

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

/* Visually hidden checkbox */
.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  white-space: normal;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-body);
  text-align: center;
  line-height: 1.3;
  transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.choice input:checked + span {
  background: var(--cta-bg);
  color: #fff;
  border-color: var(--cta-bg);
  font-weight: 600;
  box-shadow: 0 4px 16px var(--input-focus-ring);
  transform: translateY(-2px);
}

.choice span:hover {
  border-color: var(--cta-bg);
  background: var(--surface);
}

/* ---------------------------------------------------------------
   15. FORM ACTIONS (BUTTONS ROW)
--------------------------------------------------------------- */
.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 16px;
}

.form-actions .btn {
  flex: 1;
}

.form-actions .btn-secondary {
  flex: 0 0 30%;
}

@media (max-width: 640px) {
  .form-actions {
    flex-direction: column;
  }
  .form-actions .btn-secondary {
    flex: 1;
  }
}

/* ---------------------------------------------------------------
   16. BUTTONS
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 24px;
  background-color: var(--cta-bg);
  color: var(--page-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.btn:hover:not(:disabled) {
  background-color: var(--cta-hover);
  transform: scale(0.99);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  background-color: var(--input-border);
  color: var(--text-label);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-body);
  border: 1.5px solid var(--input-border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--input-bg);
  color: var(--text-heading);
}

/* ---------------------------------------------------------------
   17. VALIDATION & ERROR STATES
--------------------------------------------------------------- */
.error-message {
  display: none;
  color: var(--error-color);
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.form-group.error .error-message {
  display: block;
  animation: formStepFadeIn 0.3s ease forwards;
}

.form-group.error input,
.form-group.error textarea {
  border-color: var(--error-color);
}

.submit-error {
  display: none;
  color: var(--error-color);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border: 1px solid var(--error-color);
  border-radius: var(--radius-md);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 16px;
}

.submit-error.is-visible {
  display: block;
  animation: formStepFadeIn 0.3s ease forwards;
}

/* Reduce gap between error banner and action buttons */
.submit-error.is-visible + .form-actions {
  margin-top: 16px;
}

/* ---------------------------------------------------------------
   18. SUCCESS PAGE COMPONENTS
--------------------------------------------------------------- */
.review-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--input-border);
}

.review-block__label {
  font-size: var(--text-size-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-label);
  margin: 0;
}

.review-block__text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-heading);
  font-weight: 400;
  margin: 0;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: var(--cta-bg);
  border: 1px solid transparent;
  color: var(--page-bg);
  padding: 12px 24px;
  min-width: 176px;
  font-family: var(--font-base);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.copy-btn:hover {
  background-color: var(--cta-hover);
  transform: scale(0.99);
}

.copy-btn:active {
  transform: scale(0.98);
}

.copy-btn:disabled {
  cursor: not-allowed;
  background-color: var(--input-border);
  color: var(--text-label);
  border-color: transparent;
}

@media (max-width: 640px) {
  .copy-btn {
    width: 100%;
    text-align: center;
    align-self: stretch;
    box-sizing: border-box;
  }
  .review-block .copy-btn {
    align-self: stretch;
  }
}

.next-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.next-steps__title {
  font-size: var(--text-size-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-label);
  margin: 0;
}

.next-steps__list {
  margin: 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.next-steps__list li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
}

.backup-msg {
  font-size: 13px;
  color: var(--text-label);
  text-align: left;
  margin: 0 0 16px 0;
}

.cta-restart {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--input-border);
  text-align: left;
  animation: slideUpFade 0.6s cubic-bezier(0.32, 0.72, 0, 1) forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

@media (max-width: 640px) {
  .cta-restart {
    gap: 16px;
  }
}

.cta-restart__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-restart__headline {
  font-size: var(--text-size-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-label);
  margin: 0;
  transition: color 0.4s ease;
}

.cta-restart__subtext {
  font-size: 15px;
  color: var(--text-body);
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
  transition: color 0.4s ease;
}

/* ---------------------------------------------------------------
   19. LOADING OVERLAY
--------------------------------------------------------------- */
.loading-overlay {
  position: fixed;
  inset: 0;
  /* page-bg als rgba für Backdrop-Kompatibilität */
  background: rgba(247, 242, 235, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding: 24px;
}

[data-theme="dark"] .loading-overlay {
  background: rgba(26, 17, 8, 0.85);
}

.loading-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.loading-card {
  background: var(--surface);
  border: 1px solid var(--input-border);
  box-shadow: var(--shadow-ambient);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  max-width: 360px;
  width: 100%;
}

.loading-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.loading-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--progress-fill);
  animation: loadingBounce 1.4s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  display: block;
}

.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s;  }

.loading-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.5px;
}

.loading-subtext {
  font-family: var(--font-base);
  font-size: 13px;
  color: var(--text-label);
  margin: 0;
}

/* ---------------------------------------------------------------
   20. FOCUS VISIBLE (Accessibility)
--------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--input-focus-border);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ---------------------------------------------------------------
   21. KEYFRAME ANIMATIONS
--------------------------------------------------------------- */
@keyframes formStepFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0);    }
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0);    }
}

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

@keyframes loadingBounce {
  0%, 80%, 100% { transform: translateY(0) scale(0.6);   opacity: 0.2; }
  40%           { transform: translateY(-12px) scale(1); opacity: 1;   }
}
