/* Shared Aspen Bravo Onboarding Theme */
/* Extracted from quote.aspenbravo.com */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;700;800&family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  --surface-container-lowest: #ffffff;
  --secondary: #545f72;
  --surface-dim: #d7dadc;
  --on-error: #ffffff;
  --error: #ba1a1a;
  --surface-bright: #f7fafc;
  --background: #f7fafc;
  --secondary-container: #d5e0f7;
  --inverse-surface: #2d3133;
  --on-error-container: #93000a;
  --inverse-on-surface: #eef1f3;
  --surface: #f7fafc;
  --error-container: #ffdad6;
  --on-primary-fixed: #081c36;
  --on-surface: #181c1e;
  --on-secondary-fixed-variant: #3c475a;
  --on-secondary-container: #586377;
  --primary-fixed-dim: #b6c7e9;
  --primary-fixed: #d6e3ff;
  --surface-container-high: #e5e9eb;
  --on-secondary-fixed: #111c2c;
  --tertiary-container: #002312;
  --tertiary-fixed: #9ff5c1;
  --on-tertiary-fixed: #002111;
  --primary-container: #0a1d37;
  --primary: #00030a;
  --surface-variant: #e0e3e5;
  --on-tertiary-container: #409568;
  --outline-variant: #c5c6ce;
  --on-primary-container: #7586a5;
  --surface-container-highest: #e0e3e5;
  --surface-tint: #4e5f7c;
  --secondary-fixed-dim: #bcc7dd;
  --tertiary-fixed-dim: #83d8a6;
  --surface-container-low: #f1f4f6;
  --on-tertiary: #ffffff;
  --on-background: #181c1e;
  --on-surface-variant: #44474d;
  --tertiary: #000402;
  --secondary-fixed: #d8e3fa;
  --on-secondary: #ffffff;
  --on-primary-fixed-variant: #364763;
  --inverse-primary: #b6c7e9;
  --on-primary: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.font-headline { font-family: 'Manrope', sans-serif; }
.font-body      { font-family: 'Inter', sans-serif; }
.font-label     { font-family: 'Inter', sans-serif; }

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  animation: spin 1s linear infinite;
  border: 3px solid #e0e3e5;
  border-top-color: #00030a;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

header {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  box-shadow: none;
}

header .logo img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

main {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem;
}

.card {
  background: var(--surface-container-lowest);
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(24,28,30,0.06);
  padding: 2rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--secondary);
  font-family: 'Inter', sans-serif;
  margin-bottom: 1.5rem;
}

.step-indicator .step-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: var(--outline-variant);
}
.step-indicator .step-dot.active {
  background: var(--primary);
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(197,198,206,0.3);
  background: var(--surface-container-low);
  color: var(--on-surface);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 2px rgba(0,3,10,0.08);
  border-color: var(--primary);
}
input::placeholder, textarea::placeholder {
  color: var(--outline);
}

button[type="submit"], .btn-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--tertiary-container);
  color: #fff;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
button[type="submit"]:hover, .btn-primary:hover {
  background: rgba(0,35,18,0.9);
}

button[type="submit"]:disabled, .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface);
  margin-bottom: 0.25rem;
  font-family: 'Inter', sans-serif;
}

.error-msg {
  font-size: 0.875rem;
  color: var(--error);
  margin-top: 0.5rem;
  font-family: 'Inter', sans-serif;
  display: none;
}
.error-msg.visible { display: block; }

#auth-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  gap: 1rem;
  font-family: 'Inter', sans-serif;
  color: #545f72;
  font-size: 0.875rem;
}

.hidden { display: none !important; }

.signature-canvas {
  border: 2px dashed var(--outline-variant);
  border-radius: 0.5rem;
  width: 100%;
  height: 200px;
  cursor: crosshair;
  touch-action: none;
  background: #fff;
}

.text-center { text-align: center; }
.text-secondary { color: var(--secondary); }
.text-sm { font-size: 0.875rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.space-y-4 > * + * { margin-top: 1rem; }
.w-full { width: 100%; }
.h-12 { height: 3rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.rounded-xl { border-radius: 0.75rem; }
.bg-white\80 { background: rgba(255,255,255,0.8); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.shadow-none { box-shadow: none; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.01em; }
.tracking-widest { letter-spacing: 0.1em; }

@media (max-width: 640px) {
  main { padding: 1rem; }
  .card { padding: 1.5rem; }
}
