.demo-form-wrap {
  margin: 2.25rem auto 0;
  max-width: 940px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(8, 14, 26, 0.84);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  padding: 1.5rem;
}

.demo-form-wrap h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #ffffff;
}

.demo-form-wrap p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.demo-form-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.demo-field--full {
  grid-column: 1 / -1;
}

.demo-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.demo-field input,
.demo-field select,
.demo-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(17, 24, 39, 0.72);
  color: #ffffff;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  outline: none;
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
  border-color: #13d9b7;
  box-shadow: 0 0 0 3px rgba(19, 217, 183, 0.2);
}

.demo-field textarea {
  min-height: 96px;
  resize: vertical;
}

.demo-phone {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem;
}

.demo-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.demo-submit {
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #13d9b7 0%, #05b89a 100%);
  color: #05261f;
  font-weight: 800;
  letter-spacing: 0.015em;
  padding: 0.78rem 1.2rem;
  cursor: pointer;
}

.demo-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.demo-feedback {
  min-height: 1.15rem;
  font-size: 0.9rem;
}

.demo-feedback.ok {
  color: #8fffe8;
}

.demo-feedback.error {
  color: #ff8f9c;
}

.demo-spinner {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(5, 38, 31, 0.3);
  border-top-color: #05261f;
  border-radius: 50%;
  animation: demo-spin 0.9s linear infinite;
  margin-right: 0.4rem;
  vertical-align: -0.12rem;
}

@keyframes demo-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 840px) {
  .demo-form-grid {
    grid-template-columns: 1fr;
  }

  .demo-phone {
    grid-template-columns: 1fr;
  }
}

