:root{
  --efb-primary:#040087;
  --efb-border:#e6e8f0;
  --efb-text:#0b1020;
  --efb-muted:#667085;
  --efb-bg:#f6f7ff;
  --efb-card:#ffffff;
  --efb-shadow:0 14px 40px rgba(2,6,23,.10);
  --efb-shadow-soft:0 8px 18px rgba(2,6,23,.06);
  --efb-ring:0 0 0 4px rgba(4,0,135,.14);
}

.efb-wrap{
  background: transparent;
  padding: 28px 12px;
}

.efb-card{
  max-width: 980px;
  margin: 0 auto;
  background: var(--efb-card);
  border: 1px solid rgba(4,0,135,.10);
  border-radius: 16px;
  box-shadow: var(--efb-shadow);
  padding: 22px 22px 16px;
}

.efb-header{
  display:flex;
  justify-content:center;
  margin-top: 6px;
  margin-bottom: 8px;
}

.efb-logo{
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.efb-title{
  margin: 6px 0 8px;
  font-size: 20px;
  letter-spacing: .4px;
  color: var(--efb-text);
  text-transform: uppercase;
}

.efb-subtitle{
  margin: 0 0 14px;
  color: var(--efb-muted);
  font-size: 13px;
  line-height: 1.4;
}

.efb-form{
  margin-top: 10px;
}

.efb-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.efb-label{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

.efb-label-text{
  font-size: 12px;
  color: var(--efb-muted);
  font-weight: 700;
}

.efb-input{
  border: 1px solid var(--efb-border);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
  box-shadow: 0 1px 0 rgba(2,6,23,.02);
}
.efb-input::placeholder{
  color: rgba(102,112,133,.75);
}
.efb-input:focus{
  border-color: rgba(4,0,135,.55);
  box-shadow: var(--efb-ring);
}

.efb-q{
  border: 0;
  padding: 10px 0 12px;
  margin: 0;
}

.efb-q + .efb-q{
  border-top: 1px solid var(--efb-border);
}

.efb-q-title{
  font-size: 14px;
  color: var(--efb-text);
  font-weight: 700;
  margin-bottom: 10px;
}

.efb-q-num{
  margin-right: 6px;
}

.efb-scale{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  justify-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.efb-choice{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 4px;
  cursor:pointer;
  user-select:none;
  width: 100%;
  padding: 8px 8px 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.efb-choice:hover{
  transform: translateY(-1px);
  box-shadow: var(--efb-shadow-soft);
  background: rgba(4,0,135,.03);
}

.efb-radio{
  position: static;
  opacity: 1;
  pointer-events: auto;
  width: 14px;
  height: 14px;
  margin: 0 0 2px;
  accent-color: var(--efb-primary);
}

.efb-choice-emoji{
  width: 34px;
  height: 34px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.efb-choice-emoji img{
  width: 34px;
  height: 34px;
}

.efb-choice-label{
  font-size: 12px;
  color: var(--efb-muted);
  font-weight: 600;
}

.efb-choice:has(input:checked){
  border-color: rgba(4,0,135,.55);
  background: rgba(4,0,135,.06);
  box-shadow: var(--efb-shadow-soft);
}

.efb-textarea{
  width: 100%;
  border: 1px solid var(--efb-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  min-height: 120px;
  outline:none;
  background:#fff;
}
.efb-textarea:focus{
  border-color: rgba(4,0,135,.55);
  box-shadow: var(--efb-ring);
}

.efb-counter{
  margin-top: 6px;
  color: var(--efb-muted);
  font-size: 12px;
}

.efb-actions{
  display:flex;
  justify-content:flex-end;
  margin-top: 12px;
}

.efb-submit{
  background: var(--efb-primary);
  color:#fff;
  border:0;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor:pointer;
  box-shadow: 0 12px 22px rgba(4,0,135,.22);
  transition: transform .08s ease, box-shadow .18s ease, background .18s ease;
}
.efb-wrap .efb-submit,
.efb-wrap button.efb-submit{
  background-color: var(--efb-primary) !important;
  color: #fff !important;
  border: 0 !important;
}
.efb-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(4,0,135,.26);
}
.efb-submit:active{
  transform: translateY(0px);
  box-shadow: 0 10px 18px rgba(4,0,135,.20);
}
.efb-submit:disabled{
  opacity:.6;
  cursor:not-allowed;
}

.efb-message{
  margin-top: 10px;
  font-size: 13px;
  min-height: 18px;
}
.efb-message.efb-ok{ color: #065f46; }
.efb-message.efb-err{ color: #b91c1c; }

.efb-field-error{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #b91c1c;
  display: none;
}

.efb-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}
.efb-modal.efb-open{
  display: block;
}
.efb-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.48);
  backdrop-filter: blur(6px);
}
.efb-modal-card{
  position: relative;
  width: min(420px, calc(100% - 24px));
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(4,0,135,.12);
  box-shadow: 0 24px 70px rgba(2,6,23,.22);
  padding: 18px 16px 14px;
  text-align: center;
  animation: efb-pop .18s ease-out;
}
.efb-modal-icon{
  width: 64px;
  height: 64px;
  margin: 2px auto 8px;
}
.efb-modal-title{
  font-weight: 900;
  font-size: 18px;
  color: var(--efb-text);
}
.efb-modal-text{
  margin-top: 6px;
  color: var(--efb-muted);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.35;
}
.efb-modal-actions{
  margin-top: 14px;
  display:flex;
  justify-content:center;
}
.efb-modal-btn{
  background: var(--efb-primary);
  color:#fff;
  border:0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(4,0,135,.22);
}

.efb-check{
  width: 64px;
  height: 64px;
}
.efb-check-circle{
  stroke: rgba(4,0,135,.22);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
}
.efb-check-mark{
  stroke: #22c55e;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
.efb-modal.efb-open .efb-check-circle{
  animation: efb-stroke .55s cubic-bezier(.65, 0, .45, 1) forwards;
}
.efb-modal.efb-open .efb-check-mark{
  animation: efb-stroke .38s cubic-bezier(.65, 0, .45, 1) .18s forwards;
}

@keyframes efb-stroke{
  to{ stroke-dashoffset: 0; }
}
@keyframes efb-pop{
  from{ transform: translateY(6px) scale(.98); opacity: 0; }
  to{ transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 640px){
  .efb-wrap{ padding: 18px 10px; }
  .efb-card{ padding: 16px 12px 12px; }
  .efb-row{ grid-template-columns: 1fr; }
  .efb-q-title{ font-size: 13px; line-height: 1.25; }
  .efb-scale{
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    max-width: 100%;
    width: 100%;
  }
  .efb-choice{
    padding: 5px 4px 3px;
    border-radius: 12px;
    min-width: 0;
  }
  .efb-choice:hover{
    transform: none;
    box-shadow: none;
    background: transparent;
  }
  .efb-radio{
    width: 12px;
    height: 12px;
    margin-bottom: 1px;
  }
  .efb-choice-emoji,
  .efb-choice-emoji img{
    width: 22px;
    height: 22px;
  }
  .efb-choice-label{
    font-size: 8px;
    text-align: center;
  }
  .efb-actions{ justify-content: center; }
  .efb-submit{ width: 100%; }
}

@media (max-width: 360px){
  .efb-scale{
    grid-template-columns: repeat(5, 62px);
    justify-content: start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .efb-scale::-webkit-scrollbar{ height: 6px; }
  .efb-scale::-webkit-scrollbar-thumb{ background: rgba(2,6,23,.18); border-radius: 999px; }
}

