

/**
 * Блок оценки вебинара — полный CSS.
 * Вставлять в: Сайт → Дизайн → CSS макета 92718
 *   https://biznesinalogiwebinar.ru/pl/cms/layout/update?id=92718#css
 *
 * Все селекторы под .webinar-rating, чтобы стили жили и после переноса блока вниз урока.
 */

.webinar-rating,
.webinar-rating * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.webinar-rating {
    box-sizing: border-box;
    display: flex;
    justify-content: normal;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.webinar-rating .wrap {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* —— Intro —— */
.webinar-rating .rating-intro {
  text-align: center;
  margin: 0 0 18px;
}

.webinar-rating .rating-intro-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e95824;
  line-height: 1.25;
}

.webinar-rating .rating-intro-text {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: #374151;
}

.webinar-rating .rating-intro-note {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  color: #e95824;
}

/* —— Карточки —— */
.webinar-rating .cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.webinar-rating .card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  margin: 0;
}

.webinar-rating .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.webinar-rating .card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.webinar-rating .card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f0f5;
  color: #555;
}

.webinar-rating .card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.webinar-rating .card-icon svg {
  width: 20px;
  height: 20px;
}

.webinar-rating .card-icon.avatar-icon {
  background: #e0e7ff;
  color: #4338ca;
  font-size: 13px;
  font-weight: 700;
}

.webinar-rating .card-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.webinar-rating .card-title {
  font-size: 15px;
  line-height: 1.2;
  color: #111827;
  font-family: var(--font-family-1) !important;
}

.webinar-rating .card-subtitle {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #9ca3af;
}

.webinar-rating .selected-big {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.webinar-rating .selected-big.show {
  opacity: 1;
  transform: scale(1);
}

/* —— Звёзды —— */
.webinar-rating .stars-row {
  display: flex;
  gap: 2px;
}

.webinar-rating .star-btn {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  color: #d1d5db;
  transition: transform 0.12s ease, color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
}

.webinar-rating .star-btn svg {
  width: 28px;
  height: 28px;
  transition: fill 0.12s ease, color 0.12s ease;
}

.webinar-rating .star-btn:active {
  transform: scale(0.85);
}

.webinar-rating .star-btn.active {
  transform: scale(1.05);
}

.webinar-rating .row-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 400;
  color: #9ca3af;
}

/* —— Комментарий и «передать спикеру» —— */
.webinar-rating .feedback-block,
.webinar-rating .share-speaker-block {
  display: none;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.webinar-rating .feedback-block.show,
.webinar-rating .share-speaker-block.show {
  display: block;
}

.webinar-rating .feedback-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  /* font-weight: 600; */
  line-height: 1.35;
  color: #1f2937;
  font-family: var(--font-family-1) !important;
}

.webinar-rating .feedback-optional {
  font-size: 13px;
  font-weight: 400;
  color: #9ca3af;
}

.webinar-rating .feedback-textarea {
  width: 100%;
  min-height: 72px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  font-family: inherit;
  color: #1f2937;
  background: #f9fafb;
  resize: vertical;
  outline: none;
}

.webinar-rating .feedback-textarea:focus {
  border-color: #f59e0b;
  background: #fff;
}

.webinar-rating .feedback-textarea::placeholder {
  color: #9ca3af;
  font-weight: 400;
  opacity: 1;
}

.webinar-rating .feedback-count {
  text-align: right;
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

.webinar-rating .share-speaker-hint {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #4b5563;
}

.webinar-rating .share-speaker-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: #1f2937;
  cursor: pointer;
}

.webinar-rating .share-speaker-label input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* —— Кнопка —— */
.webinar-rating .submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  border: none;
  border-radius: 14px;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: not-allowed;
  transition: all 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.webinar-rating .submit-btn.ready {
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.webinar-rating .submit-btn.ready:active {
  transform: scale(0.98);
}

.webinar-rating .submit-btn .btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
}

@keyframes wr-spin {
  to { transform: rotate(360deg); }
}

.webinar-rating .spinner {
  width: 18px;
  height: 18px;
  animation: wr-spin 0.8s linear infinite;
}

/* —— Успех —— */
.webinar-rating .success-overlay {
  display: none;
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.webinar-rating .success-overlay.show {
  display: block;
}

.webinar-rating .success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.webinar-rating .success-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.webinar-rating .success-sub {
  font-size: 14px;
  color: #9ca3af;
}

.webinar-rating .page-hint-admin,
.webinar-rating .page-hint-admin a {
  font-size: 13px;
  font-weight: 400;
}

