/* ============================================================
   Artisjus NYEF – Form styles
   Adapted from artisjus-eksz / eksz.css
   ============================================================ */

.nyef-form {
  max-width: 640px;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: transparent;
}

/* Success state: hide all form elements, show only the success message */
.nyef-form--completed > *:not([data-role="success"]) {
  display: none !important;
}
.nyef-form--completed [data-role="success"] {
  display: block !important;
}

.nyef-form-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

/* --- Rows --- */
.nyef-row {
  margin-bottom: 12px;
}

.nyef-row label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}

.nyef-row input[type="text"],
.nyef-row input[type="email"] {
  width: 100%;
  padding: 8px;
  display: block;
  box-sizing: border-box;
  height: 40px;
  margin-bottom: 0;
}

/* --- Fieldset --- */
.nyef-fieldset {
  border: 1px solid #e5e5e5;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 6px;
}

.nyef-fieldset legend {
  font-weight: 600;
  padding: 0 6px;
  margin-bottom: 0;
  border: none;
}

/* --- Radio group --- */
.nyef-radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.nyef-radio-label {
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  cursor: pointer;

  input[type="radio"] {
    margin: 0;
  }
}

.nyef-form input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #f63907;
  cursor: pointer;
}

/* --- Conditional blocks --- */
.nyef-conditional {
  margin-top: 10px;
}

/* --- Error states --- */
.nyef-error {
  border-color: #e74c3c !important;
  background: #fff6f6;
}

.nyef-error-msg {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 3px;
}

/* --- Feedback notice --- */
.nyef-notice {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.nyef-notice--ok {
  background: #f0fff3;
  border: 1px solid #c2f0cc;
}

.nyef-notice--err {
  background: #fff5f5;
  border: 1px solid #ffd7d7;
  color: #c0392b;
}

/* --- Tooltip --- */
.nyef-tooltip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #f7f7f7;
  color: #555;
  font-size: 11px;
  font-style: normal;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1;
}

.nyef-tooltip-btn:hover {
  background: #eee;
  color: #333;
}

.nyef-tooltip-text {
  display: block;
  margin: 4px 0 6px;
  padding: 8px 10px;
  background: #fdf8ed;
  border: 1px solid #e3dcc9;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #4a4a4a;
  line-height: 1.45;
}
.nyef-tooltip-text[hidden] {
  display: none;
}

/* --- Submit button --- */
.nyef-actions {
  margin-top: 16px;
}

.nyef-submit {
  background: #f63907;
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

.nyef-submit:hover {
  background: #c05621;
}

.nyef-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Success message --- */
.nyef-success-message {
  padding: 16px;
  background: #f0fff3;
  border: 1px solid #c2f0cc;
  border-radius: 6px;
  line-height: 1.6;
}

.nyef-success-message p {
  margin: 0 0 10px;
}

.nyef-success-message p:last-child {
  margin-bottom: 0;
}

/* --- Honeypot: invisible to humans --- */
.nyef-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  overflow: hidden;
  height: 0;
  width: 0;
}
