/*!
Theme Name: legarithm
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: legarithm
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

legarithm is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

.menu-item-hidden {
  display: none !important;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 101;
}

.step-by-step .splide__pagination__page {
  width: 75px !important;
  background-color: var(--primary-10) !important;
}

.step-by-step .splide__pagination__page.is-active {
  background-color: var(--primary-4) !important;
}

@media (max-width: 767.98px) {
  .header__btn {
    padding: 4px !important;
    font-size: 13px !important;
  }

  .header__actions {
    gap: 8px;
  }
}

/* Custom Select Styles */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select select {
  display: none;
}

.custom-select__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 40px;
}

.custom-select__value {
  line-height: 1.4;
  font-size: 1rem;
  color: var(--primary-7);
  flex: 1;
}

.custom-select__value.selected {
  color: #111827;
}

.custom-select__trigger i {
  font-size: 10px;
  color: var(--primary-16);
  transform: rotate(90deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.custom-select.open .custom-select__trigger i {
  transform: rotate(-90deg);
}

.custom-select__options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--gray-1);
  border: 1px solid var(--primary-1);
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.custom-select.open .custom-select__options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select__option {
  background-color: var(--gray-1);
  padding: 8px 16px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--primary-14);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.custom-select__option:first-child {
  color: #6b7280;
  cursor: default;
}

.custom-select__option:not(:first-child):hover {
  background-color: #f3f4f6;
}

.custom-select__option.selected {
  background-color: #eff6ff;
  color: var(--primary-4);
  font-weight: 500;
}

/* Scrollbar Styles */
.custom-select__options::-webkit-scrollbar {
  width: 6px;
}

.custom-select__options::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

.custom-select__options::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.custom-select__options::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Error State */
.contact-form__field.error .custom-select__trigger {
  border-color: #ef4444;
}

/* Focus State for Accessibility */
.custom-select__trigger:focus {
  outline: none;
}
