@charset "utf-8";
/***** GRID *****/
.grid {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.progress {
	position: fixed;
	width: 100%;
	height: 100%;
	font-size: 3rem;
	text-align: center;
	background-color: #fff;
	opacity: 0.8;
	z-index: 999;
	display: none;
}

.progress img {
	top: 10%;
}

.app {
  flex-grow: 1;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 70px 0 120px 0;
}

header {
	padding-bottom: 32px;
	text-align: center;
}

header h1 img {
	height: 84px;
	margin-bottom: 8px;
}

#maintain {
	display: none;
	width: 100%;
	color: var(--red);
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2em;
	padding: 16px 12px;
	border-radius: 5px;
	margin-bottom: 0;
	background-color: #ffeaea;
}

.page-back {
  display: flex;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 38px;
  align-items: center;
  gap: 8px;
}

.page-back::before {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url('../images/ico-back.svg') 0;
  content: "";
}

.form-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.auth-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
}

.field-group label {
  font-size: 14px;
}

.button-group {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-direction: column;
}

.button-group-confirm {
  display: flex;
  gap: 12px;
  margin-top: 82px;
}

/***** Field *****/
h2.field-name {
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
}

.field-crm {
  color: var(--navy);
  font-size: 16px;
  font-weight: 300;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
  border-radius: 5px;
}

.field-crm:disabled {
  color: #A9AFB9;
  background-color: var(--back);
  border-color: var(--back);
}

.field-crm:focus {
  border-color: var(--primary);
}

p.caption {
  position: absolute;
}

.cmmt {
  position: absolute;
  bottom: -6px;
  width: 100%;
  color: var(--primary);
  font-size: 14px;
}

.cmmt::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--primary);
  content: "";
  vertical-align: middle;
  margin: -2px 6px 0 6px;
}

.cmmt.text {
  position: absolute;
  bottom: -6px;
  width: 100%;
  color: var(--text);
  font-size: 14px;
}

.cmmt.text::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text);
  content: "";
  vertical-align: middle;
  margin: -2px 6px 0 6px;
}

.cmmt.bell::before {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url('../images/ico-bell.svg') 0;
  content: "";
  vertical-align: middle;
  margin: 0 8px 0 0;
}

.cmmt.auth {
  color: var(--navy);
  text-align: center;
  height: 24px;
}

.cmmt.auth::before {
  display: none;
}

.cmmt.red {
  color: var(--red);
}

.cmmt.red::before {
  background-color: var(--red); 
}

.ico-edit {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 20px;
	height: 20px;
	background: url('../images/ico-edit.svg') 0 / 20px;
	text-indent: -200%;
	white-space: nowrap;
	overflow: hidden;
	font-size: 1px;
	display: none;
	z-index: 1;
}

.ico-eye {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 20px;
	height: 20px;
	background: url('../images/ico-hidden.svg') 0 / 20px;
	text-indent: -200%;
	white-space: nowrap;
	overflow: hidden;
	font-size: 1px;
	z-index: 1;
}

.ico-eye.visible {
	background-image: url('../images/ico-visible.svg');
}

select.crm-select {
  appearance: none;
  font-size: 16px;
  background: #FFF url(../images/ico-select-arrow.svg) calc(100% - 8px) 50%;
  border-radius: 4px;
  border: 1px solid var(--stroke);
  padding: 10px 12px;
  min-height: 48px;
  width: 100%;
  cursor: pointer;
}

select.crm-select:focus {
  outline-color: var(--primary);
}

/***** Button *****/
.btn {
  display: block;
  width: 100%;
  color: #FFF;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2em;
  text-align: center;
  padding: 20px 12px;
  border-radius: 5px;
  background-color: var(--primary);
  transition: .4s;
}

.btn:hover {
	background-color: var(--primary-hover);
}

.btn:disabled {
  color: #A5ADB7;
  background-color: #D0D6DD;
  cursor: auto;
}

.btn.cancel {
  color: #FFF;
  background-color: var(--text);
}

.btn.auth {
  font-size: 16px;
  background-color: var(--navy);
  padding: 16px 12px;
  transition: .4s;
}

.btn.auth:hover {
	background-color: var(--navy-hover);
}

/***** Agreement *****/
.agree-group {
  padding-bottom: 4px;
}

.agree-group .check-label {
  padding: 12px 6px;
}

.agree-group .check-label:first-of-type {
  border-bottom: 1px solid var(--stroke);
}

.check-label { /* checkbox + label Group */
  display: flex;
  align-items: center;
  gap: 6px;
}

input[type="checkbox"].crm-check {
  appearance: none;
  display: none;
}

.agree-group .check-label a {
  display: block;
  color: var(--primary);
  font-size: 14px;
  text-decoration: underline;
}

.agree-group .check-label a:hover {
  color: var(--text);
}

input[type=checkbox].crm-check + label {
  display: flex;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5em;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

input[type=checkbox].crm-check + label::before {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  content: "";
  background-color: #FFF;
  border: 2px solid #D4D4D4;
  cursor: pointer;
  transition: border .1s ease;
 }

input[type=checkbox].crm-check:checked + label::before {
  background: var(--primary) url('../images/ico-check.svg') 50% / 12px no-repeat;
  border-color: var(--primary);
}

input[type=checkbox].crm-check:hover + label::before,
input[type=checkbox].crm-check + label.focus::before {
  border-color: var(--primary);
}

.check-label label span {
  display: flex;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.5em;
  word-break: break-all;
  align-items: center;
}

.agree-more {
  position: absolute;
  top: 15px;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8e949c;
  font-size: 12px;
  z-index: 1;
}

.agree-more::after {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url('../images/ico-more.svg') right 50%;
  content: "";
}

.agree-more.active::after {
  transform: rotate(180deg);
}

.agree-doc-toggle {
  display: none;
  background-color: var(--back);
  padding: 16px 12px;
  height: 160px;
  overflow-y: auto;
}

.agree-doc-toggle h4 {
  margin-bottom: 1.0em;
}

.agree-doc-toggle h4, .agree-doc-toggle p {
  font-size: 13px;
  line-height: 1.6;
}

.agree-doc-toggle ul li {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 1.0em;
}

.agree-doc-toggle ul li:last-child {
  margin-bottom: 0;
}

/***** Company *****/
.step-by {
  position: absolute;
  top: 3px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.step-by::after {
  display: block;
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #D0D5DC;
  content: "";
  z-index: -1;
}

.step-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  color: #FFF;
  font-size: 14px;
  font-weight: 500;
  border: 3px solid #FFF;
  background-color: #D0D5DC;
  border-radius: 50%;
}

.step-item.active {
  background-color: var(--primary);
}

.skip-next {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 16px;
  text-align: right;
  gap: 12px;
}

.skip-next:hover {
  color: var(--navy);
}

.skip-next i {
  margin-right: -3px;
}

.skip-next::after {
  display: block;
  width: 24px;
  height: 24px;
  background: url('../images/ico-skip.svg') 0;
  content: "";
}

/***** Setting *****/
.heading-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.heading-sub {
  color: #969ba3;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.set-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-bottom: 48px;
}

.set-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-radius: 12px;
  width: calc(100% / 3 - 8px);
  max-height: 162px;
  padding: 20px;
  border: 1px solid var(--stroke);
  cursor: pointer;
  transition: border .2s ease;
}

.set-item:hover {
  border-color: var(--primary);
}

.set-item p {
  color: #C2C2C2;
  font-size: 17px;
  font-weight: 500;
}

.set-item img {
  width: 76px;
  filter: grayscale(100%);
  opacity: .8;
  transition: filter .2s ease;
}

.set-item:hover img {
  filter: grayscale(20%);
}

.set-item .set-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: url('../images/ico-set-check.svg') 0;
  z-index: 1;
}

.set-item .set-check input[type="checkbox"] {
  appearance: none;
}

.set-item.active {
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgb(108 133 134 / 25%);
}

.set-item.active p {
  color: var(--primary);
}

.set-item.active img {
  filter: grayscale(0);
  opacity: 1;
}

.set-item.active .set-check {
  background-image: url('../images/ico-set-checked.svg');
}

/***** Completed *****/
.heading-group-center {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
  align-items: center;
}

.heading-group-center h2 {
  font-size: 28px;
  text-align: center;
}

.heading-group-center img.pet {
  width: 210px;
  margin-bottom: 32px;
  opacity: 0;
  animation: 1s ease-in-out .2s infinite alternate bounce, .8s ease-in-out .2s forwards fade;
}

@keyframes bounce {
  0% { top: 0; }
  100% { top: -10px; }
}

@keyframes fade {
  0% { opacity: 0;}
  100% { opacity: 1; }
}

.banner-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.banner-group > a {
  display: block;
  width: 186px;
}

/***** Footer *****/
#footer {
  background-color: #F5F7F9;
}

.foot-content {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px;
  align-items: center;
}

.foot-content .cissoid {
  width: 105px;
  height: 15px;
  margin-bottom: 20px;
}

p.foot-contact {
	width: 600px;
	display: flex;
  align-items: center;
  color: var(--text);
  font-size: 14px;
  text-align: center;
  gap: 23px;
}

p.foot-contact em {
  display: inline-block;
  color: var(--navy);
  font-weight: 500;
  margin-right: 0.6em;
}

#footer p.rights {
	margin-top: 20px;  
	color: #A3A6AB;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/******* Mobile *******/
@media (max-width: 480px) {
  /*** GRID ***/
  .app {
    padding: 24px 16px 68px 16px;
  }


  	header {
		padding-bottom: 28px;
	}

	header h1 img {
		height: 64px;
		margin-bottom: 4px;
	}

  /*** Field ***/
  .field-crm, select.crm-select {
    font-size: 15px;
  }

  h2.field-name {
    font-size: 21px;
  }

  .step-by {
    top: 0;
  }

  /*** Button ***/
  .btn {
    font-size: 16px;
    padding: 16px 12px;
  }

  /*** Compnay ***/
  .skip-next {
    font-size: 14px;
    gap: 8px;
  }

  /*** Setting ***/
  .heading-sub {
    font-size: 14px;
  }

  .set-item {
    width: calc(100% / 2 - 8px);
  }

  /*** Completed ***/
  .heading-group-center img.pet {
    width: 160px;
    margin-bottom: 24px;
    margin-left: -12px;
  }

  /*** Footer ***/
  .foot-content .cissoid {
    width: 80px;
  }

  .foot-content {
    align-items: flex-start;
    padding: 32px 16px;
  }

  p.foot-contact {
    font-size: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  #footer p.rights {
    margin-top: 12px;
  }
}