.ios-survey-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  border: 1px solid #303744;
  background: #222832;
  color: #eef2f7;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.ios-survey-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(6, 8, 12, .72);
}

.ios-survey-overlay.active {
  display: flex;
}

.ios-survey-modal {
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  border: 1px solid #303744;
  border-radius: 10px;
  background: #1b2028;
  color: #eef2f7;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .44);
}

.ios-survey-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 10px;
  border-bottom: 1px solid #303744;
}

.ios-survey-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.ios-survey-head p,
.ios-survey-note,
.ios-survey-status {
  color: #9aa4b2;
  font-size: 13px;
  line-height: 1.5;
}

.ios-survey-close {
  width: 32px;
  height: 32px;
  border: 1px solid #303744;
  border-radius: 8px;
  background: #222832;
  color: #eef2f7;
  cursor: pointer;
}

.ios-survey-form {
  padding: 16px 18px 18px;
}

.ios-survey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ios-survey-field {
  display: grid;
  gap: 7px;
}

.ios-survey-field.full {
  grid-column: 1 / -1;
}

.ios-survey-field label {
  color: #c7d0dc;
  font-size: 13px;
}

.ios-survey-field select,
.ios-survey-field textarea {
  width: 100%;
  border: 1px solid #303744;
  border-radius: 8px;
  background: #151920;
  color: #eef2f7;
  padding: 10px 11px;
  font: inherit;
}

.ios-survey-field textarea {
  min-height: 84px;
  resize: vertical;
}

.ios-survey-rating {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ios-survey-rating label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #303744;
  border-radius: 999px;
  background: #151920;
  padding: 7px 9px;
  cursor: pointer;
}

.ios-survey-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.ios-survey-actions button {
  border: 1px solid #303744;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

.ios-survey-skip {
  background: #222832;
  color: #c7d0dc;
}

.ios-survey-submit {
  background: #50c878;
  border-color: #50c878 !important;
  color: #0f1115;
  font-weight: 700;
}

@media (max-width: 640px) {
  .ios-survey-grid {
    grid-template-columns: 1fr;
  }
}
