:root {
  --rozi-green: #28a745;
  --rozi-orange: #ff7a00;
  --rozi-light: #f8f9fa;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--rozi-light);
  -webkit-font-smoothing: antialiased;
}

.font-inter {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Page transition */
.page {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}

.page.page-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Step animations */
.provider-step {
  display: none;
}
.provider-step.step-active {
  display: block;
  animation: fadeInSlide 300ms ease-out forwards;
}
.booking-step {
  display: none;
}
.booking-step.step-active {
  display: block;
  animation: fadeInSlide 300ms ease-out forwards;
}
@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateX(15px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Splash progress */
.splash-progress {
  width: 0;
  transition: width 2.2s ease-out;
}

/* Reusable components */
.rozi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out,
    background-color 120ms ease-out, color 120ms ease-out;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.04);
}

.rozi-btn-primary {
  background-color: var(--rozi-green);
  color: #ffffff;
}

.rozi-btn-primary:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.06);
}

/* Cards */
.rozi-card {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out,
    border-color 120ms ease-out;
}

.rozi-card:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.08);
}

/* Inputs */
.rozi-input {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: #ffffff;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out,
    background-color 120ms ease-out;
}

.rozi-input::placeholder {
  color: rgb(148, 163, 184);
}

.rozi-input:focus {
  border-color: rgba(40, 167, 69, 0.7);
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.16);
  background-color: #ffffff;
}

/* Labels */
.rozi-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgb(71, 85, 105);
  margin-bottom: 0.3rem;
}

/* OTP inputs */
.otp-input {
  width: 2.5rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background-color: #ffffff;
  text-align: center;
  font-size: 1rem;
  outline: none;
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}

.otp-input:focus {
  border-color: rgba(40, 167, 69, 0.7);
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.16);
}

/* Chips */
.chip {
  border-radius: 9999px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: #ffffff;
  color: rgb(71, 85, 105);
  cursor: pointer;
  transition: all 150ms ease-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip:hover {
  background-color: rgba(255, 122, 0, 0.08);
  border-color: rgba(255, 122, 0, 0.6);
  color: var(--rozi-orange);
}

.chip:active {
  transform: translateY(1px) scale(0.98);
}

.chip.chip-active {
  background-color: var(--rozi-orange);
  border-color: var(--rozi-orange);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(255, 122, 0, 0.2);
}

/* Profession service cards (provider setup) */
[data-chip-group="profession"] {
  position: relative;
  transition: all 150ms ease-out;
}

[data-chip-group="profession"]:hover {
  border-color: rgba(255, 122, 0, 0.4);
  background-color: rgba(255, 122, 0, 0.02);
}

[data-chip-group="profession"]:active {
  transform: translateY(1px) scale(0.98);
}

[data-chip-group="profession"].chip-active {
  border-color: var(--rozi-orange);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.15);
  background-color: var(--rozi-orange);
  color: #ffffff;
}

[data-chip-group="profession"].chip-active * {
  color: #ffffff !important;
  background-color: transparent !important;
}

[data-chip-group="profession"].chip-active::after {
  content: "\f00c";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background-color: var(--rozi-orange);
  box-shadow: 0 0 0 2px #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
  color: #ffffff;
  z-index: 10;
}

/* Service cards (home) */
.service-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.04);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* Bottom nav items */
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  color: rgb(148, 163, 184);
  transition: color 120ms ease-out;
}

.nav-item.active {
  color: var(--rozi-green);
}

/* Banner slider */
.banner-slider {
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none;
}

.banner-slider::-webkit-scrollbar {
  display: none;
}

.banner-slide {
  scroll-snap-align: start;
}

/* Utility */
.bg-rozi-light {
  background-color: var(--rozi-light);
}

.text-rozi-green {
  color: var(--rozi-green);
}

.text-rozi-orange {
  color: var(--rozi-orange);
}

.bg-rozi-green\/10 {
  background-color: rgba(40, 167, 69, 0.1);
}

.bg-rozi-orange\/10 {
  background-color: rgba(255, 122, 0, 0.1);
}

/* Narrow mobile width focus */
@media (min-width: 420px) {
  main {
    display: flex;
    justify-content: center;
  }
}