/* ==========================================================================
   DEVSPEC STUDIO - DESIGN SYSTEM & STYLESHEET
   Style: Modern SaaS / Minimalist Slate with Electric Indigo Accent
   ========================================================================== */

/* --- ROOT TOKENS & PALETTE --- */
:root {
  /* Fonts */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Primary & Accent Colors */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent: #8b5cf6;
  --accent-cyan: #06b6d4;
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);

  /* Success & Error */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.3);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --error-border: rgba(239, 68, 68, 0.35);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- DARK THEME (DEFAULT) --- */
body[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #1e293b;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-input: rgba(8, 14, 26, 0.75);
  --bg-chip: rgba(255, 255, 255, 0.05);
  --bg-chip-hover: rgba(99, 102, 241, 0.15);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #6366f1;
  --border-hover: rgba(255, 255, 255, 0.18);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --header-bg: rgba(9, 13, 22, 0.85);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  --input-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  --modal-overlay: rgba(3, 7, 18, 0.82);
}

/* --- LIGHT THEME (CLEAN SLATE) --- */
body[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-input: #ffffff;
  --bg-chip: #f1f5f9;
  --bg-chip-hover: rgba(99, 102, 241, 0.12);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: #6366f1;
  --border-hover: rgba(0, 0, 0, 0.18);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --header-bg: rgba(255, 255, 255, 0.88);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  --input-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
  --modal-overlay: rgba(15, 23, 42, 0.65);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow background effect */
body::before {
  content: "";
  position: fixed;
  top: -10vw;
  left: 20%;
  width: 60vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.09) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* --- TOP STICKY NAV & PROGRESS BAR --- */
.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1);
  transition: border-color var(--transition-normal);
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Progress bar inside header */
.progress-meta {
  flex: 1;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.progress-details strong {
  color: var(--primary);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 7px;
  background-color: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  box-shadow: 0 0 12px var(--primary-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  background: var(--bg-chip);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-chip-hover);
  color: var(--text-primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Icon visibility based on theme */
body[data-theme="dark"] .sun-icon {
  display: block;
}

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

body[data-theme="light"] .sun-icon {
  display: none;
}

body[data-theme="light"] .moon-icon {
  display: block;
}

.draft-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-chip);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.draft-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* --- MAIN CONTAINER --- */
.page-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
  position: relative;
  z-index: 1;
}

/* --- HERO SECTION --- */
.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 1rem 0 1.5rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--gradient-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.chip-sparkle {
  color: #a855f7;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 1.8rem;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-chip);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
}

.stat-item strong {
  color: var(--text-primary);
}

/* --- FORM BLOCKS (CARDS) --- */
.form-block {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.form-block:focus-within {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--card-shadow), 0 0 24px rgba(99, 102, 241, 0.08);
}

/* Block Header */
.block-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--border-color);
}

.block-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-feature-settings: "tnum";
}

.block-info {
  flex: 1;
}

.block-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.block-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.block-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-chip);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.block-status-pill.completed {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

/* --- FORM GROUPS & FIELDS --- */
.block-fields {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.field-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
  cursor: pointer;
}

.label-number {
  color: var(--primary);
  font-weight: 700;
}

.required-star {
  color: var(--primary);
  font-weight: 700;
}

.badge-vital {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  margin-left: 0.35rem;
}

.sub-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: block;
}

/* Input Wrapper & Controls */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--text-primary);
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 2.6rem 0.85rem 1rem;
  box-shadow: var(--input-shadow);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Fluid, Glowing :focus State */
.form-control:focus {
  border-color: var(--primary);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3.5px var(--primary-glow), 0 2px 8px rgba(0, 0, 0, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 85px;
  line-height: 1.55;
  padding-right: 2.6rem;
}

textarea.min-tall {
  min-height: 110px;
}

/* Field Indicator Icon (Filled checkmark) */
.field-indicator {
  position: absolute;
  right: 12px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.form-group.is-valid .field-indicator {
  opacity: 1;
  transform: scale(1);
}

.form-group.is-valid .form-control {
  border-color: rgba(16, 185, 129, 0.4);
}

/* Field Hint & Error */
.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  line-height: 1.45;
}

.field-error {
  display: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--error);
  margin-top: 0.45rem;
  animation: fadeIn 0.2s ease-in-out;
}

.form-group.has-error .field-error {
  display: block;
}

.form-group.has-error .form-control {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px var(--error-bg) !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shakeError {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

.form-group.shake {
  animation: shakeError 0.4s ease-in-out;
}

/* --- QUICK SUGGESTION CHIPS --- */
.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.tag-chip {
  background: var(--bg-chip);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tag-chip:hover {
  background: var(--bg-chip-hover);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.tag-chip:active {
  transform: scale(0.97);
}

.tag-chip.active {
  background: rgba(99, 102, 241, 0.22);
  color: #818cf8;
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
  font-weight: 600;
}

/* --- CONTACT SUB-GRID (BLOQUE 6) --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

/* --- SUBMIT CARD & BOTTOM BAR --- */
.submit-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.8rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--card-shadow);
  margin-top: 1rem;
}

.submit-summary {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-glow);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.submit-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.submit-subtitle {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.submit-buttons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary .btn-arrow {
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  background: var(--bg-chip);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--bg-chip-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-chip);
  border-color: var(--primary);
  color: var(--primary);
}

/* Spinner for loading state */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

.btn.is-loading .btn-text,
.btn.is-loading .btn-arrow {
  display: none;
}

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

/* --- MODAL DIALOG --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 2.4rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.1);
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-slow);
  overflow: hidden;
}

.modal-backdrop.is-active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 120px;
  background: var(--gradient-primary);
  filter: blur(50px);
  opacity: 0.35;
  pointer-events: none;
}

.modal-badge-success {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 2px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
  animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.6rem;
}

.modal-summary-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.8rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.45rem;
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-label {
  color: var(--text-muted);
}

.summary-value {
  color: var(--text-primary);
  font-weight: 600;
  max-width: 60%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-value.highlight {
  color: var(--success);
  font-weight: 700;
}

.modal-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
}

.modal-actions .btn {
  min-width: 200px;
}

@media (max-width: 480px) {
  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

/* --- TOAST NOTIFICATION --- */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 1050;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .progress-meta {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .form-block {
    padding: 1.5rem 1.25rem;
  }

  .submit-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }

  .submit-summary {
    flex-direction: column;
    text-align: center;
  }

  .submit-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}