:root {
  --notec-primary: #00829b;
  --notec-primary-2: #00a5b5;
  --notec-dark: #2d2d2d;
  --notec-text: #5b6470;
  --notec-border: #e5e7eb;
  --notec-shadow: 0 30px 80px rgba(0,0,0,.18);
  --notec-radius: 24px;
}
html.notec-lock-scroll,
html.notec-lock-scroll body { overflow: hidden !important; }
#nexweb-otec-modal-root, #nexweb-otec-modal-root * { box-sizing: border-box; }
#nexweb-otec-modal-root { position: relative; z-index: 999999; }
.notec-wrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.notec-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.notec-modal {
  position: relative; width: 100%; max-width: 540px; max-height: 90vh; overflow: auto;
  background: #fff; border-radius: var(--notec-radius); box-shadow: var(--notec-shadow);
  padding: 24px 24px 28px;
  animation: notecIn .25s ease;
}
@keyframes notecIn { from { opacity: 0; transform: scale(.97) translateY(8px);} to { opacity: 1; transform: scale(1) translateY(0);} }
.notec-close, .notec-back {
  position: absolute; top: 14px; width: 40px; height: 40px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #6b7280; font-size: 24px; line-height: 1;
}
.notec-close { right: 14px; }
.notec-back { left: 14px; font-size: 20px; }
.notec-close:hover, .notec-back:hover { background: #f3f4f6; }
.notec-progress { display: flex; gap: 8px; padding: 8px 32px 0; margin-bottom: 22px; }
.notec-choice, .notec-btn, .notec-close, .notec-back { -webkit-tap-highlight-color: transparent; }
.notec-choice:focus, .notec-btn:focus, .notec-close:focus, .notec-back:focus { outline: none; }
.notec-choice:active { transform: translateY(0); }
.notec-choice[disabled] { pointer-events: none; }

.notec-progress__bar { flex: 1; height: 6px; border-radius: 999px; background: #e5e7eb; }
.notec-progress__bar.is-complete { background: var(--notec-primary); }
.notec-progress__bar.is-current { background: var(--notec-primary-2); }
.notec-body { padding-top: 20px; }
.notec-center { text-align: center; }
.notec-icon {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: #fff;
}
.notec-icon--brand { background: linear-gradient(135deg, var(--notec-primary), var(--notec-primary-2)); }
.notec-icon--success { background: linear-gradient(135deg, #10b981, #16a34a); }
.notec-icon--muted { background: linear-gradient(135deg, #9ca3af, #6b7280); }
.notec-title, .notec-subtitle { margin: 0 0 10px; color: var(--notec-dark); font-weight: 700; line-height: 1.18; }
.notec-title { font-size: clamp(1.7rem, 2vw, 2rem); }
.notec-subtitle { font-size: clamp(1.35rem, 1.9vw, 1.7rem); }
.notec-text { margin: 0 0 24px; color: var(--notec-text); font-size: 1rem; line-height: 1.6; }
.notec-text--compact { margin-bottom: 20px; }
.notec-text--large { font-size: 1.1rem; }
.notec-step { margin-top: 12px; }
.notec-choices { display: grid; gap: 12px; }
.notec-choice {
  width: 100%; border: 2px solid #e5e7eb; background: #fff; color: #374151; cursor: pointer;
  border-radius: 16px; padding: 16px 18px; text-align: left; font-size: 1rem; font-weight: 600;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.notec-choice:hover { border-color: var(--notec-primary-2); background: rgba(0,165,181,.07); color: var(--notec-dark); }
.notec-choice.is-selected { border-color: var(--notec-primary); background: var(--notec-primary); color: #fff; box-shadow: 0 16px 30px rgba(0,130,155,.22); }
.notec-form { display: flex; flex-wrap: wrap; gap: 16px; }
.notec-field { width: 100%; }
.notec-field--half { width: calc(50% - 8px); }
.notec-label { display: block; margin-bottom: 8px; color: var(--notec-dark); font-size: .95rem; font-weight: 600; }
.notec-input {
  width: 100%; min-height: 50px; border: 2px solid var(--notec-border); border-radius: 14px; padding: 12px 14px;
  font: inherit; color: var(--notec-dark); background: #fff;
}
.notec-input:focus { outline: none; border-color: var(--notec-primary); box-shadow: 0 0 0 4px rgba(0,130,155,.12); }
.notec-input.has-error { border-color: #dc2626; }
.notec-error { margin: 8px 0 0; color: #dc2626; font-size: .88rem; }
.notec-error--submit { width: 100%; margin-top: 0; }
.notec-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 14px 22px; border-radius: 16px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.notec-btn[disabled] { opacity: .7; cursor: not-allowed; }
.notec-btn--block { width: 100%; }
.notec-btn--primary { background: var(--notec-primary); color: #fff; }
.notec-btn--primary:hover { background: var(--notec-primary-2); }
.notec-btn--secondary { background: #fff; border-color: #d1d5db; color: var(--notec-dark); }
.notec-btn--secondary:hover { background: #f9fafb; }
@media (max-width: 640px) {
  .notec-wrap { padding: 12px; align-items: flex-start; }
  .notec-modal { max-width: 100%; max-height: calc(100vh - 24px); border-radius: 20px; padding: 18px 16px 20px; }
  .notec-progress { padding: 8px 28px 0; margin-bottom: 18px; }
  .notec-body { padding-top: 18px; }
  .notec-field--half { width: 100%; }
  .notec-choice { padding: 15px 14px; }
  .notec-btn { min-height: 50px; }
}
