/* Create / update profile */

.profile-setup-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.profile-setup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: #f2ccb3;
}

.profile-setup-header__brand {
  display: inline-flex;
  text-decoration: none;
}

.profile-setup-header__logo {
  display: block;
  width: 122px;
  height: 32px;
  object-fit: contain;
}

.profile-setup-header__logout {
  min-width: 96px;
  height: 40px;
  padding: 0 1.25rem;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.profile-setup-header__logout:hover {
  background: #e01a6d;
}

.profile-setup-page__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 0;
}

.profile-setup-page__title-panel {
  height: 77px;
  background: #fff;
  border-bottom: 1px solid #195c93;
}

.profile-setup-page__form-panel {
  flex: 1 1 auto;
  padding: 16px 0 2.5rem;
  background: url('../images/profile_bg.png') no-repeat center top / cover;
}

.profile-setup-page__container {
  width: 100%;
}

.profile-setup-page__grid {
  width: 100%;
}

.profile-setup-page__gutter {
  min-height: 1px;
}

.profile-setup-card {
  padding: 2rem;
  border-radius: 16px;
  background: #fff;
}

.profile-setup-progress {
  height: 6px;
  margin: 0 0 10px;
  border-radius: 999px;
  background: #dce8f0;
  overflow: hidden;
}

.profile-setup-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.profile-setup-form__intro {
  margin-bottom: 0;
}

.profile-setup-form__body {
  display: flex;
  flex-direction: column;
}

.profile-setup-form__error {
  margin: 0 0 1rem;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #b94a48;
}

.profile-setup-form__field-error {
  display: block;
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: #ff4e37;
  text-align: right;
}

.profile-setup-form__field.has-error .profile-setup-form__control,
.profile-setup-form__field.has-error .profile-setup-dropdown__field,
.profile-setup-form__field.has-error .profile-setup-multiselect__field,
.profile-setup-form__field.has-error .profile-story-form__textarea,
.profile-setup-form__field.has-error .profile-setup-form__control-wrap,
.profile-setup-form__field.has-error .profile-setup-time__trigger,
.profile-setup-form__field.has-error .profile-setup-date__trigger {
  border-color: #ff4e37;
}

.profile-tag-selector.has-error .profile-tag-selector__tags {
  outline: 1px solid #b94a48;
  outline-offset: 2px;
  border-radius: 10px;
}

.profile-photo-upload.has-error .profile-photo-upload__dropzone {
  border-color: #b94a48;
}

.profile-setup-form__title {
  margin: 8px 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

.profile-setup-form__subtitle {
  margin: 0;
  max-width: 100%;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-accent);
}

.profile-setup-form__field {
  display: flex;
  flex-direction: column;
}

.profile-setup-form__label {
  font-size: 12px;
  font-weight: 400;
  color: #1b1b1b;
}

.profile-setup-form__control-wrap {
  position: relative;
}

.profile-setup-form__control {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  outline: none;
}

.profile-setup-form__control::placeholder {
  color: #8d797f;
  opacity: 1;
}

.profile-setup-form__control:focus {
  border-color: var(--color-border);
  box-shadow: 0 0 0 2px rgba(25, 92, 147, 0.12);
}

.profile-setup-form__control--select {
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.profile-setup-form__control--select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-setup-form__control-wrap--time .profile-setup-form__control--time {
  padding-right: 2.75rem;
  color-scheme: light;
}

.profile-setup-form__control--time:invalid {
  color: #8d797f;
}

.profile-setup-form__control--time:focus,
.profile-setup-form__control--time:valid {
  color: var(--color-text);
}

.profile-setup-form__control--time::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 100%;
  cursor: pointer;
}

.profile-setup-form__field-icon,
.profile-setup-form__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 2;
  transform: translateY(-50%);
  line-height: 1;
  pointer-events: none;
}

.profile-setup-form__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.profile-setup-form__chevron img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.profile-setup-form__field-icon {
  font-size: 16px;
}

/* Custom date picker */
.profile-setup-date {
  position: relative;
  width: 100%;
}

.profile-setup-date__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.profile-setup-date__trigger:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(25, 92, 147, 0.12);
}

.profile-setup-date.is-open .profile-setup-date__trigger {
  border-color: var(--color-border);
  box-shadow: 0 0 0 2px rgba(25, 92, 147, 0.12);
}

.profile-setup-date__value,
.profile-setup-date__placeholder {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-setup-date__placeholder {
  color: #8d797f;
}

.profile-setup-date__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.profile-setup-date__icon-svg {
  display: block;
  width: 18px;
  height: 18px;
}

.profile-setup-date__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  width: min(100%, 320px);
  padding: 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: #f7fdff;
  box-shadow: 0 8px 24px rgba(25, 92, 147, 0.12);
}

.profile-setup-date__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-setup-date__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.profile-setup-date__nav:hover {
  background: rgba(52, 120, 155, 0.08);
}

.profile-setup-date__selectors {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.profile-setup-date__select {
  height: 36px;
  padding: 0 28px 0 12px;
  border: 0.5px solid rgba(25, 92, 147, 0.35);
  border-radius: 8px;
  background: #fff url('../images/arrow-down.png') no-repeat right 8px center / 16px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.profile-setup-date__select--month {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 150px;
}

.profile-setup-date__select--year {
  flex: 0 0 88px;
  width: 88px;
}

.profile-setup-date__select:focus-visible {
  box-shadow: 0 0 0 2px rgba(25, 92, 147, 0.12);
}

.profile-setup-date__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 8px;
}

.profile-setup-date__weekday {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--color-muted);
}

.profile-setup-date__weekday.is-sunday {
  color: var(--color-primary);
}

.profile-setup-date__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.profile-setup-date__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}

.profile-setup-date__day:hover {
  background: rgba(52, 120, 155, 0.08);
}

.profile-setup-date__day.is-outside {
  color: rgba(27, 27, 27, 0.35);
}

.profile-setup-date__day.is-outside.is-sunday {
  color: rgba(255, 32, 122, 0.35);
}

.profile-setup-date__day.is-sunday {
  color: var(--color-primary);
}

.profile-setup-date__day.is-selected {
  border-color: var(--color-accent);
  background: rgba(52, 120, 155, 0.1);
  font-weight: 600;
}

.profile-setup-date__day.is-today:not(.is-selected) {
  border-color: rgba(25, 92, 147, 0.25);
}

.profile-setup-date__day.is-disabled,
.profile-setup-date__day:disabled {
  color: rgba(27, 27, 27, 0.28);
  cursor: not-allowed;
  pointer-events: none;
}

.profile-setup-date__day.is-disabled:hover,
.profile-setup-date__day:disabled:hover {
  background: transparent;
}

.profile-setup-date__nav:disabled {
  color: rgba(27, 27, 27, 0.28);
  cursor: not-allowed;
}

.profile-setup-date__clear {
  margin-top: 16px;
  padding: 8px 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  cursor: pointer;
}

.profile-setup-date__clear:hover {
  background: rgba(52, 120, 155, 0.06);
}

/* Custom time picker */
.profile-setup-time {
  position: relative;
  width: 100%;
}

.profile-setup-time__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.profile-setup-time__trigger:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(25, 92, 147, 0.12);
}

.profile-setup-time.is-open .profile-setup-time__trigger {
  border-color: var(--color-border);
  box-shadow: 0 0 0 2px rgba(25, 92, 147, 0.12);
}

.profile-setup-time__value,
.profile-setup-time__placeholder {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-setup-time__placeholder {
  color: #8d797f;
}

.profile-setup-time__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.profile-setup-time__icon-svg {
  display: block;
  width: 18px;
  height: 18px;
}

.profile-setup-time__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  width: min(100%, 320px);
  padding: 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: #f7fdff;
  box-shadow: 0 8px 24px rgba(25, 92, 147, 0.12);
}

.profile-setup-time__preview {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-accent);
  text-align: center;
}

.profile-setup-time__columns {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  gap: 10px;
}

.profile-setup-time__column-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-muted);
  text-align: center;
}

.profile-setup-time__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.profile-setup-time__options--minutes {
  grid-template-columns: minmax(0, 1fr);
}

.profile-setup-time__options--period {
  grid-template-columns: minmax(0, 1fr);
  max-height: none;
  overflow: visible;
}

.profile-setup-time__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}

.profile-setup-time__option:hover {
  background: rgba(52, 120, 155, 0.08);
}

.profile-setup-time__option.is-selected {
  border-color: var(--color-accent);
  background: rgba(52, 120, 155, 0.1);
  font-weight: 600;
  color: var(--color-accent);
}

.profile-setup-time__clear {
  margin-top: 16px;
  padding: 8px 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  cursor: pointer;
}

.profile-setup-time__clear:hover {
  background: rgba(52, 120, 155, 0.06);
}

/* Custom height picker */
.profile-setup-height {
  position: relative;
  width: 100%;
}

.profile-setup-height__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.profile-setup-height__trigger:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(25, 92, 147, 0.12);
}

.profile-setup-height.is-open .profile-setup-height__trigger {
  border-color: var(--color-border);
  box-shadow: 0 0 0 2px rgba(25, 92, 147, 0.12);
}

.profile-setup-height__value,
.profile-setup-height__placeholder {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-setup-height__placeholder {
  color: #8d797f;
}

.profile-setup-height__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.profile-setup-height__icon-svg {
  display: block;
  width: 18px;
  height: 18px;
}

.profile-setup-height__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  width: min(100%, 280px);
  padding: 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: #f7fdff;
  box-shadow: 0 8px 24px rgba(25, 92, 147, 0.12);
}

.profile-setup-height__preview {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-accent);
  text-align: center;
}

.profile-setup-height__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-setup-height__column-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-muted);
  text-align: center;
}

.profile-setup-height__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.profile-setup-height__options--inches {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-setup-height__option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
}

.profile-setup-height__option:hover {
  background: rgba(52, 120, 155, 0.08);
}

.profile-setup-height__option.is-selected {
  border-color: var(--color-accent);
  background: rgba(52, 120, 155, 0.1);
  font-weight: 600;
  color: var(--color-accent);
}

.profile-setup-height__clear {
  margin-top: 16px;
  padding: 8px 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  cursor: pointer;
}

.profile-setup-height__clear:hover {
  background: rgba(52, 120, 155, 0.06);
}

.profile-setup-form__field-icon {
  font-size: 16px;
}

.profile-setup-form__control-wrap--icon .profile-setup-form__control {
  padding-right: 2.75rem;
}

.profile-setup-form__hint {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #8d797f;
}

.profile-setup-form__hint--error {
  color: #c0392b;
}

.profile-setup-form__field-stack {
  width: 100%;
}

.profile-setup-dropdown__status {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.4;
  color: #8d797f;
}

.profile-setup-dropdown {
  position: relative;
  width: 100%;
  height: 46px;
}

.profile-setup-dropdown__field {
  position: relative;
  height: 46px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  overflow: hidden;
}

.profile-setup-dropdown__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 0 44px 0 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.profile-setup-dropdown__trigger:focus,
.profile-setup-multiselect__field:focus {
  outline: none;
}

.profile-setup-dropdown__trigger:focus-visible,
.profile-setup-multiselect__field:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(25, 92, 147, 0.12);
}

.profile-setup-dropdown__trigger:disabled,
.profile-setup-dropdown.is-disabled .profile-setup-dropdown__trigger,
.profile-setup-multiselect__field:disabled,
.profile-setup-multiselect.is-disabled .profile-setup-multiselect__field {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-setup-dropdown__value,
.profile-setup-dropdown__placeholder {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-setup-dropdown__placeholder {
  color: #8d797f;
}

.profile-setup-dropdown__chevron {
  position: absolute;
  top: 50%;
  right: 11px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  pointer-events: none;
}

.profile-setup-dropdown__chevron img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.profile-setup-dropdown__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 280px;
  overflow-y: auto;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgba(25, 92, 147, 0.12);
}

.profile-setup-dropdown__panel.profile-setup-panel--up,
.profile-setup-date__panel.profile-setup-panel--up,
.profile-setup-time__panel.profile-setup-panel--up,
.profile-setup-height__panel.profile-setup-panel--up {
  top: auto;
  bottom: calc(100% + 4px);
}

.profile-setup-dropdown__search {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px;
  border-bottom: 0.5px solid rgba(25, 92, 147, 0.25);
  background: var(--color-surface);
}

.profile-setup-dropdown__search-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 0.5px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  outline: none;
}

.profile-setup-dropdown__search-input::placeholder {
  color: #8d797f;
  opacity: 1;
}

.profile-setup-dropdown__search-input:focus {
  border-color: var(--color-border);
  box-shadow: 0 0 0 2px rgba(25, 92, 147, 0.12);
}

.profile-setup-dropdown__row {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-bottom: 0.5px solid rgba(25, 92, 147, 0.25);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.profile-setup-dropdown__row:last-child {
  border-bottom: none;
}

.profile-setup-dropdown__input {
  width: 100%;
  height: 100%;
  padding: 0 44px 0 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  outline: none;
}

.profile-setup-dropdown__input::placeholder {
  color: #8d797f;
  opacity: 1;
}

.profile-setup-dropdown__input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.profile-setup-dropdown__option:hover,
.profile-setup-dropdown__option.is-selected {
  background: rgba(25, 92, 147, 0.06);
}

.profile-setup-dropdown__option {
  white-space: normal;
  word-break: break-word;
}

.profile-setup-multiselect {
  position: relative;
  width: 100%;
  min-height: 46px;
}

.profile-setup-multiselect__field {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-height: 46px;
  height: 46px;
  padding: 0 44px 0 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  text-align: left;
}

.profile-setup-multiselect__placeholder {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #8d797f;
}

.profile-setup-multiselect__values {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 0;
}

.profile-setup-multiselect:has(.profile-setup-multiselect__chip) .profile-setup-multiselect__field {
  height: auto;
  min-height: 46px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.profile-setup-multiselect__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(25, 92, 147, 0.1);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
}

.profile-setup-multiselect__chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
}

.profile-setup-multiselect__chip-remove:hover {
  color: var(--color-primary);
}

.profile-setup-multiselect__input {
  flex: 1 1 120px;
  min-width: 120px;
  height: 32px;
  padding: 0 6px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  outline: none;
}

.profile-setup-multiselect__input::placeholder {
  color: #8d797f;
  opacity: 1;
}

.profile-setup-form__actions {
  margin-top: 30px;
}

@media (min-width: 600px) {
  .profile-setup-form__actions {
    justify-content: flex-end;
  }

  .profile-setup-form__actions--split {
    justify-content: space-between;
  }

  .profile-setup-form__actions--with-skip {
    align-items: center;
  }
}

.profile-setup-form__action-col {
  display: flex;
  align-items: stretch;
}

@media (min-width: 600px) {
  .profile-setup-form__action-col {
    width: auto;
  }
}

.profile-setup-form__skip {
  width: 130px;
  height: 46px;
  padding: 0;
  border: 1px solid #ff207a;
  border-radius: 10px;
  background: #fff;
  color: var(--color-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-setup-form__skip:hover {
  background: rgba(255, 27, 107, 0.08);
}

.profile-setup-form__skip:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-setup-form__back {
  min-width: 120px;
  height: 46px;
  padding: 0 1.75rem;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.profile-setup-form__back:hover {
  background: rgba(25, 92, 147, 0.06);
}

.profile-setup-form__submit {
  min-width: 130px;
  height: 46px;
  padding: 0 1.75rem;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.profile-setup-form__submit:hover {
  background: #e01a6d;
}

/* Step 3 — photo uploads */
.profile-photos-form__grid {
  margin-bottom: 0;
}

.profile-photo-upload__label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 400;
  color: #1b1b1b;
}

.profile-photo-upload__dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  padding: 1.5rem 1rem;
  border: 1px dashed rgba(25, 92, 147, 0.35);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-photo-upload__dropzone.is-dragging {
  border-color: var(--color-accent);
  background: rgba(52, 120, 155, 0.06);
}

.profile-photo-upload__dropzone.has-preview {
  justify-content: flex-start;
  padding: 16px;
}

.profile-photo-upload__dropzone--profile.has-preview {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.profile-photo-upload__dropzone--gallery.has-preview {
  position: relative;
  overflow: hidden;
  align-items: stretch;
  padding: 12px 12px 58px;
}

.profile-photo-upload__preview-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.profile-photo-upload__remove {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--color-text);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.profile-photo-upload__remove span {
  display: block;
  margin-top: -1px;
}

.profile-photo-upload__thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
}

.profile-photo-upload__thumb {
  position: relative;
  aspect-ratio: 3 / 3;
  border-radius: 10px;
  overflow: hidden;
}

.profile-photo-upload__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-upload__thumb .profile-photo-upload__remove {
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  font-size: 16px;
}

.profile-photo-upload__browse--overlay,
.profile-photo-upload__browse--grid {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 2;
  width: 130px;
  min-width: 130px;
  height: 38px;
  margin: 0;
  padding: 0 1.25rem;
  transform: translateX(-50%);
}

.profile-photo-upload__icon {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
  object-fit: contain;
}

.profile-photo-upload__helper {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-muted);
}

.profile-photo-upload__drag-hint {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #8d797f;
}

.profile-photo-upload__browse {
  width: 130px;
  min-width: 130px;
  height: 38px;
  padding: 0 1.25rem;
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  background: #fff;
  color: var(--color-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-photo-upload__browse:hover {
  background: rgba(255, 32, 122, 0.06);
}

.profile-photo-upload__input {
  display: none;
}

/* Step 4 — story */
.profile-story-form__textarea {
  width: 100%;
  height: 230px;
  min-height: 230px;
  padding: 14px 16px;
  border: 0.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text);
  resize: vertical;
  outline: none;
}

.profile-story-form__textarea::placeholder {
  color: #8d797f;
  opacity: 1;
}

.profile-story-form__textarea:focus {
  border-color: var(--color-border);
  box-shadow: 0 0 0 2px rgba(25, 92, 147, 0.12);
}

.profile-story-form__counter {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #8d797f;
  text-align: right;
}

/* Step 5 — passions & personality tags */
.profile-passions-form .profile-tag-selector + .profile-tag-selector {
  margin-top: 1.75rem;
}

.profile-tag-selector__label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 400;
  color: #1b1b1b;
}

.profile-tag-selector__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-setup-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 0.85rem;
  border: none;
  border-radius: 999px;
  background: #f0f7f9;
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-setup-tag__icon {
  font-size: 16px;
  line-height: 1;
}

.profile-setup-tag.is-selected {
  background: #FFE6B8;
  color: var(--color-text);
}

/* Step 6 — match preferences */
.profile-age-range {
  width: 100%;
}

.profile-age-range__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.profile-age-range__label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #1b1b1b;
}

.profile-age-range__value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #1b1b1b;
}

.profile-age-range__slider {
  --handle-size: 32px;
  position: relative;
  height: 28px;
  padding: 0 calc(var(--handle-size) / 2);
}

.profile-age-range__rail {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  border: 0.5px solid #195c93;
  border-radius: 999px;
  background: #f7fdff;
  transform: translateY(-50%);
  overflow: hidden;
}

.profile-age-range__fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
}

.profile-age-range__handle {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--handle-size);
  height: var(--handle-size);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.profile-age-range__handle-img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.profile-age-range__handle--min {
  left: calc(
    (var(--handle-size) / 2) +
      (100% - var(--handle-size)) * var(--min-percent) / 100
  );
}

.profile-age-range__handle--max {
  left: calc(
    (var(--handle-size) / 2) +
      (100% - var(--handle-size)) * var(--max-percent) / 100
  );
}

.profile-age-range__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: none;
  pointer-events: none;
  appearance: none;
  z-index: 2;
}

.profile-age-range__input::-webkit-slider-runnable-track {
  height: 28px;
  background: transparent;
}

.profile-age-range__input::-moz-range-track {
  height: 28px;
  background: transparent;
}

.profile-age-range__input::-webkit-slider-thumb {
  width: var(--handle-size);
  height: var(--handle-size);
  margin-top: -10px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
}

.profile-age-range__input::-moz-range-thumb {
  width: var(--handle-size);
  height: var(--handle-size);
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.profile-privacy-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: 19px;
  cursor: pointer;
}

.profile-privacy-toggle__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-privacy-toggle__title {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
}

.profile-privacy-toggle__hint {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-muted);
}

.profile-privacy-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.profile-privacy-toggle__switch {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 45px;
  height: 24px;
  padding: 2px;
  border: 0.5px solid #195c93;
  border-radius: 999px;
  background: transparent;
}

.profile-privacy-toggle__switch::before {
  content: '';
  position: absolute;
  inset: 1.2px;
  z-index: 0;
  border-radius: 999px;
  background: #f7fdff;
  transition: background 0.2s ease;
}

.profile-privacy-toggle__switch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 2px;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #195c93;
  box-shadow: none;
  transform: translateY(-50%);
  transition: left 0.2s ease, transform 0.2s ease;
}

.profile-privacy-toggle__input:checked + .profile-privacy-toggle__switch::before {
  background: #daeafe;
}

.profile-privacy-toggle__input:checked + .profile-privacy-toggle__switch::after {
  left: calc(100% - 20.5px);
  transform: translateY(-50%);
}

.profile-privacy-toggle__input:focus-visible + .profile-privacy-toggle__switch {
  box-shadow: 0 0 0 2px rgba(25, 92, 147, 0.2);
}

/* Step 8 — verification */
.profile-verification-form .profile-setup-form__body {
  padding-top: 0;
}

.profile-verification__layout {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.profile-verification__content {
  width: 100%;
}

.profile-verification__later-wrap {
  width: 100%;
  margin: 30px 0 0;
  text-align: right;
}

.profile-verification__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.profile-verification__step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
}

.profile-verification__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-verification__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.profile-verification__icon-img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.profile-verification__connector {
  flex: 1 1 auto;
  width: 1px;
  min-height: 32px;
  background: var(--color-accent);
}

.profile-verification__step-content {
  padding-bottom: 24px;
}

.profile-verification__step:last-child .profile-verification__step-content {
  padding-bottom: 0;
}

.profile-verification__step-label {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #34789b;
}

.profile-verification__step.is-pending .profile-verification__step-label {
  font-weight: 500;
}

.profile-verification__step.is-pending .profile-verification__icon {
  background: rgba(52, 120, 155, 0.55);
}

.profile-verification__verified {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 8px;
}

.profile-verification__verified-value {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}

.profile-verification__verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-verification__verified-badge-img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.profile-verification__phone,
.profile-verification__email {
  margin-bottom: 0;
}

.profile-verification__form .login-form__field {
  margin-bottom: 24px;
}

.profile-verification__form .login-form__field .login-form__phone {
  margin-bottom: 0;
}

.profile-verification__field-error {
  text-align: right;
}

.profile-verification__code-error {
  text-align: right;
  margin: 2px 0 12px;
}

.profile-verification__form .profile-setup-form__label {
  margin-top: 20px;
}

.profile-verification__code-text {
  margin: 20px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-muted);
}

.profile-verification__code-contact {
  color: var(--color-primary);
  font-weight: 500;
}

.profile-verification__code-edit {
  margin-left: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-accent);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.profile-verification__code {
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 52px;
  margin: 0 0 8px;
  border: 0.5px solid #195c93;
  border-radius: 10px;
  background: #f7fdff;
  overflow: hidden;
}

.profile-verification__code-digit {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  border-right: 0.5px solid #195c93;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
  outline: none;
}

.profile-verification__code-digit:last-child {
  border-right: none;
}

.profile-verification__code-digit:focus {
  background: rgba(25, 92, 147, 0.06);
}

.profile-verification__resend {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-muted);
}

.profile-verification__resend-time {
  color: var(--color-primary);
  font-weight: 500;
}

.profile-verification__resend-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--color-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.profile-verification__submit {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.profile-verification__submit:hover {
  background: #e01a6d;
}

.profile-verification__later {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.profile-verification__later:hover {
  color: #e01a6d;
}

.profile-verification__finish {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 46px;
  margin-top: 30px;
  border: none;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.profile-verification__finish:hover {
  background: #e01a6d;
}

@media (max-width: 991.98px) {
  .profile-verification__step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }

  .profile-verification__icon {
    width: 32px;
    height: 32px;
  }

  .profile-verification__icon-img {
    width: 16px;
    height: 16px;
  }

  .profile-verification__connector {
    min-height: 24px;
  }

  .profile-verification__step-label {
    margin: 6px 0 0;
  }

  .profile-setup-page__form-panel {
    padding: 16px 0 2rem;
  }

  .profile-setup-page__main {
    padding: 0;
  }

  .profile-setup-card {
    padding: 1.5rem;
  }
}

@media (min-width: 5px) and (max-width: 599.98px) {
  .profile-setup-page {
    background-color: #fff;
    background-image: url('../images/mobile_create_profile.png');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 100%;
  }

  .profile-setup-header {
    background: transparent;
  }

  .profile-setup-header__logout {
    display: none;
  }

  .profile-setup-page__title-panel {
    background: transparent;
    border-bottom: none;
  }

  .profile-setup-page__form-panel {
    background: none;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-setup-form__grid,
  .profile-photos-form__grid {
    --bs-gutter-y: 20px;
  }

  .profile-passions-form .profile-tag-selector__tags {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: flex-start;
    gap: 10px;
    width: 100%;
    max-height: calc(30px * 4 + 10px * 3);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .profile-passions-form .profile-setup-tag {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .profile-setup-form__actions {
    --bs-gutter-x: 12px;
  }

  .profile-setup-form__action-col .profile-setup-form__back,
  .profile-setup-form__action-col .profile-setup-form__skip,
  .profile-setup-form__action-col .profile-setup-form__submit {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 600px) and (max-width: 991.98px) {
  .profile-setup-form__grid > .col-md-6,
  .profile-photos-form__grid > .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}
