/* Ayelinklux - Category Selection with Odoo-inspired Minimalist Design
   Clean card grid organized into business type groups */

:root {
  --primary: #1b7f7c;
  --primary-dark: #0f4f4d;
  --accent: #FFA800;
  --accent-light: #FFB93D;
  --border: #e5e7eb;
  --bg-light: #f9fafb;
  --text-dark: #111827;
  --text-mid: #6b7280;
  --text-light: #9ca3af;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cat-select-section {
  max-width: 1280px;
  padding: 40px 20px 100px;
  background:
    radial-gradient(600px circle at 8% 0%, rgba(27, 127, 124, 0.06), transparent 60%),
    radial-gradient(500px circle at 100% 15%, rgba(255, 168, 0, 0.07), transparent 55%);
}

.cat-select-header {
  text-align: center;
  margin-bottom: 48px;
}

.cat-select-step {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  background: linear-gradient(120deg, var(--primary), var(--accent));
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.cat-select-intro {
  color: var(--text-mid);
  font-size: 16px;
  max-width: 65ch;
  margin: 0 auto 12px;
  line-height: 1.6;
  font-weight: 500;
}

.cat-select-login {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.cat-select-login a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.cat-select-login a:hover {
  color: var(--primary-dark);
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: 6px;
  background: rgba(27, 127, 124, 0.06);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.plan-chip i {
  color: var(--accent);
}

.plan-chip a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 2px;
}

.plan-chip-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.plan-chip-error i {
  color: #b91c1c;
}

.plan-chip-neutral {
  background: rgba(100, 116, 139, 0.08);
  border-color: rgba(100, 116, 139, 0.2);
  color: #475569;
}

.plan-chip-neutral i {
  color: #64748b;
}

/* BUSINESS TYPE GROUPS - Odoo Style */
.cat-groups {
  display: block;
}

.cat-group {
  margin-bottom: 56px;
}

.cat-group[style*="display: none"] {
  display: none !important;
}

.cat-group-header {
  margin-bottom: 24px;
  position: relative;
  padding-top: 14px;
}

.cat-group-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.cat-group-name {
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.5px;
}

.cat-group-desc {
  font-size: 13px;
  color: var(--text-light);
  margin: 6px 0 0 0;
  font-weight: 500;
}

.cat-group-emoji {
  display: none;
}

/* SEARCH */
.cat-select-search-group {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  margin: 0 0 32px 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  transition: border-color 0.2s ease;
}

.cat-select-search-group:focus-within {
  border-color: var(--primary);
}

.cat-select-search-group i {
  color: var(--text-light);
  font-size: 12px;
}

.catSearch {
  border: none;
  outline: none;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background: transparent;
}

.catSearch::placeholder {
  color: var(--text-light);
}

/* CATEGORY GRID - Odoo style cards */
.cat-select-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}

.cat-select-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.2s ease;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.cat-select-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cat-select-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.cat-select-card:hover::before {
  opacity: 1;
}

/* SELECTED STATE */
.cat-select-card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all 0.2s ease;
}

.cat-select-card.selected {
  border-color: var(--primary);
  background: rgba(27, 127, 124, 0.06);
  box-shadow: var(--shadow-md);
}

.cat-select-card.selected::before {
  opacity: 1;
}

.cat-select-card.selected .cat-select-card-check {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.cat-group[data-group="booking"] .cat-select-card.selected,
.cat-group[data-group="listings"] .cat-select-card.selected {
  border-color: var(--accent);
  background: rgba(255, 168, 0, 0.08);
}

.cat-group[data-group="booking"] .cat-select-card.selected .cat-select-card-check,
.cat-group[data-group="listings"] .cat-select-card.selected .cat-select-card-check {
  background: var(--accent);
  border-color: var(--accent);
}

.cat-select-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(27, 127, 124, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.cat-select-card:hover .cat-select-card-icon {
  background: var(--primary);
  color: white;
}

/* Alternate the accent color by business-type group so the page reads as
   two brand colors rather than a single green wash */
.cat-group[data-group="booking"] .cat-select-card::before,
.cat-group[data-group="listings"] .cat-select-card::before {
  background: var(--accent);
}

.cat-group[data-group="booking"] .cat-select-card-icon,
.cat-group[data-group="listings"] .cat-select-card-icon {
  background: rgba(255, 168, 0, 0.14);
  color: #b8790a;
}

.cat-group[data-group="booking"] .cat-select-card:hover .cat-select-card-icon,
.cat-group[data-group="listings"] .cat-select-card:hover .cat-select-card-icon {
  background: var(--accent);
  color: white;
}

.cat-group[data-group="booking"] .cat-group-header::before,
.cat-group[data-group="listings"] .cat-group-header::before {
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

/* FLOATING CONTINUE BAR */
.cat-select-continue-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100px;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  opacity: 0;
  transition: bottom 0.25s ease, opacity 0.25s ease;
}

.cat-select-continue-bar.visible {
  bottom: 0;
  opacity: 1;
}

.cat-select-continue-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cat-select-continue-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.cat-select-continue-text i {
  color: var(--primary);
  font-size: 18px;
}

.cat-select-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  padding: 12px 24px;
  border-radius: 6px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cat-select-continue-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .cat-select-continue-inner {
    justify-content: center;
    text-align: center;
  }

  .cat-select-continue-btn {
    width: 100%;
    justify-content: center;
  }
}

.cat-select-card-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.cat-select-card-label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.4;
}

.cat-select-card-arrow {
  display: none;
}

.cat-select-empty {
  display: none;
  text-align: center;
  padding: 32px 20px;
  color: var(--text-light);
  font-size: 13px;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* RESPONSIVE DESIGN - Follow Odoo pattern */
@media (min-width: 640px) {
  .cat-select-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .cat-select-section {
    padding: 48px 32px 110px;
  }
}

@media (min-width: 960px) {
  .cat-select-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .cat-group-name {
    font-size: 32px;
  }

  .cat-select-section {
    padding: 56px 48px 110px;
  }
}

@media (min-width: 1280px) {
  .cat-select-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-select-section {
    padding: 64px 56px 110px;
  }
}

/* ACCESSIBILITY */
.cat-select-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cat-select-card,
  .cat-select-card-icon {
    transition: none;
  }
}

/* ANIMATIONS - Subtle */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cat-select-header {
  animation: fadeIn 0.3s ease;
}