.wi-stage-form-shell,
.wi-stage-form-shell * {
  box-sizing: border-box;
}

.wi-stage-form-shell {
  --wi-card: rgba(27, 11, 14, 0.18);
  --wi-line: rgba(205, 149, 64, 0.26);
  --wi-line-strong: rgba(205, 149, 64, 0.52);
  --wi-text: #f4eee8;
  --wi-muted: rgba(244, 238, 232, 0.62);
  --wi-placeholder: rgba(244, 238, 232, 0.30);
  --wi-gold: #d0a548;
  --wi-gold-soft: #e2bd66;
  --wi-danger: #f07b7b;
  width: 100%;
  padding: 0;
  background: transparent;
  color: var(--wi-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wi-stage-form-wrap {
  width: min(100%, 714px);
  margin: 0 auto;
}

.wi-stage-form-card {
  background:
    linear-gradient(180deg, rgba(205, 149, 64, 0.025), rgba(205, 149, 64, 0.01)),
    var(--wi-card);
  border: 1px solid var(--wi-line);
  border-radius: 0;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.18),
    0 0 44px rgba(205, 149, 64, 0.035);
  padding: 29px 32px 25px;
  backdrop-filter: blur(2px);
}

.wi-stage-entry-form {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.wi-stage-block {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wi-stage-block-title {
  color: var(--wi-gold-soft);
  font-family: Georgia, "Noto Serif Georgian", serif;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(205, 149, 64, 0.20);
}

.wi-stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px 20px;
}

.wi-stage-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wi-stage-span-2 {
  grid-column: span 2;
}

.wi-stage-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wi-stage-field > span {
  display: block;
  color: var(--wi-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.wi-stage-field input,
.wi-stage-field textarea {
  width: 100%;
  background: rgba(35, 16, 19, 0.26);
  border: 1px solid rgba(205, 149, 64, 0.23);
  border-radius: 2px;
  min-height: 41px;
  padding: 10px 12px;
  color: var(--wi-text);
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.wi-stage-field textarea {
  min-height: 119px;
  resize: vertical;
  line-height: 1.5;
}

.wi-stage-field input::placeholder,
.wi-stage-field textarea::placeholder {
  color: var(--wi-placeholder);
}

.wi-stage-field input:focus,
.wi-stage-field textarea:focus {
  border-color: var(--wi-gold);
  box-shadow: 0 0 0 2px rgba(208, 165, 72, 0.14);
  background: rgba(35, 16, 19, 0.34);
}

.wi-stage-field.wi-has-error input,
.wi-stage-field.wi-has-error textarea {
  border-color: var(--wi-danger);
  box-shadow: 0 0 0 2px rgba(240, 123, 123, 0.14);
}

.wi-stage-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 168px;
  border: 1px dashed rgba(205, 149, 64, 0.32);
  background: rgba(35, 16, 19, 0.16);
  text-align: center;
  padding: 20px;
  color: var(--wi-text);
  cursor: pointer;
}

.wi-stage-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.wi-stage-upload-icon {
  width: 55px;
  height: 55px;
  border-radius: 999px;
  border: 1px solid rgba(205, 149, 64, 0.40);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wi-gold-soft);
  background: rgba(40, 14, 18, 0.46);
}

.wi-stage-upload strong {
  font-family: Georgia, "Noto Serif Georgian", serif;
  font-size: clamp(20px, 2.5vw, 25px);
  line-height: 1.2;
  font-weight: 700;
}

.wi-stage-upload small {
  color: var(--wi-muted);
  font-size: 13px;
  line-height: 1.45;
}

.wi-stage-submit {
  width: 100%;
  min-height: 55px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #dab151, #c79a39);
  color: #24170a;
  font-family: Georgia, "Noto Serif Georgian", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 12px 24px rgba(198, 152, 54, 0.12);
}

.wi-stage-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(198, 152, 54, 0.18);
}

.wi-stage-submit:disabled {
  opacity: .7;
  cursor: progress;
}

.wi-stage-form-response {
  display: none;
  padding: 11px 12px;
  border: 1px solid rgba(205, 149, 64, 0.24);
  color: var(--wi-text);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
}

.wi-stage-form-response.is-success,
.wi-stage-form-response.is-error {
  display: block;
}

.wi-stage-form-response.is-error {
  border-color: rgba(240, 123, 123, 0.4);
}

.wi-stage-form-response.is-success {
  border-color: rgba(99, 194, 136, 0.4);
}

.wi-stage-note {
  color: var(--wi-muted);
  font-size: 13px;
  text-align: center;
  margin-top: -4px;
}

@media (max-width: 767px) {
  .wi-stage-form-wrap {
    width: 100%;
  }

  .wi-stage-form-card {
    padding: 20px 16px 22px;
  }

  .wi-stage-grid-2 {
    grid-template-columns: 1fr;
  }

  .wi-stage-span-2 {
    grid-column: span 1;
  }

  .wi-stage-upload {
    min-height: 150px;
    padding: 18px 14px;
  }

  .wi-stage-upload strong {
    font-size: 19px;
  }

  .wi-stage-submit {
    min-height: 52px;
    font-size: 15px;
  }
}


.wi-stage-upload-small {
  min-height: 128px;
  padding: 16px;
}

.wi-stage-upload-small .wi-stage-upload-icon {
  width: 48px;
  height: 48px;
}

.wi-stage-upload-small strong {
  font-size: clamp(17px, 2.1vw, 21px);
}

.wi-stage-upload-small small {
  font-size: 13px;
}

.wi-stage-helper {
  display: block;
  color: var(--wi-muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
}

.wi-stage-uppy-box {
  border: 1px dashed rgba(205, 149, 64, 0.32);
  background: rgba(35, 16, 19, 0.16);
  padding: 10px;
}

.wi-stage-uppy .uppy-Dashboard-inner {
  width: 100% !important;
  max-width: 100% !important;
  background: rgba(35, 16, 19, 0.22);
  border: 1px solid rgba(205, 149, 64, 0.22);
  border-radius: 2px;
}

.wi-stage-uppy .uppy-Dashboard-AddFiles {
  border: 0;
  background: transparent;
}

.wi-stage-uppy .uppy-Dashboard-AddFiles-title,
.wi-stage-uppy .uppy-Dashboard-Item-name,
.wi-stage-uppy .uppy-DashboardContent-title {
  color: var(--wi-text);
}

.wi-stage-uppy .uppy-Dashboard-AddFiles-info,
.wi-stage-uppy .uppy-Dashboard-Item-status,
.wi-stage-uppy .uppy-Dashboard-note {
  color: var(--wi-muted);
}

.wi-stage-uppy .uppy-Dashboard-browse {
  color: var(--wi-gold-soft);
  text-decoration: underline;
}

.wi-stage-uppy .uppy-StatusBar {
  background: rgba(35, 16, 19, 0.42);
  border-top: 1px solid rgba(205, 149, 64, 0.16);
}

.wi-stage-uppy-field.wi-has-error .wi-stage-uppy-box {
  border-color: var(--wi-danger);
  box-shadow: 0 0 0 2px rgba(240, 123, 123, 0.14);
}
