/* ==========================================================
   Tagesstrukturen Anmeldung — Bright Glassmorphism
   ========================================================== */

/* --- Fonts --- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand: Warm Amber */
  --accent: #D4943A;
  --accent-light: #E8B06E;
  --accent-dark: #B87A28;
  --accent-subtle: rgba(212, 148, 58, 0.1);
  --accent-glow: rgba(212, 148, 58, 0.25);

  /* Neutrals */
  --text-primary: #1F2A44;
  --text-secondary: #5A6B87;
  --text-muted: #8E9BB5;
  --white: #ffffff;

  /* Glass (bright theme) */
  --glass-bg: rgba(255, 255, 255, 0.74);
  --glass-bg-elevated: rgba(255, 255, 255, 0.88);
  --glass-blur: 20px;
  --glass-border: 1px solid rgba(255, 255, 255, 0.55);
  --glass-inner-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
  --glass-shadow:
    0 20px 40px -12px rgba(160, 120, 60, 0.1),
    0 8px 16px -4px rgba(0, 0, 0, 0.04);

  /* Input surfaces */
  --input-bg: rgba(255, 255, 255, 0.55);
  --input-border: rgba(0, 0, 0, 0.1);
  --input-focus-border: var(--accent);
  --input-focus-ring: rgba(212, 148, 58, 0.15);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radius */
  --radius-sm: 0.625rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  /* Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-normal: 300ms;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Satoshi', 'Segoe UI', system-ui, sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #FFF8F0;
}


/* ==========================================================
   Background Layers
   ========================================================== */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('../images/schule-waltenschwil-tagesstrukturen-background-1.jpg') center/cover no-repeat;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      160deg,
      rgba(255, 250, 240, 0.88) 0%,
      rgba(255, 245, 230, 0.82) 40%,
      rgba(248, 240, 232, 0.86) 70%,
      rgba(255, 248, 238, 0.92) 100%
    );
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* ==========================================================
   Page Layout
   ========================================================== */
.page-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  padding: var(--space-md) var(--space-md) var(--space-2xl);
}

@media (min-width: 640px) {
  .page-wrapper {
    padding: var(--space-xl) var(--space-lg) var(--space-3xl);
  }
}


/* ==========================================================
   Glass Card
   ========================================================== */
.glass-card {
  width: 100%;
  max-width: 720px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--glass-shadow),
    var(--glass-inner-shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: var(--space-xl) var(--space-lg);
  animation: card-enter 0.8s var(--ease-out-expo) both;
  animation-delay: 0.15s;
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7) 30%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.7) 70%,
    transparent
  );
  border-radius: var(--radius-xl);
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header card variant */
.glass-card--header {
  text-align: center;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  background: var(--glass-bg-elevated);
  animation-delay: 0s;
}

@media (min-width: 640px) {
  .glass-card {
    padding: var(--space-2xl) var(--space-2xl);
  }

  .glass-card--header {
    padding: var(--space-xl) var(--space-2xl) var(--space-lg);
  }
}


/* ==========================================================
   Logo & Header
   ========================================================== */
.logo-wrap {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.logo-img {
  max-width: 340px;
  width: 100%;
  height: auto;
}

.page-header {
  text-align: center;
}

.page-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.page-subtitle {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.01em;
}


/* ==========================================================
   Deadline Banner
   ========================================================== */
.deadline-banner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  margin-bottom: var(--space-lg);
  background: rgba(212, 148, 58, 0.12);
  border: 1px solid rgba(212, 148, 58, 0.25);
  border-radius: 9999px;
  font-size: 0.9375rem;
  color: var(--accent-dark);
  animation: card-enter 0.6s var(--ease-out-expo) both;
  animation-delay: 0.1s;
}

.deadline-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--accent);
}


/* ==========================================================
   Form Elements
   ========================================================== */

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Fieldset reset */
.form-section {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
}

/* Section title */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.section-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  margin-top: calc(-1 * var(--space-sm));
}

/* Form group */
.form-group {
  margin-bottom: var(--space-lg);
}

/* 2-col row */
.form-row--2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (max-width: 539px) {
  .form-row--2col .form-group:first-child {
    margin-bottom: var(--space-md);
  }
}

@media (min-width: 540px) {
  .form-row--2col {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

/* Labels */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.005em;
}

.required {
  color: var(--accent);
  font-weight: 500;
}

/* Helper text */
.form-helper {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  margin-top: calc(-1 * var(--space-xs));
  line-height: 1.4;
}

/* Input, Select, Textarea */
.form-input {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 0.6875rem 0.875rem;
  line-height: 1.5;
  outline: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    border-color var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-fast) var(--ease-out-expo);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input:hover {
  border-color: rgba(212, 148, 58, 0.35);
  background: rgba(255, 255, 255, 0.65);
}

.form-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 3px var(--input-focus-ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form-input.is-invalid {
  border-color: #e54d4d;
  background: rgba(229, 77, 77, 0.04);
}

.form-input.is-invalid:focus {
  box-shadow:
    0 0 0 3px rgba(229, 77, 77, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Textarea */
.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Error messages */
.form-error {
  display: none;
  font-size: 0.8125rem;
  color: #d93636;
  margin-top: var(--space-xs);
  padding-left: 0.125rem;
  font-weight: 500;
}

.form-error.is-visible {
  display: block;
  animation: error-in 0.3s var(--ease-out-expo);
}

@keyframes error-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================
   Checkbox (inline)
   ========================================================== */
.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.checkbox-inline input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  border: 1.5px solid var(--input-border);
  border-radius: 0.375rem;
  background: var(--input-bg);
  position: relative;
  transition:
    border-color var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo);
}

.check-box::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.checkbox-inline:hover .check-box {
  border-color: var(--accent-light);
}

.checkbox-inline input:focus-visible + .check-box {
  box-shadow: 0 0 0 3px var(--input-focus-ring);
  border-color: var(--accent);
}

.checkbox-inline input:checked + .check-box {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px -2px var(--accent-glow);
}

.checkbox-inline input:checked + .check-box::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-inline a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.checkbox-inline a:hover {
  color: var(--accent);
}

.form-group--confirm {
  margin-bottom: 0;
}


/* ==========================================================
   Schedule Grid
   ========================================================== */
.schedule-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--space-sm));
  padding: 0 var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.12) transparent;
}

.schedule-wrapper::-webkit-scrollbar {
  height: 4px;
}

.schedule-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.schedule-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: auto repeat(5, 1fr);
  gap: 2px;
}

@media (min-width: 540px) {
  .schedule-grid {
    grid-template-columns: minmax(140px, auto) repeat(5, 1fr);
  }
}

/* Compact schedule on mobile */
@media (max-width: 539px) {
  .schedule-wrapper {
    margin: 0 calc(-1 * var(--space-lg));
    padding: 0 var(--space-sm);
  }

  .schedule-label {
    padding: 0.375rem 0.5rem;
  }

  .el-name {
    font-size: 0.6875rem;
  }

  .el-time {
    font-size: 0.625rem;
  }

  .schedule-day {
    font-size: 0.6875rem;
    padding: 0.375rem 0.125rem;
    letter-spacing: 0.02em;
  }

  .schedule-check-cell {
    padding: 0.25rem;
  }

  .check-mark {
    width: 1.25rem;
    height: 1.25rem;
  }

  .check-mark::after {
    top: 2px;
    left: 5px;
    width: 6px;
    height: 9px;
    border-width: 0 2px 2px 0;
  }

  .schedule-group-header {
    padding: 0.375rem 0.5rem 0.25rem;
    font-size: 0.6875rem;
  }
}

/* Corner cell */
.schedule-corner {
  border-radius: var(--radius-sm) 0 0 0;
}

/* Day headers */
.schedule-day {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(212, 148, 58, 0.08);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.schedule-day:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

/* Element label cells */
.schedule-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.375rem 0.5rem;
  background: rgba(255, 255, 255, 0.4);
}

@media (min-width: 540px) {
  .schedule-label {
    padding: 0.5rem 0.75rem;
  }
}

.el-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

@media (min-width: 540px) {
  .el-name {
    font-size: 0.8125rem;
  }
}

.el-time {
  font-size: 0.625rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (min-width: 540px) {
  .el-time {
    font-size: 0.6875rem;
  }
}

/* Group header (Nachmittagsbetreuung) */
.schedule-group-header {
  grid-column: 1 / -1;
  padding: 0.5rem 0.75rem 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.01em;
  background: rgba(212, 148, 58, 0.06);
  border-top: 1px solid rgba(212, 148, 58, 0.15);
}

/* Checkbox cells */
.schedule-check-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  background: rgba(255, 255, 255, 0.3);
  transition: background-color var(--duration-fast) var(--ease-out-expo);
}

.schedule-check-cell:hover {
  background: rgba(212, 148, 58, 0.06);
}

/* Custom schedule checkbox */
.schedule-check {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.schedule-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-mark {
  width: 1.375rem;
  height: 1.375rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.6);
  position: relative;
  transition:
    border-color var(--duration-fast) var(--ease-out-expo),
    background-color var(--duration-fast) var(--ease-out-expo),
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-fast) var(--ease-out-expo);
}

.check-mark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 7px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.schedule-check:hover .check-mark {
  border-color: var(--accent-light);
  transform: scale(1.05);
}

.schedule-check input:focus-visible + .check-mark {
  box-shadow: 0 0 0 3px var(--input-focus-ring);
  border-color: var(--accent);
}

.schedule-check input:checked + .check-mark {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px -2px var(--accent-glow);
}

.schedule-check input:checked + .check-mark::after {
  transform: rotate(45deg) scale(1);
}

.schedule-check input:active + .check-mark {
  transform: scale(0.92);
}

/* Disabled cells (Mittwoch Elements 3-7) */
.schedule-disabled {
  background: rgba(0, 0, 0, 0.02);
}

.disabled-mark {
  font-size: 0.875rem;
  color: var(--text-muted);
  opacity: 0.5;
  user-select: none;
}

/* Schedule error */
.schedule-error {
  margin-bottom: var(--space-md);
  margin-top: calc(-1 * var(--space-sm));
}


/* ==========================================================
   Info Section
   ========================================================== */
.form-info-section {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.info-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  background: rgba(212, 148, 58, 0.06);
  border: 1px solid rgba(212, 148, 58, 0.12);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-notice__icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1875rem;
}

.info-notice a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.info-notice a:hover {
  color: var(--accent);
}


/* ==========================================================
   Submit Button
   ========================================================== */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.875rem 2rem;
  margin-top: var(--space-xl);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-normal) var(--ease-out-expo);
  box-shadow:
    0 4px 14px -4px rgba(212, 148, 58, 0.45),
    0 0 32px -12px rgba(212, 148, 58, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 8px 24px -6px rgba(212, 148, 58, 0.45),
    0 0 48px -12px rgba(212, 148, 58, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-submit:hover::before {
  opacity: 1;
}

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

.btn-submit:active {
  transform: translateY(0) scale(0.98);
}

.btn-submit__arrow {
  width: 1.125rem;
  height: 1.125rem;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.btn-submit:hover .btn-submit__arrow {
  transform: translateX(3px);
}

/* Loading state */
.btn-submit__loader {
  display: none;
}

.btn-submit.is-loading .btn-submit__text {
  opacity: 0;
}

.btn-submit.is-loading .btn-submit__arrow {
  display: none;
}

.btn-submit.is-loading .btn-submit__loader {
  display: block;
  position: absolute;
}

.spinner {
  width: 1.5rem;
  height: 1.5rem;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-submit.is-loading {
  pointer-events: none;
  opacity: 0.75;
}


/* ==========================================================
   Success Message
   ========================================================== */
.success-message {
  display: none;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  animation: success-in 0.6s var(--ease-out-expo);
}

.success-message.is-visible {
  display: block;
}

@keyframes success-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: #22a55a;
  margin: 0 auto var(--space-lg);
  stroke-width: 1.5;
}

.success-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.success-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 40ch;
  margin: 0 auto;
}


/* ==========================================================
   Error Banner
   ========================================================== */
.error-banner {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-lg);
  background: rgba(229, 77, 77, 0.06);
  border: 1px solid rgba(229, 77, 77, 0.15);
  border-radius: var(--radius-sm);
  animation: error-in 0.4s var(--ease-out-expo);
}

.error-banner.is-visible {
  display: flex;
}

.error-banner__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #d93636;
  flex-shrink: 0;
}

.error-banner__text {
  font-size: 0.875rem;
  color: #d93636;
  font-weight: 500;
}


/* ==========================================================
   Footer
   ========================================================== */
.page-footer {
  margin-top: var(--space-2xl);
  text-align: center;
  animation: card-enter 0.6s var(--ease-out-expo) both;
  animation-delay: 0.3s;
}

.page-footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.page-footer__credit {
  margin-top: var(--space-xs);
}

.page-footer__credit a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.page-footer__credit a:hover {
  color: var(--accent);
}

.page-footer__credit a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ==========================================================
   Scrollbar (general)
   ========================================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.18);
}
