:root {
  --bg: #f8f9fb;
  --text: #0a0a0a;
  --muted: #717182;
  --input-bg: #f3f7fd;
  --border-10: rgba(0, 0, 0, 0.1);
  --border-20: rgba(0, 0, 0, 0.2);
  --white: #ffffff;
  --accent: #fac24e;
  --accent-soft: rgba(250, 194, 78, 0.2);
  --shadow-soft: 0 10px 15px 0 rgba(0, 0, 0, 0.1), 0 4px 6px 0 rgba(0, 0, 0, 0.1);
  --font: "Uncut Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #ffffff;
}

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

.page-inner {
  width: 100%;
  max-width: 894px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.logo-wrap {
  width: 100%;
  height: 76px;
  display: flex;
  justify-content: center;
}

.logo {
  width: 273px;
  height: 76px;
  object-fit: cover;
  pointer-events: none;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-10);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.title {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: var(--text);
}

.subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  color: var(--muted);
}

.order-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toggle-row {
  min-height: 41px;
  border-bottom: 1px solid var(--border-10);
  display: flex;
  align-items: center;
  padding-bottom: 1px;
}

.switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.switch-wrap input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  width: 44px;
  height: 24px;
  border-radius: 33554400px;
  background: var(--border-10);
  position: relative;
  transition: background-color 0.2s ease;
}

.switch-thumb {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 33554400px;
  background: #ffffff;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.switch-wrap input:checked + .switch-track {
  background: #ffd879;
}

.switch-wrap input:checked + .switch-track .switch-thumb {
  transform: translateX(20px);
}

.switch-label {
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: var(--text);
}

.existing-customer-status {
  min-height: 18px;
  margin: -12px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}

.existing-customer-status.success {
  color: #127236;
}

.existing-customer-status.error {
  color: #b54708;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field-row.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-20);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input,
.field select {
  height: 47px;
}

.field textarea {
  resize: none;
  min-height: 89px;
  line-height: 21px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(10, 10, 10, 0.5);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(10, 10, 10, 0.35);
  box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.08);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(10, 10, 10, 0.45) 50%),
    linear-gradient(135deg, rgba(10, 10, 10, 0.45) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--border-10);
}

.upload-section {
  gap: 16px;
}

.upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upload-title {
  margin: 0;
}

.file-count {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}

.dropzone {
  border: 2px solid var(--border-20);
  border-radius: 16px;
  min-height: 215.5px;
  padding: 34px 34px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.dragging {
  border-color: #e2af3f;
  background: rgba(250, 194, 78, 0.08);
}

.dropzone:focus-visible {
  outline: 0;
}

.upload-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.upload-icon {
  width: 32px;
  height: 32px;
  display: block;
  pointer-events: none;
}

.dropzone-title {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: var(--text);
}

.dropzone-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--muted);
}

.dropzone-info {
  margin: 8px 0 0;
  max-width: 376px;
  font-size: 11px;
  line-height: 16.5px;
  font-weight: 400;
  color: var(--muted);
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-list li {
  border: 1px solid var(--border-20);
  border-radius: 999px;
  background: #ffffff;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text);
}

.file-list li.error {
  border-color: #b54708;
  color: #b54708;
}

.upload-progress {
  display: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.upload-progress.active {
  display: block;
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.15s linear;
}

.feedback {
  min-height: 22px;
  margin-top: -8px;
  font-size: 13px;
  line-height: 18px;
  color: #b54708;
}

.feedback.success {
  color: #127236;
}

.submit-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 45px;
}

.submit-btn {
  width: 195.922px;
  height: 45px;
  border: 0;
  border-radius: 100px;
  background: var(--accent);
  font-family: inherit;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.submit-btn:hover {
  filter: brightness(0.98);
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .page-inner {
    padding: 15.993px;
    gap: 23.99px;
  }

  .logo-wrap {
    height: 59.992px;
  }

  .logo {
    width: 199.986px;
    height: 59.992px;
  }

  .card {
    border-width: 1.108px;
    border-radius: 20px;
    padding: 19.99px;
  }

  .title {
    font-size: 18px;
    line-height: 27px;
  }

  .subtitle {
    margin-top: 8px;
    font-size: 13px;
    line-height: 19.5px;
  }

  .order-form {
    margin-top: 19.99px;
    gap: 19.992px;
  }

  .toggle-row {
    min-height: 41.091px;
    border-bottom-width: 1.108px;
    padding-bottom: 1.108px;
  }

  .switch-track {
    width: 43.999px;
    height: 23.99px;
  }

  .switch-thumb {
    width: 19.992px;
    height: 19.992px;
    left: 1.99px;
    top: 1.99px;
  }

  .switch-wrap input:checked + .switch-track .switch-thumb {
    transform: translateX(20px);
  }

  .switch-label {
    font-size: 13px;
    line-height: 19.5px;
  }

  .existing-customer-status {
    margin-top: -8px;
    min-height: 16px;
    font-size: 11px;
    line-height: 16.5px;
  }

  .section-block {
    gap: 11.995px;
  }

  .section-title {
    font-size: 15px;
    line-height: 22.5px;
  }

  .field-row,
  .field-row.two-col {
    grid-template-columns: 1fr;
    gap: 11.995px;
  }

  .field {
    gap: 7.997px;
  }

  .field label {
    font-size: 13px;
    line-height: 19.5px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 13px;
    padding: 10px 12px;
    border-width: 1.108px;
  }

  .field input,
  .field select {
    height: 41.68px;
  }

  .field textarea {
    min-height: 80.659px;
    line-height: 19.5px;
  }

  .divider {
    height: 0.987px;
  }

  .upload-section {
    gap: 11.995px;
  }

  .upload-head {
    align-items: flex-start;
  }

  .upload-title {
    max-width: 173px;
  }

  .file-count {
    width: 65px;
    text-align: left;
    font-size: 11px;
    line-height: 16.5px;
    white-space: normal;
  }

  .dropzone {
    min-height: 188.199px;
    border-width: 1.108px;
    padding: 25.098px 25.098px 1.108px;
  }

  .upload-icon-wrap {
    width: 47.997px;
    height: 47.997px;
    margin-bottom: 11.995px;
  }

  .upload-icon {
    width: 23.99px;
    height: 23.99px;
  }

  .dropzone-title {
    font-size: 13px;
    line-height: 19.5px;
  }

  .dropzone-subtitle {
    margin-top: 4px;
    font-size: 11px;
    line-height: 16.5px;
  }

  .dropzone-info {
    margin-top: 8px;
    max-width: 225px;
    font-size: 10px;
    line-height: 15px;
  }

  .file-list li {
    font-size: 11px;
    line-height: 15px;
  }

  .feedback {
    min-height: 20px;
    font-size: 12px;
    line-height: 16px;
  }

  .submit-wrap {
    min-height: 39.464px;
  }

  .submit-btn {
    width: 100%;
    height: 39.464px;
    font-size: 13px;
    line-height: 19.5px;
  }
}