.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1;
}

.search-modal::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background-image: url("../../img/logo/shield.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-modal__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  background-color: var(--color-white);
  padding: 60px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-grey-050);

  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-modal.is-open .search-modal__content {
  transform: translateY(0);
}

.search-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: var(--color-blue-200);
  border: none;
  cursor: pointer;
  color: var(--color-white);
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  z-index: 10;
}

.search-modal__close:hover {
  background-color: var(--color-black);
}

.search-modal__close svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s ease;
  display: block;
}

.search-modal__close:hover svg {
  transform: rotate(90deg);
}

.search-modal__label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-grey-300);
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: left;
}

.search-modal__form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
}

.search-modal__input {
  width: 100%;
  height: 80px;
  font-family: inherit;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-black);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-grey-200);
  border-radius: 0;
  padding: 0 60px 0 0;
  margin: 0;
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.search-modal__input::-webkit-search-decoration,
.search-modal__input::-webkit-search-cancel-button,
.search-modal__input::-webkit-search-results-button,
.search-modal__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.search-modal__input:focus {
  outline: none;
  border-color: var(--color-blue-100);
}

.search-modal__input::placeholder {
  color: var(--color-grey-200);
  opacity: 1;
  font-weight: 100;
}

.search-modal__submit {
  position: absolute;
  top: 0;
  right: 0 !important;
  bottom: 0;
  width: 50px;
  height: 100%;
  margin: 0 !important;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-200);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  z-index: 10;
}

.search-modal__submit svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5px;
  display: block;
}

.search-modal__submit:hover {
  color: var(--color-black);
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .search-modal__content {
    padding: 40px 20px;
    max-width: 90%;
  }

  .search-modal__input {
    font-size: 1.75rem;
    height: 60px;
  }

  .search-modal__close {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 600px) {
  .search-modal {
    align-items: flex-start;
    padding-top: 0;
  }

  .search-modal__content {
    padding: 80px 20px 40px;
    max-width: 100%;
    height: auto;
    min-height: 50vh;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--color-grey-050);
    transform: translateY(-100%);
  }

  .search-modal.is-open .search-modal__content {
    transform: translateY(0);
  }

  .search-modal__input {
    font-size: 1.5rem;
  }
}
