:root {
  color-scheme: light dark;
  font-feature-settings: 'ss01' on, 'ss02' on;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.wd-hero {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand-main, #FF3B3C), transparent 84%), transparent 55%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--brand-accent, #FF6B6C), transparent 82%), transparent 55%);
}

.dark .wd-hero {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand-main, #FF3B3C), transparent 92%), transparent 55%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--brand-accent, #FF6B6C), transparent 90%), transparent 55%);
}

.hero-orbit {
  /* legacy alias */
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand-main, #FF3B3C), transparent 84%), transparent 55%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--brand-accent, #FF6B6C), transparent 82%), transparent 55%);
}

.dark .hero-orbit {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--brand-main, #FF3B3C), transparent 92%), transparent 60%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--brand-accent, #FF6B6C), transparent 90%), transparent 55%);
}

.glass {
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.92), rgba(249, 250, 251, 0.88));
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dark .glass {
  background: linear-gradient(to bottom right, rgba(9, 9, 11, 0.92), rgba(24, 24, 27, 0.78));
  border: 1px solid rgba(250, 250, 250, 0.04);
}

.glass-dark {
  background: linear-gradient(145deg, rgba(9, 9, 11, 0.88), rgba(24, 24, 27, 0.78));
  border-color: rgba(250, 250, 250, 0.06);
}

.dark .glass-dark {
  background: linear-gradient(145deg, rgba(9, 9, 11, 0.92), rgba(24, 24, 27, 0.82));
  border-color: rgba(250, 250, 250, 0.08);
}

.wd-card {
  border-radius: 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 45px -28px rgba(15, 23, 42, 0.8);
}

.dark .wd-card {
  border-color: rgba(255, 255, 255, 0.08);
  background-color: rgba(15, 23, 42, 0.72);
}

.wd-card[data-state="muted"] {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.6);
}

.dark .wd-card[data-state="muted"] {
  background: rgba(9, 9, 11, 0.6);
}

.wd-form-control {
  width: 100%;
  border: none;
  border-bottom: 2px solid rgba(148, 163, 184, 0.6);
  padding: 0.65rem 0;
  background: transparent;
  color: inherit;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.wd-form-control:focus {
  outline: none;
  border-bottom-color: var(--brand-main, #FF3B3C);
}

.dark .wd-form-control {
  border-bottom-color: rgba(148, 163, 184, 0.4);
}

.dark .wd-form-control:focus {
  border-bottom-color: color-mix(in srgb, var(--brand-main, #FF3B3C), white 25%);
}

.wd-form-control[aria-invalid="true"],
.wd-form-control.invalid {
  border-bottom-color: #ef4444;
}

.dark .wd-form-control[aria-invalid="true"],
.dark .wd-form-control.invalid {
  border-bottom-color: #f87171;
}

.wd-field-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  color: rgba(71, 85, 105, 0.9);
  font-weight: 600;
}

.dark .wd-field-label {
  color: rgba(226, 232, 240, 0.75);
}

.wd-field-message {
  font-size: 0.8rem;
  color: rgba(71, 85, 105, 0.8);
  min-height: 1rem;
}

.dark .wd-field-message {
  color: rgba(226, 232, 240, 0.6);
}

.wd-field-error {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ef4444;
  min-height: 1rem;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.2s ease;
}

.wd-field-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dark .wd-field-error {
  color: #fca5a5;
}

.wd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wd-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand-main, #FF3B3C), white 20%);
  outline-offset: 3px;
}

.wd-btn-primary {
  background: linear-gradient(135deg, var(--brand-main, #FF3B3C), color-mix(in srgb, var(--brand-main, #FF3B3C), white 18%));
  color: #fff;
  box-shadow: 0 18px 30px -20px rgba(15, 23, 42, 0.7);
}

.wd-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 25px 45px -22px rgba(15, 23, 42, 0.8);
}

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

.wd-btn-secondary {
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.dark .wd-btn-secondary {
  background: rgba(250, 250, 250, 0.08);
  color: rgba(250, 250, 250, 0.92);
  border-color: rgba(250, 250, 250, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-main, #FF3B3C) 0%, color-mix(in srgb, var(--brand-main, #FF3B3C), white 20%) 100%);
  color: #fff !important;
  border: 1px solid color-mix(in srgb, var(--brand-main, #FF3B3C), black 15%);
  border-radius: 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 18px 45px -20px rgba(15, 23, 42, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  isolation: isolate;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 25px 55px -25px rgba(15, 23, 42, 0.8);
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0.75;
  pointer-events: none;
  mix-blend-mode: screen;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.05);
  color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.08);
}

.dark .btn-secondary {
  background: rgba(250, 250, 250, 0.08);
  color: rgba(250, 250, 250, 0.85);
  border-color: rgba(250, 250, 250, 0.15);
}

.dark .btn-secondary:hover {
  background: rgba(250, 250, 250, 0.12);
}

.wd-pill {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.7);
}

.dark .wd-pill {
  background: rgba(250, 250, 250, 0.08);
  color: rgba(250, 250, 250, 0.65);
}

.wd-surface-muted {
  background: rgba(244, 244, 245, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1.5rem;
}

.dark .wd-surface-muted {
  background: rgba(24, 24, 27, 0.85);
  border-color: rgba(113, 113, 122, 0.45);
}

.wd-shadow-soft {
  box-shadow: 0 18px 45px -25px rgba(15, 23, 42, 0.85);
}

.wd-grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.wd-divider {
  height: 1px;
  width: 100%;
  background: rgba(148, 163, 184, 0.3);
}

.dark .wd-divider {
  background: rgba(148, 163, 184, 0.18);
}

.wd-toast-stack {
  position: fixed;
  inset-inline-end: 1.5rem;
  inset-block-start: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 90;
}

@media (max-width: 640px) {
  .wd-toast-stack {
    inset-inline-end: 0.75rem;
    inset-inline-start: 0.75rem;
    inset-block-start: auto;
    inset-block-end: 1rem;
  }
}

.wd-toast {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 35px -25px rgba(15, 23, 42, 0.8);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-width: 260px;
}

.dark .wd-toast {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.wd-toast[data-tone="success"] {
  border-color: rgba(34, 197, 94, 0.35);
}

.wd-toast[data-tone="error"] {
  border-color: rgba(239, 68, 68, 0.35);
}

.wd-toast[data-tone="warning"] {
  border-color: rgba(245, 158, 11, 0.35);
}

.wd-toast__title {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.95);
}

.dark .wd-toast__title {
  color: rgba(248, 250, 252, 0.95);
}

.wd-toast__message {
  font-size: 0.9rem;
  color: rgba(71, 85, 105, 0.9);
}

.dark .wd-toast__message {
  color: rgba(226, 232, 240, 0.8);
}

.wd-badge {
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.7);
}

.dark .wd-badge {
  background: rgba(250, 250, 250, 0.1);
  color: rgba(250, 250, 250, 0.75);
}

.wd-scroll-area {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
}

.wd-scroll-area::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.wd-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
  border-radius: 999px;
}

.wd-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}

.wd-chip {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(244, 244, 245, 0.8);
  color: rgba(15, 23, 42, 0.8);
}

.dark .wd-chip {
  background: rgba(39, 39, 42, 0.8);
  color: rgba(250, 250, 250, 0.8);
}

.wd-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.wd-section-title {
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wd-section-subtitle {
  color: rgba(71, 85, 105, 0.85);
  max-width: 52ch;
}

.dark .wd-section-subtitle {
  color: rgba(203, 213, 225, 0.7);
}

.wd-focus-ring {
  outline: 2px solid color-mix(in srgb, var(--brand-main, #FF3B3C), white 20%);
  outline-offset: 2px;
}

.wd-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.wd-bento-grid>* {
  border-radius: 1.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.92);
}

.dark .wd-bento-grid>* {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(9, 9, 11, 0.82);
}

.wd-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.wd-table thead th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: rgba(71, 85, 105, 0.8);
  padding: 0.9rem;
}

.wd-table tbody td {
  padding: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.dark .wd-table tbody td {
  border-color: rgba(63, 63, 70, 0.6);
}

.wd-table tbody tr:hover {
  background: rgba(244, 244, 245, 0.65);
}

.dark .wd-table tbody tr:hover {
  background: rgba(39, 39, 42, 0.65);
}

.wd-tag-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 244, 245, 0.8);
  color: rgba(15, 23, 42, 0.7);
  font-weight: 600;
}

.dark .wd-tag-circle {
  background: rgba(39, 39, 42, 0.8);
  color: rgba(250, 250, 250, 0.85);
}

.wd-timeline {
  position: relative;
  padding-left: 1.5rem;
}

.wd-timeline::before {
  content: "";
  position: absolute;
  inset-block-start: 0.3rem;
  inset-inline-start: 0.65rem;
  width: 2px;
  height: calc(100% - 0.6rem);
  background: rgba(148, 163, 184, 0.4);
}

.wd-timeline__item {
  position: relative;
  padding-bottom: 1.5rem;
}

.wd-timeline__item::before {
  content: "";
  position: absolute;
  inset-inline-start: -0.05rem;
  inset-block-start: 0.15rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--brand-main, #FF3B3C);
  box-shadow: 0 0 0 6px rgba(255, 59, 60, 0.25);
}

.wd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 90;
}

.wd-modal {
  width: min(520px, calc(100% - 2rem));
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 40px 80px -45px rgba(15, 23, 42, 0.9);
  padding: 2rem;
}

.dark .wd-modal {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

.wd-floating-action {
  position: fixed;
  inset-inline-end: 1.5rem;
  inset-block-end: 1.5rem;
  border-radius: 999px;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-main, #FF3B3C), color-mix(in srgb, var(--brand-main, #FF3B3C), white 10%));
  color: #fff;
  box-shadow: 0 25px 40px -20px rgba(15, 23, 42, 0.85);
}

@keyframes wdFadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

[data-wd-animate="in"] {
  animation: wdFadeInUp 0.45s ease forwards;
  opacity: 0;
}

.wd-progress-bar {
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

.wd-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-main, #FF3B3C), color-mix(in srgb, var(--brand-accent, #FF6B6C), white 10%));
  transition: width 0.35s ease;
}

.cta-button {
  transition: all 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px -20px rgba(15, 23, 42, 0.45);
}

.pill {
  background: linear-gradient(to right, var(--brand-500, var(--brand-main, #FF3B3C)), var(--brand-accent, #FF6B6C));
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Phone input styles */
.phone-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  color: #111827;
  transition: all 0.2s ease;
}

.phone-input:focus {
  border-color: var(--brand-main);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-main), transparent calc(100% - 0.1 * 100%));
}

.dark .phone-input {
  border-color: #374151;
  background-color: #1f2937;
  color: #f9fafb;
}

.dark .phone-input:focus {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgb(52 211 153 / 0.1);
}

.phone-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgb(239 68 68 / 0.1);
}

.dark .phone-input.error {
  border-color: #f87171;
}

.phone-error {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ef4444;
  min-height: 1.25rem;
  line-height: 1.25rem;
}

.dark .phone-error {
  color: #f87171;
}

.phone-error.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Intl-tel-input overrides for better styling */
.iti {
  width: 100%;
}

.iti__country-container {
  background: transparent;
  border: none;
}

.iti__selected-dial-code {
  color: #6b7280;
  font-weight: 500;
}

.dark .iti__selected-dial-code {
  color: #9ca3af;
}

.iti__arrow {
  border-top-color: #6b7280;
}

.dark .iti__arrow {
  border-top-color: #9ca3af;
}

.iti__country-list {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  max-height: 200px;
}

.dark .iti__country-list {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

.iti__country-list-item {
  padding: 0.5rem 1rem;
  transition: background-color 0.15s ease;
}

.iti__country-list-item:hover {
  background-color: #f3f4f6;
}

.dark .iti__country-list-item:hover {
  background-color: #374151;
}
/* Loading Skeletons */
.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #f1f5f9;
}

.dark .skeleton {
  background-color: #18181b;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.4) 60%,
    rgba(255, 255, 255, 0)
  );
  animation: shimmer 2.5s infinite;
}

.dark .skeleton::after {
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.04) 20%,
    rgba(255, 255, 255, 0.08) 60%,
    rgba(255, 255, 255, 0)
  );
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.thumbnail-wrapper img {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.skeleton-loaded img {
  opacity: 1 !important;
}

.skeleton-loaded::after {
  display: none !important;
}
