/* Figma: 4.9-瓜条中心-我要求瓜 (node 290:27238) */
.submit-request-page {
  --sr-modal-w: 700px;
  --sr-bg: #100f0f;
  --sr-surface: #201f1f;
  --sr-head-bg: rgba(40, 42, 46, 0.5);
  --sr-border: rgba(255, 255, 255, 0.05);
  --sr-border-strong: rgba(255, 255, 255, 0.1);
  --sr-text: rgba(255, 255, 255, 0.8);
  --sr-muted: rgba(255, 255, 255, 0.5);
  --sr-field-bg: rgba(255, 255, 255, 0.05);
  --sr-add-bg: rgba(26, 28, 32, 0.3);
  --sr-green: #03c75a;
  --sr-error: #ff5050;
}

.submit-request-page .sr-main {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px var(--home-gutter, 120px) 64px;
  box-sizing: border-box;
}

.submit-request-page .sr-modal {
  width: var(--sr-modal-w);
  max-width: 100%;
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  border-radius: 8px;
  overflow: hidden;
}

.submit-request-page .sr-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 6px 16px 7px;
  background: var(--sr-head-bg);
  border-bottom: 1px solid var(--sr-border);
  box-sizing: border-box;
}

.submit-request-page .sr-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: -0.5px;
  color: var(--sr-text);
}

.submit-request-page .sr-modal-close {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: transparent url("/assets/figma/svg/request-detail-web/icon-close.svg") center / 16px 16px no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

.submit-request-page .sr-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  box-sizing: border-box;
}

.submit-request-page .sr-desc {
  margin: 0;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: var(--sr-muted);
}

.submit-request-page .sr-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.submit-request-page .sr-label {
  margin: 0;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--sr-text);
}

.submit-request-page .sr-required {
  margin-left: 2px;
  color: #fe6a45;
}

.submit-request-page .sr-input {
  width: 100%;
  height: 44px;
  padding: 12px;
  border: 0;
  border-radius: 6px;
  background: var(--sr-field-bg);
  color: var(--sr-text);
  font-size: 14px;
  line-height: 20px;
  box-sizing: border-box;
}

.submit-request-page .sr-input::placeholder {
  color: var(--sr-muted);
  font-size: 12px;
}

.submit-request-page .sr-textarea {
  height: 84px;
  min-height: 84px;
  resize: vertical;
}

.submit-request-page .sr-media-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.submit-request-page .sr-media-label {
  padding: 0;
  white-space: nowrap;
}

.submit-request-page .sr-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.submit-request-page .sr-media-grid {
  display: contents;
}

.submit-request-page .sr-media-cell {
  position: relative;
  flex: 0 0 125px;
  width: 125px;
  height: 118px;
  border: 2px solid var(--sr-border-strong);
  border-radius: 4px 4px 4px 4px;
  overflow: hidden;
  background: #0f1218;
  box-sizing: border-box;
}

.submit-request-page .sr-media-cell img,
.submit-request-page .sr-media-cell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submit-request-page .sr-media-cell video + .sr-media-badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
}

.submit-request-page .sr-media-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 60px;
  background: rgba(0, 0, 0, 0.5) url("/assets/figma/svg/request-detail-web/icon-close.svg") center / 10px 10px no-repeat;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.submit-request-page .sr-media-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 125px;
  width: 125px;
  height: 118px;
  padding: 10px;
  border: 2px dashed var(--sr-border-strong);
  border-radius: 4px 4px 4px 4px;
  background: var(--sr-add-bg);
  color: var(--sr-text);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.submit-request-page .sr-media-add-icon {
  display: block;
  width: 24px;
  height: 28px;
}

.submit-request-page .sr-media-hint {
  margin: 0;
  font-size: 12px;
  line-height: normal;
  color: var(--sr-muted);
}

.submit-request-page .sr-error {
  min-height: 18px;
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--sr-error);
}

.submit-request-page .sr-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 12px 40px;
  border: 0;
  border-radius: 6px;
  background: var(--sr-green);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

@media (max-width: 800px) {
  .submit-request-page .sr-main {
    width: 100%;
    max-width: 355px;
    margin: 0 auto;
    padding: 10px var(--home-gutter) 32px;
  }

  .submit-request-page .sr-modal {
    width: 100%;
    border-radius: 8px;
  }

  .submit-request-page .sr-media-label {
    white-space: normal;
  }
}
