/* Smart Form Submission — Public Styles v2
   Designed to complement the Yegna Lijoch / Autism-registration form style */

/* ═══════════════════════════════════════════════════════════
   FORM TEMPLATE STYLES
   ═══════════════════════════════════════════════════════════ */

body {
  font-family:
    "Noto Sans Ethiopic",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #f5f5f5;
  padding: 30px 20px;
  color: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.form-container {
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-top: 7px solid #2563eb;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.form-header h1 {
  font-size: 28px;
  color: #0f172a;
  margin-bottom: 8px;
}

.form-header h2 {
  font-size: 20px;
  color: #334155;
  margin-bottom: 10px;
}

.form-header h3 {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.meta-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  background: #f8fafc;
  padding: 18px;
  border-radius: 10px;
}

.meta-info .input-group {
  flex: 1;
  min-width: 180px;
}

fieldset {
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
}

legend {
  padding: 0 10px;
  font-weight: 700;
  color: #1d4ed8;
  font-size: 15px;
}

.section-sub-title {
  margin: 20px 0 12px;
  padding-left: 10px;
  border-left: 4px solid #3b82f6;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.row-three,
.row-two {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.row-three .input-group {
  flex: 1;
  min-width: 220px;
}

.row-two .input-group {
  flex: 1;
  min-width: 250px;
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.input-group label {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.25s ease;
  background: #fff;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid transparent;
}

.radio-label:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.radio-label input {
  width: auto;
}

.declaration-text {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
  text-align: justify;
  color: #334155;
}

.english-text {
  color: #64748b;
  font-style: italic;
}

.agreement-box {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 18px;
}

.agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.agreement-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: #2563eb;
  flex-shrink: 0;
  cursor: pointer;
}

.agreement-content {
  flex: 1;
}

.signature-line {
  margin-top: 10px;
  height: 45px;
  border-bottom: 2px dashed #94a3b8;
}

.signature-note {
  margin-top: 5px;
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

.form-actions {
  text-align: center;
  margin-top: 20px;
}

.submit-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 14px 35px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.submit-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

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

/* ═══════════════════════════════════════════════════════════
   PLUGIN-SPECIFIC STYLES
   ═══════════════════════════════════════════════════════════ */

/* Extra-fields block rendered above the <form> */
.sfs-extra-fields-block {
  background: #f0f6ff;
  border: 1px solid #c5d8f7;
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.sfs-extra-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #1d4ed8;
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 4px solid #2563eb;
}

.sfs-extra-field {
  margin-bottom: 14px;
}

.sfs-extra-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.sfs-req {
  color: #d63638;
  margin-left: 3px;
}

.sfs-extra-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.sfs-extra-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* Wrapper */
.sfs-wrapper {
  position: relative;
}

/* Messages */
.sfs-messages {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
}

.sfs-messages.sfs-ok {
  background: #d1e7dd;
  border: 1px solid #a3cfbb;
  color: #0a3622;
}

.sfs-messages.sfs-err {
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  color: #58151c;
}

/* Submission badge */
.sfs-submission-badge {
  margin-top: 14px;
  padding: 10px 16px;
  background: #eff6ff;
  border-left: 5px solid #2563eb;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
}

.sfs-badge-label {
  font-weight: 700;
  color: #1e3a8a;
}

.sfs-submission-badge code {
  font-weight: 700;
  font-size: 13px;
  color: #2563eb;
  background: none;
  border: none;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .form-container {
    padding: 20px;
  }

  .meta-info {
    flex-direction: column;
  }

  .row-three,
  .row-two {
    flex-direction: column;
  }

  .radio-group {
    flex-direction: column;
  }

  .form-header h1 {
    font-size: 22px;
  }

  .form-header h2 {
    font-size: 17px;
  }
}

/* ═══════════════════════════════════════════════════════════
   PRINT STYLE
   ═══════════════════════════════════════════════════════════ */

@media print {
  body {
    background: white;
    padding: 0;
  }

  .form-container {
    box-shadow: none;
    border: none;
  }

  .submit-btn {
    display: none;
  }

  .sfs-messages {
    display: none;
  }

  .sfs-submission-badge {
    display: none;
  }
}
