/* ============================================
   PRIJAVA NA E-NOVICE — MODAL
   ============================================ */

.novice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
}
.novice-overlay.open { display: flex; }

.novice-modal {
  background: #fff;
  border-radius: 16px;
  padding: 48px 44px;
  width: 100%;
  max-width: 480px;
  margin: 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.novice-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 4px 8px;
  font-family: var(--font);
}
.novice-modal-close:hover { color: var(--text); }

.novice-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  text-align: center;
  margin-bottom: 8px;
}

.novice-modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 36px;
  line-height: 1.5;
}

.novice-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.novice-field-desc {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.45;
}

/* Soseska hint */
.novice-soseska-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0;
  margin-bottom: 28px;
  min-height: 18px;
}

/* Consent checkbox */
.novice-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
}
.novice-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}
.novice-consent span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Soseska toggle */
.novice-toggle-wrap {
  background: rgba(28, 79, 74, 0.07);
  border-radius: 40px;
  display: flex;
  padding: 4px;
  margin-bottom: 10px;
  gap: 2px;
}
.novice-toggle-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: 40px;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.novice-toggle-btn.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(28, 79, 74, 0.25);
}

/* Email input */
.novice-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  margin-bottom: 20px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.novice-input:focus { border-color: var(--blue); }
.novice-input::placeholder { color: var(--text-muted); }
.novice-input.error { border-color: #e53e3e; }

/* Submit */
.novice-submit {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  display: block;
  border: none;
  margin-top: 8px;
}
.novice-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Messages */
.novice-msg {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  display: none;
  line-height: 1.5;
}
.novice-msg.success { color: var(--blue); }
.novice-msg.error { color: #e53e3e; }

@media (max-width: 540px) {
  .novice-modal { padding: 36px 24px; margin: 16px; }
  .novice-modal-title { font-size: 19px; }
}
