.container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(170deg, #f6fbf3 18.1%, #e0f0df 77.6%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ellipse-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 50%;
  pointer-events: none;
  z-index: 1;
}

.modal {
  position: relative;
  width: 516px;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 72px 53px 40px 53px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
}

.flower-decoration {
  position: absolute;
  top: -96px;
  height: 170px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  object-fit: contain;
}

.modal-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo-container {
  width: 216px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 100%;
  height: 100%;
}

.description-text {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #363a39;
  text-align: center;
  margin: 0;
  margin-top: 16px;
}

.modal-actions {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
  padding-top: 32px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.service-input {
  width: 100%;
  height: 40px;
  padding: 8px 16px;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #363a39;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.service-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.service-input:hover {
  border-color: #04a587;
}

.service-input:focus {
  outline: none;
  border-color: #04a587;
  box-shadow: 0 0 0 3px rgba(4, 165, 135, 0.1);
}

.search-button {
  height: 40px;
  padding: 8px 16px;
  background-color: #04a587;
  border: none;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.search-button:hover {
  background-color: #02876a;
  box-shadow: 0 4px 12px rgba(4, 165, 135, 0.3);
}

.search-button:active {
  background-color: #016e56;
  transform: scale(0.98);
}

.search-button:disabled {
  background-color: #d1d5db;
  cursor: not-allowed;
  box-shadow: none;
}

.search-icon {
  width: 24px;
  height: 24px;
  color: #f9fafb;
  flex-shrink: 0;
}

.error-message {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: #dc2626;
  margin-top: 4px;
  padding: 0 16px;
  display: none;
  animation: slideDown 0.2s ease;
}

.error-message.show {
  display: block;
}

.service-input.error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.service-input.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  border-color: #dc2626;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(249, 250, 251, 0.3);
  border-top: 2px solid #f9fafb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.spinner.show {
  display: block;
}

.search-icon.hide {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.version {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #036c52;
}

@media (max-width: 768px) {
  .modal {
    width: calc(100% - 48px);
    max-width: 564px;
    padding: 48px 20px 30px 20px;
    margin: 0 24px;
  }

  .flower-decoration {
    top: -126px;
  }

  .logo-container {
    width: 180px;
    height: 70px;
  }

  .description-text {
    font-size: 14px;
    line-height: 22px;
    max-width: 280px;
  }

  .modal-actions {
    flex-direction: column;
    padding-top: 24px;
  }

  .service-input {
    width: 100%;
    max-width: 100%;
    height: 40px;
  }

  .search-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal {
    width: 100%;
    border-radius: 12px;
    padding: 40px 16px 24px 16px;
  }

  .logo-container {
    width: 160px;
    height: 60px;
  }

  .description-text {
    font-size: 13px;
    line-height: 20px;
    max-width: 260px;
  }

  .modal-actions {
    gap: 10px;
    padding-top: 20px;
  }

  .service-input {
    width: 100%;
    height: 36px;
    font-size: 14px;
  }

  .search-button {
    height: 36px;
    font-size: 14px;
    padding: 6px 14px;
  }

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

