:root {
  color-scheme: light dark;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0;
  background-color: #0c111f;
  color: #f2f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#app {
  width: min(420px, 92vw);
  background: rgba(20, 25, 39, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.app-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  text-align: center;
}

.app-subtitle {
  margin: 0 0 24px;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0.7;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.9rem;
  opacity: 0.85;
}

.form-control {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 14px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.form-control:focus {
  outline: 2px solid rgba(64, 146, 255, 0.4);
}

.form-control:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-group.invalid .form-control {
  border-color: rgba(255, 107, 107, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.18);
}

.form-group textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.field-error {
  min-height: 18px;
  font-size: 0.8rem;
  color: #ffb0b0;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.option input {
  display: none;
}

.option span {
  font-size: 0.95rem;
}

.option.selected {
  border-color: rgba(100, 168, 255, 0.9);
  background: rgba(100, 168, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(100, 168, 255, 0.2);
}

.form-group.invalid .inline-options .option {
  border-color: rgba(255, 107, 107, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.45);
}

.summary-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.preview-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.preview-list li span:first-child {
  opacity: 0.7;
}

.status {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.status-info {
  background: rgba(64, 146, 255, 0.12);
  color: #9bc4ff;
}

.status-success {
  background: rgba(46, 204, 113, 0.15);
  color: #aef5c9;
}

.status-error {
  background: rgba(255, 99, 132, 0.15);
  color: #ffb4c2;
}

.hidden {
  display: none !important;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 420px) {
  #app {
    padding: 20px 18px;
  }

  .grid-two {
    gap: 12px;
  }
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #4f9dff, #647dff);
  color: #0c111f;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

