/* ============================================
   Claro Docs — Stylesheet
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-tertiary: #f1f3f5;
  --color-text: #1a1a2e;
  --color-text-secondary: #6c7689;
  --color-text-muted: #9ca3af;
  --color-accent: #1a1a2e;
  --color-accent-light: #e8e8ed;
  --color-border: #e5e7eb;
  --color-border-light: #f0f0f0;
  --color-code-bg: #f6f8fa;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;

  --sidebar-width: 280px;
  --header-height: 64px;
  --content-max-width: 820px;
  --page-padding: 24px;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Reset and base
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-text-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-padding);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-logo:hover {
  color: var(--color-text);
}

.header-logo svg {
  width: 28px;
  height: 28px;
}

.header-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-bg-secondary);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-text);
  background: var(--color-bg-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-support:hover {
  color: var(--color-bg);
  opacity: 0.9;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ============================================
   Sidebar
   ============================================ */

.docs-layout {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  overflow-y: auto;
  padding: 20px 16px 40px;
  border-right: 1px solid var(--color-border-light);
  background: var(--color-bg);
  z-index: 50;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

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

.sidebar::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.sidebar-group {
  margin-bottom: 24px;
}

.sidebar-group-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding: 0 12px;
  margin-bottom: 6px;
}

.sidebar-group ul {
  list-style: none;
}

.sidebar-group li a {
  display: block;
  font-size: 0.8125rem;
  font-weight: 450;
  color: var(--color-text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  line-height: 1.5;
}

.sidebar-group li a:hover {
  color: var(--color-text);
  background: var(--color-bg-secondary);
}

.sidebar-group li a.active {
  color: var(--color-text);
  background: var(--color-accent-light);
  font-weight: 550;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 40;
}

/* ============================================
   Content
   ============================================ */

.docs-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 40px var(--page-padding) 80px;
  min-width: 0;
}

.content-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ============================================
   Docs prose
   ============================================ */

.prose h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--color-text);
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
}

.prose h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.prose h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.prose p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

.prose > p:first-of-type {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.prose ul, .prose ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 6px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.prose li::marker {
  color: var(--color-text-muted);
}

.prose strong {
  font-weight: 600;
  color: var(--color-text);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-text);
}

.prose pre {
  background: var(--color-text);
  color: #e5e7eb;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.prose blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 12px 20px;
  margin-bottom: 16px;
  background: var(--color-bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose blockquote p {
  margin-bottom: 0;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: 32px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.prose th {
  text-align: left;
  font-weight: 600;
  padding: 10px 16px;
  background: var(--color-bg-secondary);
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text);
  white-space: nowrap;
}

.prose td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  margin: 16px 0;
}

/* ============================================
   Callouts / Info boxes
   ============================================ */

.callout {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.callout svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.callout p {
  margin: 0;
  color: inherit;
}

.callout--info {
  background: #eff6ff;
  color: #1e40af;
}

.callout--info svg { color: #3b82f6; }

.callout--tip {
  background: #ecfdf5;
  color: #065f46;
}

.callout--tip svg { color: #10b981; }

.callout--warning {
  background: #fffbeb;
  color: #92400e;
}

.callout--warning svg { color: #f59e0b; }

/* ============================================
   Settings table
   ============================================ */

.settings-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.8125rem;
}

.settings-table th {
  text-align: left;
  font-weight: 600;
  padding: 10px 14px;
  background: var(--color-bg-secondary);
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text);
}

.settings-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  vertical-align: top;
}

.settings-table code {
  font-size: 0.8125em;
  background: var(--color-code-bg);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--color-text);
  white-space: nowrap;
}

/* ============================================
   Feature cards
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.feature-card .icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  color: var(--color-text);
}

.feature-card .icon svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Page nav (prev / next)
   ============================================ */

.page-nav {
  display: flex;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.page-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-decoration: none;
}

.page-nav a:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.page-nav .label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-nav .title {
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--color-text);
}

.page-nav a:last-child {
  text-align: right;
}

/* ============================================
   On this page (right sidebar ToC)
   ============================================ */

.toc {
  position: fixed;
  top: calc(var(--header-height) + 40px);
  right: 24px;
  width: 200px;
  max-height: calc(100vh - var(--header-height) - 80px);
  overflow-y: auto;
  display: none;
}

.toc-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.toc ul {
  list-style: none;
  border-left: 1px solid var(--color-border-light);
  padding-left: 12px;
}

.toc li a {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  padding: 3px 0;
  transition: color 0.2s ease;
  line-height: 1.5;
}

.toc li a:hover,
.toc li a.active {
  color: var(--color-text);
}

@media (min-width: 1280px) {
  .toc {
    display: block;
  }

  .docs-content {
    margin-right: 240px;
  }
}

/* ============================================
   Home page
   ============================================ */

.docs-hero {
  margin-bottom: 48px;
}

.docs-hero h1 {
  font-size: 2.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.docs-hero p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.quick-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-decoration: none;
}

.quick-link:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: var(--color-text);
}

.quick-link .ql-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.quick-link .ql-icon svg {
  width: 20px;
  height: 20px;
}

.quick-link .ql-text h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.quick-link .ql-text p {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.section-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.section-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.section-list li a:hover {
  color: var(--color-text);
  background: var(--color-bg-secondary);
}

.section-list li a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

/* ============================================
   Support page
   ============================================ */

.page-layout {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.page-hero {
  padding: 64px var(--page-padding) 48px;
  text-align: center;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border-light);
}

.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px var(--page-padding) 80px;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.support-card {
  padding: 28px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.support-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.support-card .sc-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  color: var(--color-text);
}

.support-card .sc-icon svg {
  width: 24px;
  height: 24px;
}

.support-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.support-card a.card-link {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.support-card a.card-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Privacy policy
   ============================================ */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--page-padding) 80px;
}

.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 650;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 4px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  border-top: 1px solid var(--color-border-light);
  padding: 24px var(--page-padding);
  text-align: center;
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-text-secondary);
}

/* ============================================
   404 page
   ============================================ */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 80px);
  margin-top: var(--header-height);
  text-align: center;
  padding: var(--page-padding);
}

.not-found h1 {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 8px;
}

.not-found p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.not-found a {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--color-bg);
  background: var(--color-accent);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease;
}

.not-found a:hover {
  color: var(--color-bg);
  opacity: 0.9;
}

/* ============================================
   Search
   ============================================ */

.search-box {
  position: relative;
  margin-bottom: 24px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

.search-box input::placeholder {
  color: var(--color-text-muted);
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 990px) {
  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 60;
    background: var(--color-bg);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .docs-content {
    margin-left: 0;
    margin-right: 0;
  }

  .toc {
    display: none !important;
  }
}

@media (max-width: 750px) {
  :root {
    --page-padding: 16px;
  }

  .prose h1 {
    font-size: 1.625rem;
  }

  .prose h2 {
    font-size: 1.25rem;
    margin-top: 36px;
  }

  .docs-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-nav {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .support-cards {
    grid-template-columns: 1fr;
  }

  .section-list {
    grid-template-columns: 1fr;
  }

  .settings-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .btn-support span {
    display: none;
  }
}

/* ============================================
   Contact form
   ============================================ */

.contact-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row--half > .form-group {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 550;
  color: var(--color-text);
}

.form-group label .required {
  color: #ef4444;
  margin-left: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c7689' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input.input-error,
.form-group textarea.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.field-error {
  font-size: 0.75rem;
  color: #ef4444;
  min-height: 0;
}

.file-upload {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--color-bg);
}

.file-upload:hover,
.file-upload--dragover {
  border-color: var(--color-accent);
  background: var(--color-bg-secondary);
}

.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none !important;
  padding: 0 !important;
}

.file-upload-content svg {
  width: 28px;
  height: 28px;
  color: var(--color-text-muted);
  margin: 0 auto 8px;
}

.file-upload-content p {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

.file-upload-content p span {
  color: var(--color-accent);
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.file-hint {
  font-size: 0.75rem !important;
  color: var(--color-text-muted) !important;
  margin-top: 4px !important;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

.file-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text);
  font-weight: 450;
}

.file-size {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.form-submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.spinner {
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
}

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

.form-alert {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.875rem;
  line-height: 1.6;
  align-items: flex-start;
}

.form-alert svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.form-alert p {
  margin: 0;
}

.form-alert--success {
  background: #ecfdf5;
  color: #065f46;
}

.form-alert--success svg {
  color: #10b981;
}

.form-alert--error {
  background: #fef2f2;
  color: #991b1b;
}

.form-alert--error svg {
  color: #ef4444;
}

.contact-info {
  margin-top: 32px;
  text-align: center;
}

.contact-info p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.contact-info a {
  color: var(--color-accent);
  font-weight: 550;
}

@media (max-width: 750px) {
  .form-row {
    flex-direction: column;
    gap: 20px;
  }
}

/* ============================================
   Reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
