@import url(contact-chinese-font.css?v=12);
@import url(copy-chinese-font.css?v=11);
@import url(dialog-chinese-font.css?v=10);

/* Keep the page still behind the modal, then continue from the same frame. */
html.request-open body > :not(.project-dialog),
html.request-open body > :not(.project-dialog) * { animation-play-state: paused!important; }

.project-dialog {
  --request-surface: #1b1d1d;
  --request-line: #393c39;
  width: min(1080px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid #484c43;
  border-radius: 24px;
  background: #141616;
  color: var(--ink);
  box-shadow: 0 24px 100px #0008;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-top: 84px;
  font-family: inherit;
  scrollbar-width: thin;
  scrollbar-color: #55594f transparent;
}
.project-dialog[open] { animation: request-enter .6s var(--ease) both; }
.project-dialog::backdrop { background: rgb(0 0 0 / 74%); backdrop-filter: blur(7px); animation: request-shade-in .6s var(--ease) both; }
.project-dialog.is-closing { animation: request-exit .42s var(--ease) both; }
.project-dialog.is-closing::backdrop { animation: request-shade-out .42s var(--ease) both; }
.request-topline {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px 8px;
  background: #141616;
}
.request-heading {
  padding: 0 32px 24px;
  border-bottom: 1px solid var(--request-line);
}
.request-topline .caption { color: var(--acid); }
.request-heading h2 { margin: 0 0 10px; font-size: 38px; font-weight: 400; line-height: 1.13; letter-spacing: -.04em; }
.request-heading h2:focus { outline: none; }
.request-heading p { max-width: 780px; color: #b9bcb3; font-size: 15px; line-height: 1.55; }
.request-close, .request-task-remove {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #45493f;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 28px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.request-close:hover, .request-task-remove:hover { background: var(--acid); border-color: var(--acid); color: #111214; }
.project-request { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); align-items: start; }
.request-tasks { padding: 28px 28px 32px 32px; min-width: 0; border-right: 1px solid var(--request-line); }
.request-section-heading { margin-bottom: 16px; }
.request-section-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.request-section-heading p { max-width: 440px; margin-top: 8px; color: #b9bcb3; font-size: 13px; line-height: 1.5; }
.request-task { border: 1px solid var(--request-line); border-radius: 14px; overflow: hidden; background: var(--request-surface); transition: border-color .4s var(--ease); }
.request-task + .request-task { margin-top: 12px; }
.request-task.is-active { border-color: #626c53; }
.request-task-heading { display: flex; align-items: center; padding-right: 10px; }
.request-task-toggle { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 72px; padding: 15px 16px; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.request-task-number { flex: none; align-self: flex-start; padding-top: 2px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--acid); }
.request-task-label { display: grid; gap: 4px; flex: 1; min-width: 0; font-size: 16px; line-height: 1.4; }
.request-task-summary { color: #aeb3a8; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.request-task-sign { flex: none; font-size: 23px; font-weight: 400; color: #b5bbaa; }
.request-task-remove { width: 36px; height: 36px; font-size: 23px; }
.request-task-body { padding: 0 16px 18px; }
.request-services { padding: 0; margin: 0; border: 0; min-width: 0; }
.request-services legend { padding: 7px 0 0; font-size: 15px; line-height: 1.5; }
.request-field-hint { margin: 5px 0 14px; color: #aeb3a8; font-size: 12px; line-height: 1.5; }
.request-group { border-top: 1px solid var(--request-line); }
.request-group:last-of-type { border-bottom: 1px solid var(--request-line); }
.request-group summary { display: flex; gap: 10px; align-items: center; min-height: 50px; padding: 10px 0; color: #dfE2d9; font-size: 15px; line-height: 1.4; cursor: pointer; list-style: none; }
.request-group summary::-webkit-details-marker { display: none; }
.request-group summary > :first-child { flex: 1; min-width: 0; }
.request-group-count { min-width: 24px; font-size: 12px; text-align: center; color: #adb4a1; font-variant-numeric: tabular-nums; }
.request-group.has-selection .request-group-count { color: var(--acid); }
.request-group-plus { flex: none; font-size: 22px; line-height: 1; transition: transform .5s var(--ease); }
.request-group[open] .request-group-plus { transform: rotate(45deg); }
.request-group[data-target-open="false"] .request-group-plus { transform: none; }
.request-service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 0 14px; }
.request-service { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 10px 11px; border: 1px solid #40453c; border-radius: 9px; background: #20231f; color: #e5e8de; font-size: 14px; line-height: 1.4; cursor: pointer; transition: border-color .35s var(--ease), background-color .35s var(--ease); }
.request-service > :last-child { min-width: 0; overflow-wrap: anywhere; }
.request-service input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; }
.request-check { position: relative; display: block; flex: none; width: 17px; height: 17px; border: 1px solid #77806c; border-radius: 4px; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.request-service:has(input:checked) { border-color: #b5d773; background: #d8ff850d; }
.request-service input:checked + .request-check { border-color: var(--acid); background: var(--acid); }
.request-service input:checked + .request-check::after { content: ''; position: absolute; width: 8px; height: 5px; left: 3px; top: 3px; border-left: 1.8px solid #111214; border-bottom: 1.8px solid #111214; transform: rotate(-45deg); }
.request-service:hover { border-color: #94a57a; }
.request-service:has(input:focus-visible) { outline: 2px solid var(--acid); outline-offset: 3px; }
.request-description { margin-top: 18px; }
.project-dialog .request-description textarea { min-height: 102px; max-height: 300px; background: #141714; border-color: #4c5444; font-size: 14px; }
.project-dialog .inquiry-field > span { font-size: 13px; line-height: 1.5; }
.project-dialog .inquiry-field small { margin-left: 5px; color: #aeb3a8; font-size: 11px; font-weight: 400; }
.request-add-task { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: none; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--acid); font: inherit; font-size: 13px; cursor: pointer; transition: color .2s; }
.request-add-task > span { font-size: 23px; line-height: 1; }
.request-add-task:hover { color: #ecffc8; }
.request-add-task:disabled { cursor: default; opacity: .5; }
.request-task-limit { margin-top: 8px; font-size: 12px; line-height: 1.5; color: #aeb3a8; }
.request-contact { position: sticky; top: 70px; padding: 28px 32px 32px 28px; min-width: 0; }
.request-contact h3 { margin: 12px 0 10px; font-size: 25px; line-height: 1.2; font-weight: 400; letter-spacing: -.035em; }
.request-contact-intro { color: #b9bcb3; font-size: 14px; line-height: 1.55; }
.request-overview { display: flex; gap: 16px; padding: 16px 0; margin: 8px 0 16px; border-bottom: 1px solid var(--request-line); color: #c2d1ab; font-size: 12px; line-height: 1.5; }
.request-field + .request-field { margin-top: 18px; }
.project-dialog .request-field input { height: 50px; background: #1c201a; border-color: #58614b; font-size: 16px; }
.project-dialog .project-request .inquiry-submit { width: 100%; justify-content: space-between; min-height: 54px; margin-top: 24px; border-radius: 12px; padding-left: 18px; font-size: 14px; }
.project-dialog .inquiry-note { font-size: 12px!important; line-height: 1.6!important; color: #aeb3a8!important; }
.project-dialog .inquiry-note a { display: table; margin-top: 3px; }
.project-dialog .inquiry-status { font-size: 13px; line-height: 1.55; }
.project-dialog :is(button,summary,input,textarea,a):focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
.project-dialog .request-task-toggle:focus-visible { outline-offset: -4px; border-radius: 12px; }
.project-dialog [hidden] { display: none!important; }
.request-success { padding: 48px 32px 52px; max-width: 680px; margin: auto; text-align: center; }
.request-success-mark { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #a9cc6b; border-radius: 50%; margin: 0 auto 24px; color: var(--acid); font-size: 30px; }
.request-success h3 { margin: 12px 0; font-size: 38px; font-weight: 400; line-height: 1.15; letter-spacing: -.035em; }
.request-success p { color: #bdc5b2; font-size: 16px; line-height: 1.6; }
.request-success .button { margin-top: 28px; border: 0; cursor: pointer; font: inherit; }
.request-success h3:focus { outline: none; }
html:lang(zh) .project-dialog :is(h2,h3) { letter-spacing: 0; line-height: 1.3; }

@media (max-width: 800px) {
  .project-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .request-topline { padding: 18px 24px 8px; }
  .request-heading { padding: 0 24px 24px; }
  .request-heading h2 { font-size: 32px; }
  .project-request { grid-template-columns: minmax(0, 1fr); }
  .request-tasks { padding: 24px; border-right: 0; border-bottom: 1px solid var(--request-line); }
  .request-contact { position: static; padding: 24px; }
  .request-overview { margin-top: 6px; }
  .request-contact .inquiry-submit { max-width: none; }
  .project-dialog .request-description textarea { font-size: 16px; }
}
@media (max-width: 480px) {
  .project-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .request-topline { padding: 16px 18px 8px; }
  .request-heading { padding: 0 18px 20px; }
  .request-heading h2 { font-size: 29px; }
  .request-heading p { font-size: 14px; }
  .request-close { width: 40px; height: 40px; }
  .request-tasks, .request-contact { padding: 22px 18px; }
  .request-section-bar { gap: 8px; }
  .request-section-bar .caption { font-size: 12px; }
  .request-add-task { font-size: 13px; gap: 5px; }
  .request-task-toggle { gap: 9px; padding: 13px 12px; }
  .request-task-body { padding: 0 12px 16px; }
  .request-task-label { font-size: 15px; }
  .request-task-summary { font-size: 11px; }
  .request-service-list { grid-template-columns: minmax(0, 1fr); }
  .request-service { min-height: 46px; font-size: 14px; }
  .request-description > span { display: flex; flex-wrap: wrap; gap: 2px 5px; }
  .project-dialog .request-description > span small { margin-left: 0; }
  .request-success { padding: 36px 22px; }
  .request-success h3 { font-size: 30px; }
}
@keyframes request-enter { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes request-exit { from { opacity: var(--request-exit-opacity, 1); transform: var(--request-exit-transform, none); } to { opacity: 0; transform: translateY(16px) scale(.99); } }
@keyframes request-shade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes request-shade-out { from { opacity: var(--request-shade-opacity, 1); } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .project-dialog, .project-dialog::backdrop { animation: none!important; }
  .project-dialog * { transition: none!important; }
}
