.add-service-page {
  padding: 64px 0px 0px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.add-service-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  z-index: 25;
  padding: 8px 16px;
  transition: opacity 180ms ease;
  box-sizing: border-box;
  height: 48px;
}

.add-service-back {
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.add-service-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.add-service-cancel {
  background: none;
  border: none;
  color: #1b1b1b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.add-service-form {
  display: flex;
  flex-direction: column;
  gap: 16px;  
  padding: 20px 16px calc(32px + 64px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 24px 24px 0px 0px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  flex: 1;
  min-height: 0;
}

.add-service-label {
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 6px;
  color: #1b1b1b;
}

.add-service-field {
  display: flex;
  align-items: center;
  border-radius: 20px;
  min-height: 40px;
  font-size: 16px;
  transition: border 0.2s;
  gap: 10px;
  position: relative;
}

.add-service-icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
  flex-shrink: 0;
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px;
  border-radius: 50%;
  box-sizing: content-box;
  pointer-events: none;
}

.add-service-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.add-service-input::placeholder {
  color: #8b95a5;
}

.add-service-page .add-service-field input,
.add-service-page .add-service-field select,
.add-service-page .add-service-field textarea,
.add-service-page .add-service-input {
  padding-left: 40px;
  height: 46px;
  font-weight: 600;
}

.add-service-page .add-service-field--name .add-service-input {
  padding-left: 54px;
}

.add-service-name-indicator {
  position: absolute;
  left: 40px;
  top: 50%;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.add-service-colors {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.add-service-color {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: none;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.add-service-color.is-active {
  box-shadow: inset 0 0 0 2px rgba(17, 24, 39, 0.25);
}

.add-service-color--picker {
  background: #fff;
  border: 1px solid #d1d5db;
}

.add-service-color--picker img {
  width: 20px;
  height: 20px;
}

.add-service-color-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.add-service-duration {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.add-service-duration__btn,
.add-service-duration__value {
  height: 46px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  display: grid;
  place-items: center;
}

.add-service-duration__btn {
  cursor: pointer;
}

.add-service-duration__value {
  text-align: center;
  width: 100%;
}

.add-service-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.add-service-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.add-service-toggle__box {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: url("../images/icons/tick-square.svg") center/24px no-repeat;
}

.add-service-toggle input:checked + .add-service-toggle__box {
  background-image: url("../images/icons/tick-square_act.svg");
}

.add-service-header--hidden {
  opacity: 0;
  pointer-events: none;
}

.add-service-btn {
  width: auto;
  background: #181818;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: background 0.2s;
  cursor: pointer;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
}

.add-service-btn:active {
  background: #222;
}

.add-service-btn img {
  width: 18px;
  height: 18px;
}
