/**
 * Ziolo24 - New Hero Section with City Selection
 * Fully encapsulated styles scoped under .z24-hero
 */

.z24-hero {
  --z24-ivory: #f8fbeb;
  --z24-surface: #ffffff;
  --z24-white-warm: #fffefa;
  --z24-navy: #080a29;
  --z24-ink: #0b0b0b;
  --z24-grey-600: #565656;
  --z24-grey-500: #888888;
  --z24-grey-400: #b0b0b0;
  --z24-lime-500: #adc631;
  --z24-lime-600: #96ac23;
  --z24-lime-200: #e7efa7;
  --z24-lime-100: #f3f6d1;
  --z24-sage-300: #c2d185;
  --z24-sage-200: #e1e8bf;
  --z24-sage-100: #f7f9ec;
  --z24-hairline: #dfe1d3;
  --z24-shadow-card: 0 8px 32px rgba(8, 10, 41, 0.08);
  --z24-shadow-dropdown: 0 12px 40px rgba(8, 10, 41, 0.16);

  width: 100%;
  background: var(--z24-ivory);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--z24-ink);
  box-sizing: border-box;
  padding: 40px 0 60px;
  position: relative;
  overflow: visible;
}

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

/* Container */
.z24-hero__container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Two-column Hero Grid (Desktop) */
.z24-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

/* Left Column: Heading, Subtitle & TrustMate */
.z24-hero__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.z24-hero__heading-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.z24-hero__title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 46px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--z24-navy);
  letter-spacing: -0.02em;
}

.z24-hero__subtitle {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--z24-ink);
}

/* TrustMate Widget Container */
.z24-hero__trustmate {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
}

/* Reset global custom.css styles for TrustMate inside hero */
.z24-hero .trustmate {
  position: static;
  top: auto;
  right: auto;
  margin: 0;
  width: auto;
}

.z24-hero .trustmate .tm-dodo2,
.z24-hero .trustmate .tm-dialog-open {
  height: auto;
}

.z24-hero__trustmate-score {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: var(--z24-ink);
}

.z24-hero__trustmate-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.z24-hero__trustmate-img {
  display: block;
  height: 18px;
  width: auto;
  align-self: flex-start;
}

.z24-hero__trustmate-reviews {
  font-size: 11px;
  line-height: 14px;
  color: var(--z24-ink);
  white-space: nowrap;
}

.z24-hero__trustmate-strong {
  font-weight: 600;
  color: var(--z24-lime-600);
}

/* If live TrustMate script injects into #6fab25b7-f8f5-4790-b706-33a7b79dbbcf */
.z24-hero__trustmate-embed {
  display: inline-block;
  transform: scale(0.85);
  transform-origin: left center;
}

/* Right Column: White Selection Card */
.z24-hero__card {
  position: relative;
  background: var(--z24-surface);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--z24-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(8, 10, 41, 0.04);
}

/* Field Group & Label */
.z24-hero__field-group {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.z24-hero__field-label {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--z24-navy);
  margin: 0 0 8px;
  text-align: left;
}

/* City Selector Wrap */
.z24-hero__select-wrap {
  position: relative;
  width: 100%;
  z-index: 20;
}

.z24-hero__select-wrap.has-dropdown-open {
  z-index: 100;
}

/* Trigger Button (Product Form SelectTrigger style) */
.z24-hero__select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1.5px solid var(--z24-lime-500);
  background: #F8FBEB;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--z24-navy);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.z24-hero__select-pin {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: var(--z24-lime-500);
}

.z24-hero__select-trigger:hover {
  border-color: var(--z24-lime-500);
}

.z24-hero__select-trigger:focus-visible {
  outline: none;
  border-color: var(--z24-lime-500);
  box-shadow: 0 0 0 2px rgba(173, 198, 49, 0.25);
}

.z24-hero__select-trigger-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  color: var(--z24-navy);
}

.z24-hero__select-trigger-text.is-placeholder {
  color: #888888;
  font-weight: 400;
}

.z24-hero__select-trigger-arrow {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 6px;
  color: #ADC631;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.z24-hero__select-trigger[aria-expanded="true"] .z24-hero__select-trigger-arrow {
  transform: rotate(180deg);
}

/* Micro GPS button on select trigger */
.z24-hero__gps-trigger-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  margin-right: 4px;
  border-radius: 8px;
  color: #ADC631;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.z24-hero__gps-trigger-btn:hover {
  background: rgba(173, 198, 49, 0.18);
  color: #080A29;
}

.z24-hero__gps-trigger-btn.is-loading svg {
  animation: z24-hero-spin 1s linear infinite;
  color: #080A29;
}

/* Dropdown Panel (Product Form SelectContent style) */
.z24-hero__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1000;
  background: #FFFEFA !important;
  border-radius: 15px;
  border: 1px solid #DFE1D3;
  box-shadow: 0 12px 36px rgba(8, 10, 41, 0.12), 0 2px 8px rgba(8, 10, 41, 0.04);
  padding: 10px;
  display: none;
  box-sizing: border-box;
}

.z24-hero__dropdown.is-open {
  display: block;
}

/* Search Box (Product Form Search style) */
.z24-hero__search-wrap {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid #DFE1D3;
  border-radius: 12px;
  background: #FFFEFA;
  padding: 0 12px;
  margin-bottom: 6px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.z24-hero__search-wrap:focus-within {
  border-color: #ADC631;
  box-shadow: 0 0 0 2px rgba(173, 198, 49, 0.2);
}

.z24-hero__search-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
  margin-right: 6px;
}

.z24-hero__search-input {
  flex: 1;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  color: #080A29;
  box-sizing: border-box;
}

.z24-hero__search-input::placeholder {
  color: #888888;
  font-weight: 400;
}

/* GPS Geolocation Quick Button inside Dropdown */
.z24-hero__gps-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1.5px dashed #ADC631;
  background: #F8FBEB;
  color: #080A29;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.z24-hero__gps-btn:hover {
  background: #EEF6CC;
  border-color: #92AA1A;
  transform: translateY(-1px);
}

.z24-hero__gps-btn-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ADC631;
  color: #FFFFFF;
}

.z24-hero__gps-btn-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.z24-hero__gps-badge {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #080A29;
  color: #FFFFFF;
}

.z24-hero__gps-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.z24-hero__gps-btn.is-loading .z24-hero__gps-btn-icon svg {
  animation: z24-hero-spin 1s linear infinite;
}

.z24-hero__gps-btn.is-error {
  border-color: #E57373;
  background: #FFEBEE;
  color: #C62828;
}

.z24-hero__gps-btn.is-success {
  border-color: #ADC631;
  background: #E8F5E9;
  color: #2E7D32;
}

/* Mobile GPS Button (shown on mobile, hidden on desktop) */
.z24-hero__mobile-gps-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 14px 0 2px 0;
  color: #0A5440;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  user-select: none;
  transition: opacity 0.2s ease;
}

.z24-hero__mobile-gps-btn:hover {
  opacity: 0.85;
}

.z24-hero__mobile-gps-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0A5440;
}

.z24-hero__mobile-gps-text {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  color: #0A5440;
}

.z24-hero__mobile-gps-btn.is-loading .z24-hero__mobile-gps-icon svg {
  animation: z24-hero-spin 1s linear infinite;
}

.z24-hero__mobile-gps-btn.is-error .z24-hero__mobile-gps-text {
  color: #C62828;
  text-decoration: none;
}

.z24-hero__mobile-gps-btn.is-success .z24-hero__mobile-gps-text {
  color: #2E7D32;
}

@keyframes z24-hero-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Scroll Arrows / Indicators */
.z24-hero__scroll-indicator {
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #080A29;
  opacity: 0.6;
  transition: opacity 0.15s, background-color 0.15s;
  padding: 0;
}

.z24-hero__scroll-indicator:hover {
  opacity: 1;
  background: rgba(173, 198, 49, 0.12);
  border-radius: 6px;
}

/* Options Viewport & List */
.z24-hero__options-viewport {
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-right: 2px;
}

.z24-hero__options-viewport::-webkit-scrollbar {
  width: 5px;
}

.z24-hero__options-viewport::-webkit-scrollbar-track {
  background: transparent;
}

.z24-hero__options-viewport::-webkit-scrollbar-thumb {
  background: #DFE1D3;
  border-radius: 4px;
}

.z24-hero__options-viewport::-webkit-scrollbar-thumb:hover {
  background: #ADC631;
}

.z24-hero__options-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* City Item (Product Form SelectItem style) */
.z24-hero__city-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px 8px 36px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #080A29;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.z24-hero__city-option:hover {
  background: #f4f6e6;
  color: var(--z24-navy);
}

.z24-hero__city-option.is-selected {
  color: #ADC631 !important;
}

.z24-hero__city-check {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ADC631;
}

.z24-hero__city-option.is-selected .z24-hero__city-check {
  display: flex;
}

.z24-hero__city-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.z24-hero__search-empty {
  padding: 18px 12px;
  text-align: center;
  font-size: 14px;
  color: #888888;
}

/* Details Section (Single & Multi Cabinet) */
.z24-hero__details {
  display: flex;
  flex-direction: column;
}

.z24-hero__details:empty {
  display: none !important;
}

.z24-hero__fade-in {
  animation: z24-hero-slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes z24-hero-slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Single Cabinet View */
.z24-hero__single-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: flex-start;
}

.z24-hero__info-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.z24-hero__info-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--z24-sage-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #414b0f;
  margin-top: 2px;
}

.z24-hero__info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.z24-hero__info-label {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--z24-grey-600);
}

.z24-hero__info-value {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--z24-ink);
}

.z24-hero__info-value--bold {
  font-size: 17px;
  font-weight: 600;
  color: var(--z24-navy);
}

/* Multi Cabinet View */
.z24-hero__multi-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.z24-hero__multi-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--z24-grey-600);
  margin: 0;
}

.z24-hero__cabinets-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.z24-hero__cabinets-list--single {
  grid-template-columns: 1fr;
}

.z24-hero__cabinet-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--z24-hairline);
  background: var(--z24-surface);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.z24-hero__cabinet-card:hover {
  border-color: var(--z24-sage-300);
  background: #fbfdf3;
}

.z24-hero__cabinet-card.is-active {
  border-color: var(--z24-lime-500);
  background: var(--z24-lime-100);
}

.z24-hero__radio-indicator {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  border: 2px solid var(--z24-lime-500);
  background: var(--z24-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.z24-hero__radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

.z24-hero__cabinet-card.is-active .z24-hero__radio-dot {
  background: var(--z24-lime-500);
}

.z24-hero__cabinet-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.z24-hero__cabinet-address {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--z24-navy);
}

.z24-hero__cabinet-slot {
  font-size: 13px;
  line-height: 18px;
  font-weight: 300;
  color: var(--z24-ink);
}

.z24-hero__cabinet-slot b {
  font-weight: 600;
  color: var(--z24-navy);
}

/* CTA Button */
.z24-hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 999px;
  background: var(--z24-lime-500);
  color: var(--z24-surface);
  text-decoration: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 0;
  width: 100%;
  margin-top: 4px;
}

.z24-hero__cta:hover {
  background: var(--z24-lime-600);
  color: var(--z24-surface);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(173, 198, 49, 0.4);
}

.z24-hero__cta:active {
  transform: translateY(0);
}

/* Benefits Section (4 tiles) */
.z24-hero__benefits {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.z24-hero__benefit-card {
  background: var(--z24-surface);
  border-radius: 20px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 18px rgba(8, 10, 41, 0.04);
  border: 1px solid rgba(8, 10, 41, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.z24-hero__benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 10, 41, 0.07);
}

.z24-hero__benefit-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--z24-sage-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #414b0f;
}

.z24-hero__benefit-title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--z24-navy);
}


/* Responsive Media Queries */
@media (max-width: 991px) {
  .z24-hero {
    padding: 24px 0 40px;
  }

  .z24-hero__container {
    padding: 0 16px;
  }

  .z24-hero__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .z24-hero__left {
    display: contents;
  }

  .z24-hero__heading-group {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .z24-hero__title {
    font-size: 28px;
    line-height: 36px;
  }

  .z24-hero__subtitle {
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
  }

  .z24-hero__card {
    order: 2;
  }

  .z24-hero__trustmate {
    order: 3;
    display: inline-flex;
    align-self: flex-start;
    justify-content: center;
  }

  /* Card on Mobile */
  .z24-hero__card {
    padding: 16px;
    border-radius: 24px;
    gap: 14px;
  }

  /* Mobile selector retains the same searchable dropdown */
  .z24-hero__select-trigger {
    height: 48px;
    padding: 0 14px;
    border-radius: 14px;
  }

  .z24-hero__gps-trigger-btn {
    display: none;
  }

  .z24-hero__mobile-gps-btn {
    display: inline-flex;
  }

  .z24-hero__dropdown {
    border-radius: 14px;
  }

  /* Single view stacked on mobile */
  .z24-hero__single-view {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .z24-hero__info-block {
    gap: 12px;
  }

  .z24-hero__info-icon {
    width: 36px;
    height: 36px;
    margin-top: 0;
  }

  .z24-hero__info-icon svg {
    width: 18px;
    height: 18px;
  }

  .z24-hero__info-label {
    display: none; /* In mobile prototype, label is inline or icon only */
  }

  .z24-hero__info-value {
    font-size: 15px;
    line-height: 22px;
    font-weight: 300;
  }

  .z24-hero__info-value--bold {
    font-size: 15px;
    line-height: 22px;
    font-weight: 300;
  }

  .z24-hero__info-value--bold b {
    font-weight: 600;
  }

  /* Multi cabinets stacked on mobile */
  .z24-hero__cabinets-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .z24-hero__cabinet-card {
    padding: 12px 14px;
  }

  .z24-hero__cabinet-address {
    font-size: 15px;
    line-height: 22px;
  }

  .z24-hero__cabinet-slot {
    font-size: 13px;
    line-height: 18px;
  }

  .z24-hero__cta {
    height: 52px;
    font-size: 16px;
  }

  /* Benefits: 2x2 grid on mobile */
  .z24-hero__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
  }

  .z24-hero__benefit-card {
    padding: 12px;
    border-radius: 16px;
    gap: 10px;
  }

  .z24-hero__benefit-icon {
    width: 40px;
    height: 40px;
  }

  .z24-hero__benefit-icon svg {
    width: 20px;
    height: 20px;
  }

  .z24-hero__benefit-title {
    font-size: 13px;
    line-height: 18px;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 375px) {
  .z24-hero__title {
    font-size: 26px;
    line-height: 32px;
  }

  .z24-hero__benefit-title {
    font-size: 12px;
    line-height: 16px;
  }
}
