.legacy-patterns-container {
  display: grid;
  grid-template-columns: minmax(0, 700px) auto;
  gap: 1rem 1.5rem;
  margin: 2rem 0;
  align-items: end;
}

.submit-box {
  max-width: 700px;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(63, 94, 138, 0.35);
  background: rgba(255,255,255,0.03);
}

.submit-box label {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.submit-box label:first-child {
  margin-top: 0;
}

.submit-box label span {
  color: #b54a3a;
}

.submit-box label .optional {
  color: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.65;
}

.submit-helper {
  margin: 0.8rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  opacity: 0.72;
}

.tip-input,
.tip-textarea {

  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 0.95rem;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.tip-textarea {
  min-height: 7rem;
  resize: vertical;
}

.tip-input:focus,
.tip-textarea:focus {
  outline: 2px solid #6FA8FF;
  outline-offset: 1px;
  background: rgba(255,255,255,0.06);
}

.tip-submit-btn {
  margin-top: 0;
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.2rem;
  background: #3F5E8A;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.tip-submit-btn:hover {

  background: #5377AA;
  transform: translateY(-1px);
}

@media (max-width: 600px) {

  .legacy-patterns-container {
    display: block;
  }

  .tip-submit-btn {
    margin-top: 0.5rem;
    width: 100%;
  }
}

