:root {
  --bg: #ededed;
  --surface: #ffffff;
  --text: #15191f;
  --muted: #7f8389;
  --line: #e9e9e9;
  --green: #07c160;
  --red: #bf3c35;
  --link: #65728a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.complaint-app {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.6875rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.page {
  display: none;
  min-height: 100vh;
  background: var(--bg);
}

.page.is-active {
  display: block;
}

.reason-prompt {
  min-height: 78px;
  margin: 0;
  padding: 24px 30px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 1.5625rem;
  font-weight: 400;
  line-height: 1.35;
}

.reason-list {
  display: grid;
  background: var(--surface);
}

.reason-list button {
  position: relative;
  width: 100%;
  min-height: 100px;
  padding: 0 78px 0 30px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: 1.8125rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
}

.reason-list button::after {
  content: "›";
  position: absolute;
  right: 37px;
  top: 50%;
  transform: translateY(-50%);
  color: #b2b2b2;
  font-size: 3.4375rem;
  font-weight: 400;
}

.reason-footer {
  min-height: 48vh;
  padding: 24px 30px 0;
  background: var(--bg);
}

.related-guide {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--link);
  font-size: 1.5625rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.guide-link {
  display: block;
  margin: 46px auto 0;
  background: transparent;
  color: var(--link);
  font-size: 1.6875rem;
  font-weight: 400;
}

form {
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  align-items: center;
  min-height: 104px;
  padding: 0 31px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.form-row strong,
.upload-head strong,
.content-block strong {
  color: #111820;
  font-size: 1.8125rem;
  font-weight: 500;
}

.selected-reason-row span {
  color: #7a8087;
  font-size: 1.75rem;
  font-weight: 400;
  text-align: right;
}

.form-row input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #111820;
  font-size: 1.8125rem;
}

.form-row input::placeholder,
.content-block textarea::placeholder {
  color: #747b83;
}

.upload-block {
  min-height: 310px;
  padding: 58px 50px 50px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.upload-head span {
  color: #111820;
  font-size: 1.8125rem;
  font-weight: 500;
}

.upload-tile {
  display: grid;
  width: 136px;
  height: 136px;
  place-items: center;
  border-radius: 4px;
  background: #eeeeee;
  color: #8e8e8e;
  font-size: 4.375rem;
  font-weight: 300;
  line-height: 1;
}

.content-block {
  display: grid;
  min-height: 290px;
  padding: 57px 50px 28px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.content-block strong {
  margin-bottom: 26px;
}

.content-block textarea {
  width: 100%;
  min-height: 142px;
  border: 0;
  outline: none;
  resize: vertical;
  background: transparent;
  color: #17202c;
  font-size: 1.75rem;
  line-height: 1.65;
}

.submit-button {
  display: block;
  width: 257px;
  min-height: 84px;
  margin: 86px auto 0;
  border-radius: 6px;
  background: var(--green);
  color: #ffffff;
  font-size: 1.875rem;
  font-weight: 600;
}

.submit-button:disabled {
  background: #d6d6d6;
}

.clear-button {
  display: block;
  margin: 70px auto 0;
  background: transparent;
  color: #7b7f85;
  font-size: 1.625rem;
  font-weight: 400;
}

.page-success {
  padding: 180px 30px 0;
  text-align: center;
}

.success-check {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  margin: 0 auto 51px;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
}

.page-success h2 {
  margin-bottom: 42px;
  font-size: 2.3125rem;
  line-height: 1.25;
}

.page-success p {
  max-width: 560px;
  margin: 0 auto 76px;
  color: #4b5563;
  font-size: 1.6875rem;
  font-weight: 400;
  line-height: 1.8;
}

.close-button {
  width: 300px;
  min-height: 85px;
  border-radius: 6px;
  background: var(--green);
  color: #ffffff;
  font-size: 1.875rem;
  font-weight: 600;
}

.toast {
  position: fixed;
  right: 0;
  bottom: 21px;
  left: 0;
  min-height: 28px;
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 760px) {
  h1 {
    font-size: 1.5rem;
  }

  .reason-prompt {
    min-height: 58px;
    padding: 15px 16px 0;
    font-size: 1rem;
  }

  .reason-list button {
    min-height: 68px;
    padding: 0 45px 0 16px;
    font-size: 1.25rem;
  }

  .reason-list button::after {
    right: 19px;
    font-size: 2.25rem;
  }

  .guide-link {
    margin-top: 34px;
    font-size: 1.0625rem;
  }

  .reason-footer {
    min-height: 46vh;
    padding: 16px 16px 0;
  }

  .related-guide {
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 98px minmax(0, 1fr);
    min-height: 72px;
    padding: 0 24px;
  }

  .form-row strong,
  .upload-head strong,
  .content-block strong {
    font-size: 1.3125rem;
  }

  .selected-reason-row span,
  .form-row input,
  .upload-head span {
    font-size: 1.1875rem;
  }

  .upload-block {
    min-height: 206px;
    padding: 34px 32px;
  }

  .upload-head {
    margin-bottom: 22px;
  }

  .upload-tile {
    width: 86px;
    height: 86px;
    font-size: 2.8125rem;
  }

  .content-block {
    min-height: 218px;
    padding: 37px 32px 20px;
  }

  .content-block strong {
    margin-bottom: 20px;
  }

  .content-block textarea {
    min-height: 104px;
    font-size: 1.1875rem;
  }

  .submit-button {
    width: 172px;
    min-height: 56px;
    margin-top: 58px;
    font-size: 1.25rem;
  }

  .clear-button {
    margin-top: 46px;
    font-size: 1.0625rem;
  }

  .page-success {
    padding-top: 128px;
  }

  .success-check {
    width: 70px;
    height: 70px;
    margin-bottom: 42px;
    font-size: 3rem;
  }

  .page-success h2 {
    margin-bottom: 30px;
    font-size: 1.75rem;
  }

  .page-success p {
    max-width: 320px;
    margin-bottom: 58px;
    font-size: 1.25rem;
  }

  .close-button {
    width: 210px;
    min-height: 58px;
    font-size: 1.3125rem;
  }

  .toast {
    bottom: 13px;
    font-size: 1rem;
  }
}
