/* ==========================================================================
   QRMagic — type pages (WiFi / vCard / email / phone).

   Layered on top of style.css and brand-kit.css. Only the extra form controls
   needed by the type pages live here; the layout itself is unchanged.
   ========================================================================== */

.type-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.type-form .field {
  margin: 0;
  grid-column: 1 / -1;
}
.type-form .field-half { grid-column: span 1; }

.type-form .type-input {
  width: 100%;
  height: 50px;
  padding: 0 0.9rem;
  font-family: inherit;
  /* 16px on touch keeps iOS Safari from zooming on focus */
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
textarea.type-input {
  height: auto;
  padding: 0.65rem 0.9rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 84px;
}
.type-input::placeholder { color: #63708b; }
.type-input:focus {
  outline: none;
  border-color: rgba(42, 106, 168, 0.6);
  background: rgba(42, 106, 168, 0.04);
  box-shadow: var(--ring);
}
select.type-input { cursor: pointer; padding-right: 0.5rem; }

.type-check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  cursor: pointer;
  min-height: 44px;
}
.type-check {
  flex: none;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}

.type-form .btn-primary {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0.15rem;
}

.type-form .error { grid-column: 1 / -1; margin: 0; }

/* --- preview card on type pages ----------------------------------------- */

.type-page .preview-card { padding: 1.15rem; }

/* --- supporting content ------------------------------------------------- */

.type-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.type-note {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  margin: 0 0 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 253, 247, 0.7);
  font-size: 0.9rem;
  color: var(--text-dim);
}
.note-icon { flex: none; font-size: 1.05rem; line-height: 1.4; }
.note-body { min-width: 0; }
.cp-hint code,
.type-form code { font-size: 0.85em; }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 720px) {
  .type-form { grid-template-columns: 1fr; }
  .field-half { grid-column: 1 / -1; }
  .type-form .type-input { font-size: 1rem; }
  .steps, .grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .steps, .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (hover: none), (pointer: coarse) {
  .type-input { min-height: 46px; }
  .type-check-row { min-height: 46px; }
}
