.shell,
.successShell {
  position: relative;
  min-height: var(--app-viewport-height, 100dvh);
  box-sizing: border-box;
  overflow: hidden;
  color: #21191c;
  background:
    radial-gradient(circle at 88% 4%, rgba(246, 87, 160, 0.14), transparent 28%),
    radial-gradient(circle at 4% 66%, rgba(219, 181, 137, 0.13), transparent 30%),
    linear-gradient(180deg, #f8f6f4 0%, #fffafa 48%, #ffffff 100%);
}

.shell {
  padding:
    calc(var(--app-safe-top, 0px) + 18px)
    calc(var(--app-safe-right, 0px) + clamp(18px, 5vw, 28px))
    calc(var(--app-safe-bottom, 0px) + 28px)
    calc(var(--app-safe-left, 0px) + clamp(18px, 5vw, 28px));
}

.glowOne,
.glowTwo,
.successGlow {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(3px);
}

.glowOne {
  top: -74px;
  right: -88px;
  width: 210px;
  height: 210px;
  background: rgba(246, 87, 160, 0.09);
}

.glowTwo {
  bottom: 12%;
  left: -110px;
  width: 220px;
  height: 220px;
  background: rgba(208, 164, 112, 0.08);
}

.header,
.form {
  position: relative;
  z-index: 1;
}

.header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 4px 0 22px;
}

.headingBlock {
  min-width: 0;
  padding-top: 2px;
}

.successEyebrow {
  margin: 0 0 6px;
  color: #d74382;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.title,
.successTitle {
  margin: 0;
  color: #21191c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 7vw, 36px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.subtitle {
  max-width: 390px;
  margin: 10px 0 0;
  color: #75666c;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding: clamp(18px, 4.8vw, 24px);
  border: 1px solid rgba(45, 31, 36, 0.065);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 52px rgba(70, 48, 55, 0.09);
  backdrop-filter: blur(18px);
}

.fieldset,
.fieldGroup {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fieldGroup {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fieldLabel {
  margin: 0 0 10px;
  color: #32272b;
  font-size: 14px;
  font-weight: 790;
  line-height: 1.25;
}

h2.fieldLabel {
  margin-bottom: 3px;
}

.fieldLabel span {
  margin-left: 4px;
  color: #9a8b90;
  font-size: 11px;
  font-weight: 680;
  text-transform: uppercase;
}

.categoryGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.categoryCard {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ebe3e5;
  border-radius: 16px;
  background: #fbf9f8;
  color: #74666b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.categoryCard:hover {
  border-color: rgba(246, 87, 160, 0.28);
  transform: translateY(-1px);
}

.categoryCard:has(input:focus-visible) {
  outline: 2px solid #f657a0;
  outline-offset: 2px;
}

.categoryCardSelected {
  border-color: rgba(246, 87, 160, 0.62);
  background: linear-gradient(135deg, #fff6fa, #fffaf7);
  color: #d74382;
  box-shadow: 0 7px 18px rgba(246, 87, 160, 0.1);
}

.categoryCheck {
  margin-left: auto;
}

.textareaFrame {
  position: relative;
}

.textarea {
  display: block;
  width: 100%;
  min-height: 142px;
  resize: vertical;
  box-sizing: border-box;
  padding: 14px 14px 36px;
  border: 1px solid #e9e0e3;
  border-radius: 19px;
  outline: none;
  background: #fbf9f8;
  color: #2f2529;
  font: inherit;
  font-size: 15px;
  line-height: 1.52;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.textarea::placeholder {
  color: #aaa0a3;
}

.textarea:focus {
  border-color: rgba(246, 87, 160, 0.62);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(246, 87, 160, 0.08);
}

.characterCount {
  position: absolute;
  right: 13px;
  bottom: 11px;
  color: #9b8d92;
  font-size: 11px;
  font-weight: 680;
}

.imageHeading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.fieldHint {
  margin: 0;
  color: #998b90;
  font-size: 11px;
  font-weight: 570;
}

.contentHint {
  margin: -6px 0 0;
  color: #998b90;
  font-size: 11px;
  font-weight: 570;
  line-height: 1.4;
}

.imageCount {
  flex: 0 0 auto;
  color: #8d7c82;
  font-size: 12px;
  font-weight: 760;
}

.imageGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.imagePreview,
.addImageButton {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 17px;
}

.imagePreview {
  background: #eee8e9;
  box-shadow: inset 0 0 0 1px rgba(50, 35, 41, 0.06);
}

.previewImage {
  object-fit: cover;
}

.removeImageButton {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(28, 21, 24, 0.72);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.removeImageButton:focus-visible,
.addImageButton:has(input:focus-visible) {
  outline: 2px solid #f657a0;
  outline-offset: 2px;
}

.addImageButton {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
  border: 1px dashed rgba(215, 67, 130, 0.35);
  background: linear-gradient(145deg, #fff8fb, #faf7f5);
  color: #d74382;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.addImageButton:hover {
  border-color: rgba(215, 67, 130, 0.68);
  background: #fff4f9;
  transform: translateY(-1px);
}

.addImageButtonBusy {
  cursor: wait;
  opacity: 0.68;
}

.statusSlot {
  min-height: 18px;
  margin: -5px 0 -7px;
}

.errorMessage {
  margin: 0;
  color: #c43e55;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.primaryButton {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-sizing: border-box;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(100deg, #f84d96 0%, #ff6ea8 55%, #f28b72 120%);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 820;
  box-shadow: 0 13px 28px rgba(248, 77, 150, 0.27);
  transition: filter 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.primaryButton:hover:not(:disabled) {
  filter: brightness(1.03);
  box-shadow: 0 16px 32px rgba(248, 77, 150, 0.34);
  transform: translateY(-1px);
}

.primaryButton:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.primaryButton:focus-visible {
  outline: 2px solid #f657a0;
  outline-offset: 3px;
}

.primaryButton:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

.visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.successShell {
  display: grid;
  place-items: center;
  padding:
    calc(var(--app-safe-top, 0px) + 28px)
    calc(var(--app-safe-right, 0px) + 24px)
    calc(var(--app-safe-bottom, 0px) + 28px)
    calc(var(--app-safe-left, 0px) + 24px);
}

.successGlow {
  width: 330px;
  height: 330px;
  background: rgba(246, 87, 160, 0.12);
  filter: blur(12px);
}

.successCard {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  padding: clamp(28px, 8vw, 42px) clamp(22px, 7vw, 36px);
  border: 1px solid rgba(45, 31, 36, 0.07);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  box-shadow: 0 26px 70px rgba(70, 48, 55, 0.12);
  backdrop-filter: blur(20px);
}

.successIcon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff0f7, #fff8f1);
  color: #e34d8b;
  box-shadow: 0 12px 28px rgba(246, 87, 160, 0.14);
}

.successCopy {
  margin: 14px auto 24px;
  color: #76666c;
  font-size: 14px;
  line-height: 1.55;
}

.feedbackIdBlock {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 24px;
  padding: 13px 16px;
  border-radius: 16px;
  background: #faf6f7;
  color: #8f7f85;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feedbackIdBlock strong {
  overflow-wrap: anywhere;
  color: #45373c;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: none;
}

@media (max-width: 350px) {
  .shell {
    padding-right: calc(var(--app-safe-right, 0px) + 14px);
    padding-left: calc(var(--app-safe-left, 0px) + 14px);
  }

  .form {
    padding: 16px;
    border-radius: 24px;
  }

  .categoryGrid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .headingBlock,
  .form,
  .successCard {
    animation: reveal 0.38s ease both;
  }

  .form {
    animation-delay: 60ms;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
