/* Infomac Stage – Frontend Form Styles */

.isc-wrap {
  max-width: 820px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.isc-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 20px;
}

.isc-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.isc-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.isc-section-header h3 {
  margin: 0 0 2px;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
}
.isc-section-header p {
  margin: 0;
  font-size: 13px;
  color: #888;
}

.isc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.isc-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.isc-field:last-child { margin-bottom: 0; }

.isc-field label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.req { color: #d32f2f; margin-left: 2px; }

.isc-field input[type="text"],
.isc-field input[type="email"],
.isc-field input[type="tel"],
.isc-field input[type="date"],
.isc-field select,
.isc-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fafafa;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  font-family: inherit;
}
.isc-field input:focus,
.isc-field select:focus,
.isc-field textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26,26,26,.08);
  background: #fff;
}
.isc-field textarea { resize: vertical; min-height: 100px; }
.isc-hint { font-size: 12px; color: #aaa; margin-top: 4px; }

/* Checkboxes */
.isc-checkgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.isc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 20px;
  transition: border-color .2s, background .2s;
}
.isc-check:hover { border-color: #1a1a1a; background: #f8f8f8; }
.isc-check input { accent-color: #1a1a1a; }

/* Upload zones */
.isc-upload-zone {
  position: relative;
  border: 2px dashed #ddd;
  border-radius: 8px;
  transition: border-color .2s, background .2s;
  cursor: pointer;
  overflow: hidden;
}
.isc-upload-zone:hover { border-color: #1a1a1a; background: #fafafa; }
.isc-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.isc-upload-ui {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 16px;
  text-align: center;
  color: #888;
}
.isc-upload-label { font-size: 14px; font-weight: 500; color: #444; }
.isc-upload-sub { font-size: 12px; color: #aaa; }
.isc-upload-sub u { color: #1a1a1a; cursor: pointer; }
.isc-upload-file-name { font-size: 12px; color: #2e7d32; font-weight: 600; margin-top: 4px; }

/* RGPD */
.isc-section-last { background: #fafafa; }
.isc-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  margin-bottom: 20px;
  line-height: 1.5;
}
.isc-rgpd input { margin-top: 2px; accent-color: #1a1a1a; flex-shrink: 0; }
.isc-rgpd a { color: #1a1a1a; }

/* Submit */
.isc-submit {
  display: block;
  width: 100%;
  padding: 15px 24px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  letter-spacing: .3px;
}
.isc-submit:hover { background: #333; }
.isc-submit:active { transform: scale(.99); }
.isc-submit:disabled { background: #aaa; cursor: not-allowed; }

/* Error */
.isc-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* Success */
.isc-success { text-align: center; padding: 60px 32px; }
.isc-success-inner { max-width: 440px; margin: 0 auto; }
.isc-success-inner h3 { font-size: 24px; color: #1a1a1a; margin: 16px 0 8px; }
.isc-success-inner p { font-size: 15px; color: #555; line-height: 1.7; }

/* Responsive */
@media (max-width: 600px) {
  .isc-section { padding: 20px 16px; }
  .isc-grid-2 { grid-template-columns: 1fr; }
  .isc-checkgroup { flex-direction: column; }
}
