/* iNeurolog Patient Form — form.css */

.inf-wrap {
  max-width: 560px;
  margin: 0 auto;
  font-family: inherit;
}

/* ── Form fields ───────────────────────────────────────────────────── */
.inf-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.inf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inf-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  letter-spacing: 0.01em;
}

.inf-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d0d5e0;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
  appearance: none;
}

.inf-input:focus {
  outline: none;
  border-color: #3a6ed4;
  box-shadow: 0 0 0 3px rgba(58,110,212,0.12);
}

.inf-input.inf-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.10);
}

/* ── Drop zone ─────────────────────────────────────────────────────── */
.inf-drop-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  border: 2px dashed #c0cadc;
  border-radius: 10px;
  background: #f7f9fc;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  text-align: center;
}

.inf-drop-zone:hover,
.inf-drop-zone:focus,
.inf-drop-zone.inf-drag-over {
  border-color: #3a6ed4;
  background: #edf2fb;
  outline: none;
}

.inf-upload-icon {
  color: #3a6ed4;
  opacity: 0.75;
}

.inf-drop-text {
  margin: 0;
  font-size: 14px;
  color: #444;
}

.inf-drop-link {
  color: #3a6ed4;
  text-decoration: underline;
  cursor: pointer;
}

.inf-drop-hint {
  margin: 0;
  font-size: 12px;
  color: #8a93a8;
}

.inf-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── File list ─────────────────────────────────────────────────────── */
.inf-file-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.inf-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: #edf2fb;
  border-radius: 6px;
  font-size: 13px;
  color: #1a1a2e;
}

.inf-file-list li .inf-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80%;
}

.inf-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  font-size: 16px;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
}
.inf-file-remove:hover { color: #c0392b; }

/* ── GDPR checkbox ─────────────────────────────────────────────────── */
.inf-gdpr {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inf-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  line-height: 1.5;
}

.inf-check-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #3a6ed4;
  cursor: pointer;
}

.inf-check-label a {
  color: #3a6ed4;
}

/* ── Error messages ────────────────────────────────────────────────── */
.inf-err {
  font-size: 12px;
  color: #c0392b;
  min-height: 16px;
  display: block;
}

/* ── Submit button ─────────────────────────────────────────────────── */
.inf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 32px;
  background: #3a6ed4;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  align-self: flex-start;
}

.inf-submit:hover  { background: #2d59b5; }
.inf-submit:active { transform: scale(0.98); }
.inf-submit:disabled {
  background: #a0b4d8;
  cursor: not-allowed;
  transform: none;
}

/* ── Spinner ───────────────────────────────────────────────────────── */
.inf-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: inf-spin 0.7s linear infinite;
}

.inf-submit.inf-loading .inf-spinner { display: inline-block; }
.inf-submit.inf-loading .inf-btn-text { opacity: 0.7; }

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

/* ── Success state ─────────────────────────────────────────────────── */
.inf-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
}

.inf-success svg {
  color: #27ae60;
}

.inf-success h3 {
  margin: 0;
  font-size: 22px;
  color: #1a1a2e;
}

.inf-success p {
  margin: 0;
  color: #555;
  font-size: 15px;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .inf-drop-zone { padding: 20px 14px; }
  .inf-submit { width: 100%; justify-content: center; }
}
