/* =========================================================
   BASE RESET
========================================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #F8F9FA;
  color: #1F2937;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;

  margin-top: 15px;
}

button,
input {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}


/* =========================================================
   NAVBAR
========================================================= */

#navbar {
height: 60px;

}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-icon {
  background: url('/LogoSmall.svg') center/cover no-repeat;
  width: 100px;
  height: 40px;
  background-size: 100% 80%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: url('/LogoSmall.svg') center / contain no-repeat;
  width: 100px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #6D28D9;
  font-style: italic;
}

.search-container {
  position: relative;
  width: min(33.333%, 28rem);
  min-width: 12rem;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #9CA3AF;
  display: flex;
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 40px;
  background-color: #F3F4F6;
  font-size: 0.875rem;
  padding: 0.5rem 1rem 0.5rem 2.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  outline: none;
}

.search-input:focus {
  border-color: #C4B5FD;
  background-color: #FFFFFF;
}

.support-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  color: #4B5563;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}

.support-btn:hover {
  background-color: #F3F4F6;
}


/* =========================================================
   APP LAYOUT
========================================================= */

.app-container {
  display: flex;
  flex: 1;
  min-width: 0;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
  width: 4rem;
  min-width: 4rem;
  background-color: #FFFFFF;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  justify-content: space-between;
  min-height: calc(100vh - 60px);
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.menu-toggle,
.logout-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  color: #4B5563;
  cursor: pointer;
  border-radius: 0.5rem;
}

.menu-toggle:hover,
.logout-btn:hover {
  background-color: #F3F4F6;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.nav-link {
  padding: 0.5rem;
  color: #6B7280;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link.active {
  background-color: #6D28D9;
  color: #FFFFFF;
  border-radius: 0.75rem;
}

.icon {
  width: 20px;
  height: 20px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem)
           clamp(1rem, 5vw, 3rem);
}

.page-header {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.page-title {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.375rem;
}

.page-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  color: #6B7280;
  line-height: 1.5;
}


/* =========================================================
   STEPPER
========================================================= */

.stepper-container {
  width: 100%;
  max-width: 1105px;
  margin: 0 auto clamp(2rem, 5vw, 2.5rem);
  padding: 0;
  display: flex;
  align-items: flex-start;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: static;
  flex-shrink: 0;
}

.step-circle {
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 50%;
  background-color: #E5E7EB;
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-circle.active {
  background-color: #5B21B6;
  color: #FFFFFF;
}

.check-icon {
  width: 14px;
  height: 14px;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9CA3AF;
  text-align: center;
  white-space: nowrap;
}

.step-label.active {
  color: #5B21B6;
  font-weight: 600;
}

.step-line {
  flex: 1;
  min-width: 1rem;
  height: 2px;
  background-color: #E5E7EB;
  margin: 1rem 0.5rem 0;
}

.step-line.active {
  background-color: #5B21B6;
}


/* =========================================================
   SERVICES GRID
========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
}

.service-card {
  min-width: 0;
  background-color: #FFFFFF;
  border-radius: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-card.highlighted {
  background-color: #E5E7EB;
  border-color: #D1D5DB;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  color: #FFFFFF;
}

.service-icon.coral {
  background: linear-gradient(135deg, #e03367, #f46627);
}

.service-icon.magenta {
  background: linear-gradient(135deg, #8028c8, #c5288b);
}

.service-icon.orange {
  background: linear-gradient(135deg, #ff7100, #fbb122 90%);
}

.service-icon.purple {
  background: linear-gradient(135deg, #7928ce, #c6278a);
}

.price-tag {
  background-color: #F3F4F6;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.service-title {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.35;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.875rem;
  color: #4B5563;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.btn-book {
  width: 100%;
  min-height: 42px;
  background-color: #5B21B6;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}

.btn-book:hover {
  background-color: #4C1D95;
}

.btn-book:active {
  transform: scale(0.98);
}

.arrow-icon {
  width: 14px;
  height: 14px;
}


/* =========================================================
   CUSTOM REQUEST BANNER
========================================================= */

.custom-request-banner {
  width: 100%;
  background-color: #5B21B6;
  border-radius: 0.75rem;
  padding: clamp(1.25rem, 3vw, 1.5rem)
           clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: #FFFFFF;
}

.banner-text {
  min-width: 0;
}

.banner-text h2 {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.banner-text p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #E9D5FF;
  max-width: 500px;
}

.btn-custom-request {
  background-color: #FFFFFF;
  color: #111827;
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem;
  min-height: 42px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s, transform 0.15s;
}

.btn-custom-request:hover {
  background-color: #F9FAFB;
}

.btn-custom-request:active {
  transform: scale(0.98);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .main-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .search-container {
    width: 30%;
  }

  .services-grid {
    gap: 1rem;
  }

  .custom-request-banner {
    align-items: flex-start;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  /* Navbar */
  #navbar {
    min-height: 56px;
  }

  .logo-icon {
    width: 80px;
    height: 36px;
  }

  .logo-text {
    display: none;
  }

  .search-container {
    flex: 1;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .search-input {
    font-size: 0.8125rem;
    min-height: 38px;
    padding-left: 2rem;
  }

  .search-icon {
    left: 0.625rem;
  }


  /* App */
  .app-container {
    flex-direction: column;
  }


  /* Sidebar becomes bottom navigation */
  .sidebar {
    order: 2;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: auto;
    padding: 0.5rem 0.75rem;
    border-right: none;
    border-top: 1px solid #E5E7EB;
    flex-direction: row;
    position: sticky;
    bottom: 0;
    z-index: 50;
  }

  .sidebar-top {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    width: 100%;
  }

  .menu-toggle {
    display: none;
  }

  .nav-menu {
    flex-direction: row;
    justify-content: space-around;
    gap: 0.25rem;
    width: 100%;
  }

  .nav-link {
    padding: 0.625rem;
  }

  .logout-btn {
    display: none;
  }

  .main-content {
    order: 1;
    padding: 1.25rem 1rem 1.5rem;
  }


  /* Header */
  .page-header {
    margin-bottom: 1.5rem;
  }


  /* Stepper */
  .stepper-container {
    margin-bottom: 2rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
    scrollbar-width: none;
  }

  .stepper-container::-webkit-scrollbar {
    display: none;
  }

  .step-item {
    min-width: 2rem;
  }

  .step-label {
    font-size: 0.6875rem;
  }

  .step-line {
    min-width: 1.5rem;
    margin-left: 0.35rem;
    margin-right: 0.35rem;
  }


  /* Cards become single column */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .service-card {
    border-radius: 0.875rem;
    padding: 1.125rem;
  }

  .card-header {
    margin-bottom: 1rem;
  }

  .service-desc {
    margin-bottom: 1.25rem;
  }


  /* Banner becomes stacked */
  .custom-request-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
  }

  .banner-text p {
    max-width: none;
  }

  .btn-custom-request {
    width: 100%;
  }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

  .main-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .logo-icon {
    width: 70px;
  }

  .search-input {
    font-size: 0.75rem;
  }

  .service-card {
    padding: 1rem;
  }

  .service-icon {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
  }

  .price-tag {
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
  }

  .step-label {
    font-size: 0.625rem;
  }
}


/* =========================================================
   LARGE SCREENS
========================================================= */

@media (min-width: 1440px) {

  .main-content {
    max-width: 1280px;
  }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #7C3AED;
  outline-offset: 2px;
}