/* Machine help page (direct link from the vending machines). */
.stuck-cat {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 0 28px;
  opacity: 0.92;
}

.stuck-steps {
  margin-top: 40px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.stuck-steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(246, 242, 235, 0.86);
}

.stuck-steps span {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(141, 122, 232, 0.54);
  border-radius: 50%;
  font-size: 0.9rem;
  color: rgba(246, 242, 235, 0.72);
}

.stuck-form {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 22px;
}

.stuck-field {
  display: grid;
  gap: 8px;
}

.stuck-field label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.stuck-optional {
  letter-spacing: 0.06em;
  text-transform: none;
  opacity: 0.7;
}

.stuck-field input[type="text"],
.stuck-field input[type="email"],
.stuck-field select,
.stuck-field textarea {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem; /* 16px keeps iPhones from zooming into the field */
  transition: border-color 0.25s ease;
}

.stuck-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%), linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.stuck-field select option { background: var(--surface); color: var(--text-primary); }

.stuck-field textarea { resize: vertical; min-height: 110px; }

.stuck-field input:focus,
.stuck-field select:focus,
.stuck-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.stuck-field input[type="file"] {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stuck-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.stuck-submit {
  margin-top: 8px;
  width: 100%;
  cursor: pointer;
}

.stuck-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.stuck-status {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(209, 154, 234, 0.95);
}

.stuck-status.is-error { color: #d6a0a8; }

.stuck-alt {
  margin-top: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  text-align: center;
  color: var(--text-secondary);
}

.stuck-alt a { color: var(--accent); }

/* The grid/flex display rules above would otherwise override the hidden attribute. */
.stuck-form [hidden] { display: none; }

/* Photo upload area */
.stuck-field .stuck-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  border: 1px dashed rgba(194, 132, 222, 0.5);
  border-radius: 18px;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.stuck-drop:hover,
.stuck-drop:focus-within {
  border-color: rgba(210, 151, 239, 0.86);
  background: rgba(141, 122, 232, 0.035);
}

/* The real input stays in the page (and focusable) but is visually hidden. */
.stuck-drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.stuck-drop-icon svg {
  width: 34px;
  height: 34px;
  stroke: #cd76e8;
  fill: none;
}

.stuck-drop-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.stuck-drop-help {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.stuck-drop-preview {
  margin-top: 8px;
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  object-fit: contain;
}
