@charset "UTF-8";

.apply {

  --apply-bg: #f6f7ff;
  --apply-field-bg: rgba(87, 93, 123, 0.08);
  --apply-surface: #e9ebf4;
  --apply-ink: #020202;
  --apply-ink-soft: #21212b;
  --apply-label: #808080;
  --apply-placeholder: rgba(0, 0, 0, 0.4);
  --apply-line: rgba(0, 0, 0, 0.08);
  --apply-danger: #d81f2a;

  --apply-pad: 20px;

  width: calc(100% - 32px);
  max-width: 343px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background-color: var(--apply-bg);
  color: var(--apply-ink);
  overflow: hidden;
}

.apply[open] {
  display: flex;
  flex-direction: column;
}

.apply::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.apply__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
  outline: none;
}

.apply__topbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  height: 64px;
  padding: 12px;
}

.apply__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
}

.apply__close-icon {
  width: 14px;
  height: 14px;
}

.apply__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.apply__head {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  margin-bottom: var(--s-24);
  padding-inline: var(--apply-pad);
}

.apply__title {
  font-size: 24px;
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-snug);
  letter-spacing: -0.48px;
  color: var(--apply-ink);
}

.apply__lead {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.28px;
  color: rgba(2, 2, 2, 0.8);
}

.apply__form {
  display: flex;
  flex-direction: column;
}

.apply__groups {
  display: flex;
  flex-direction: column;
  gap: var(--s-40);
  padding-inline: var(--apply-pad);
}

.apply__group--fields {
  display: flex;
  flex-direction: column;
  gap: var(--s-20);
}

.apply__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apply__label {
  padding-left: var(--s-4);
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: var(--lh-base);
  letter-spacing: -0.28px;
  color: var(--apply-label);
}

.apply__required {
  margin-left: 2px;
  color: var(--apply-danger);
}

.apply__input,
.apply__textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background-color: var(--apply-field-bg);
  color: var(--c-black);
  appearance: none;
  -webkit-appearance: none;
}

.apply__input {
  height: 48px;
  padding-inline: 14px;
  font-size: 15px;
  line-height: var(--lh-base);
  letter-spacing: -0.3px;
}

.apply__textarea {
  min-height: 120px;
  padding: var(--s-20) 14px;
  font-size: 14px;
  line-height: var(--lh-base);
  letter-spacing: -0.28px;
  resize: vertical;
}

.apply__input::placeholder,
.apply__textarea::placeholder {
  color: var(--apply-placeholder);
}

.apply__input--date {
  display: flex;
  align-items: center;
  min-height: 48px;
}
.apply__input--date::-webkit-date-and-time-value {
  text-align: left;
}
.apply__input--date::-webkit-calendar-picker-indicator {
  margin-left: auto;
  opacity: 0.5;
  cursor: pointer;
}

.apply__input[aria-invalid="true"],
.apply__textarea[aria-invalid="true"] {
  box-shadow: inset 0 0 0 1px var(--apply-danger);
}

.apply__select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%23020202' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.apply__select:invalid {
  color: var(--apply-placeholder);
}

.apply__select option {
  color: var(--c-black);
}

.apply__error {
  padding-left: var(--s-4);
  font-size: 13px;
  line-height: var(--lh-base);
  letter-spacing: -0.26px;
  color: var(--apply-danger);
}

.apply__hint {
  margin-top: var(--s-8);
  padding-left: var(--s-4);
  font-size: 13px;
  line-height: var(--lh-base);
  letter-spacing: -0.26px;
  color: rgba(2, 2, 2, 0.5);
}

.apply__segment {
  position: relative;
  display: flex;
  gap: var(--s-8);
  height: 48px;
}

.apply__segment-option {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
  background-color: var(--apply-field-bg);
  color: var(--c-black);
  font-size: 15px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.5px;
  opacity: 0.8;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.apply__segment-input:checked + .apply__segment-option {
  background-color: var(--apply-ink);
  color: var(--c-white);
}

.apply__segment-input:focus-visible + .apply__segment-option {
  outline: 2px solid var(--c-sky-blue);
  outline-offset: 2px;
}

.apply__group--upload {
  display: flex;
  flex-direction: column;
  gap: var(--s-20);
}

.apply__upload-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

.apply__subtitle {
  font-size: 18px;
  font-weight: var(--fw-medium);
  line-height: normal;
  letter-spacing: -0.5px;
  color: var(--c-black);
}

.apply__tabs {
  display: inline-flex;
  align-self: flex-start;
  padding: var(--s-4);
  border-radius: var(--radius-md);
  background-color: var(--apply-surface);
}

.apply__tab {

  min-width: 98px;
  padding: 9px 14px;
  white-space: nowrap;
  border-radius: 6px;
  color: var(--c-black);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: -0.3px;
  opacity: 0.5;
  transition: background-color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.apply__tab[aria-selected="true"] {
  background-color: var(--c-white);
  opacity: 1;
}

.apply__tabpanel:focus-visible {
  outline: 2px solid var(--c-sky-blue);
  outline-offset: 4px;
}

.apply__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
}

.apply__thumb,
.apply__add {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--apply-surface);
  overflow: hidden;
}

.apply__thumb-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apply__thumb-clear {
  position: absolute;
  top: var(--s-8);
  right: var(--s-8);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.apply__thumb-clear img {
  width: 20px;
  height: 20px;
}

.apply__thumb-badge {
  position: absolute;
  left: var(--s-8);
  bottom: var(--s-8);
  padding: 2px 6px;
  background-color: rgba(2, 2, 2, 0.72);
  color: var(--c-white);
  font-size: 11px;
  font-weight: var(--fw-medium);
  line-height: 1.4;
  letter-spacing: 0;
}

.apply__thumb-progress {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(2, 2, 2, 0.55);
  color: var(--c-white);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.26px;
}

.apply__thumb-progress[hidden] {
  display: none;
}

.apply__thumb-progress::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: var(--apply-progress, 0%);
  background-color: var(--c-michelin-yellow);
  transition: width 120ms linear;
}

.apply__submit[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.apply__done {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
  padding: var(--s-64) var(--apply-pad) var(--s-80);
  text-align: center;
  outline: none;
}

.apply__done[hidden] {
  display: none;
}

.apply__done-title {
  font-size: 20px;
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  letter-spacing: -0.4px;
  color: var(--apply-ink);
}

.apply__done-desc {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.28px;
  color: rgba(2, 2, 2, 0.6);
}

.apply__add {
  display: flex;
  align-items: center;
  justify-content: center;
}

.apply__add-icon {
  width: 18px;
  height: 18px;
}

.apply__urls {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.apply__url-row {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.apply__url-row .apply__input {
  flex: 1 1 auto;
  min-width: 0;
}

.apply__url-remove {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.apply__url-add {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-12);
  padding: 10px var(--s-4);
  color: var(--apply-ink-soft);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  line-height: var(--lh-base);
  letter-spacing: -0.28px;
}

.apply__url-add-sign {
  font-size: 15px;
  line-height: 1;
}

.apply__group--agree {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
}

.apply__options {
  display: flex;
  flex-direction: column;
}

.apply__option {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  padding: var(--s-16) var(--s-8);
  border-top: 1px solid var(--apply-line);
}

.apply__option:last-child {
  border-bottom: 1px solid var(--apply-line);
}

.apply__checkbox {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: url("../../assets/apply/checkbox-off.svg") center / 100% 100% no-repeat;
  cursor: pointer;
}

.apply__checkbox:checked {
  background-image: url("../../assets/apply/checkbox-on.svg");
}

.apply__option-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.42px;
  color: var(--apply-ink-soft);
  cursor: pointer;
}

.apply__option-more {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  margin: -16px -12px -16px 0;
}

.apply__option-more img {
  width: 6px;
  height: 11px;
  transform: rotate(180deg);
}

.apply__notice {
  display: flex;
  flex-direction: column;
  gap: var(--s-20);
  padding: var(--s-20) 14px;
  background-color: var(--apply-surface);
}

.apply__notice-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.apply__notice-title {
  font-size: 14px;
  font-weight: var(--fw-bold);
  line-height: var(--lh-base);
  letter-spacing: -0.28px;
  color: var(--c-black);
}

.apply__notes {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.apply__note {
  position: relative;
  padding-left: 13px;
  font-size: 13px;
  line-height: var(--lh-base);
  letter-spacing: -0.26px;
  color: var(--apply-ink-soft);
}

.apply__note::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: currentColor;
}

.apply__footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: var(--s-4);
  padding: var(--apply-pad);
  background-image: linear-gradient(
    to bottom,
    rgba(246, 247, 255, 0) 0%,
    var(--apply-bg) 21.277%
  );
}

.apply__status {
  margin-bottom: var(--s-8);
  font-size: 13px;
  line-height: var(--lh-base);
  letter-spacing: -0.26px;
  text-align: center;
  color: var(--apply-ink-soft);
}

.apply__status--error {
  color: var(--apply-danger);
}

.apply__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  padding-inline: var(--s-32);
  background-color: var(--apply-ink);
  color: var(--c-white);
  font-size: 18px;
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  transition: opacity var(--dur-fast) var(--ease-out);
}

.apply__submit:hover {
  opacity: 0.88;
}

@media (min-width: 1024px) {
  .apply {
    --apply-pad: 32px;
    max-width: 480px;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
  }

  .apply__topbar {
    height: 68px;
    padding: 16px 20px;
  }
}
