/*
  The Create a Survey drawer (class.survey_drawer.php, survey_drawer.js): its own pieces on
  top of the process drawer look (process_drawer.css) — the name fields, the event search,
  the dashed Add a question, the question rows with their grip, the review list, the done
  mark. sd_ classes. px throughout (a rem is 10px on this site).
*/

/* ---- the fields: the name over the message, the question textarea ---- */

.sd_fields .form-control { height: auto; min-height: 46px; }
.sd_fields textarea.form-control { resize: none; line-height: 1.4; padding-top: 12px; }

/* ---- who: the search over the events ---- */

.sd_search_box { margin-bottom: 10px; }
.sd_search_box .form-control { -webkit-appearance: none; }
.sd_event_list .pd_card.hide_me { display: none; }
.sd_event_none.hide_me { display: none; }

/* ---- the questions: the dashed add button, the rows ---- */

.sd_add_question
{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  margin-bottom: 12px;
  padding: 12px;
  background: transparent;
  border: 2px dashed var(--pd_brand_edge);
  border-radius: var(--pd_radius);
  color: var(--pd_brand);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s, border-color 0.12s;
}
.sd_add_question:hover, .sd_add_question:focus { background: var(--pd_brand_wash); border-color: var(--pd_brand); }

.sd_question_list
{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sd_question_row
{
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 1.5px solid var(--pd_line);
  border-radius: var(--pd_radius);
  overflow: hidden;
}
.sd_question_row.ui-sortable-helper { box-shadow: 0 8px 24px rgba(15, 32, 68, 0.18); border-color: var(--pd_brand_edge); }
.sd_question_row.ui-sortable-placeholder { visibility: visible !important; background: var(--pd_brand_wash); border: 1.5px dashed var(--pd_brand_edge); min-height: 62px; }

.sd_grip
{
  flex: none;
  width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pd_faint);
  font-size: 18px;
  background: #f7fafa;
  border-right: 1px solid var(--pd_line);
  cursor: grab;
  touch-action: none;
}
.sd_grip:active { cursor: grabbing; }

.sd_question_open
{
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--pd_ink);
  font: inherit;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.sd_question_open:hover { background: #fbfdfd; }
.sd_num
{
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pd_brand_wash);
  color: var(--pd_brand);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sd_question_text
{
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
}
.sd_question_open .pd_card_sub i { margin-right: 3px; }
.sd_chevron { flex: none; color: var(--pd_faint); font-size: 14px; }

/* ---- the question window: the type cards tighter, the options box ---- */

.sd_type_cards .pd_card { min-height: 56px; }
.sd_type_cards .pd_card_icon { width: 36px; height: 36px; font-size: 16px; }
.sd_options_block.hide_me { display: none; }
.sd_options .form-control + .form-control { border-top: 1px solid var(--pd_line); }
.sd_options_block .pd_link { margin-top: 4px; }
.sd_question_remove { color: #b42323; margin-top: 22px; }
.sd_question_remove:hover { color: #8f1a1a; }

/* ---- review: rows are buttons, the questions listed inside the third ---- */

.sd_review .pd_result
{
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--pd_ink);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.sd_review .pd_result:hover { border-color: var(--pd_brand_edge); }
.sd_review .pd_card_name { white-space: normal; }
.sd_review .pd_card_sub { white-space: normal; }
.sd_review_questions { align-items: flex-start; }
.sd_review_questions .pd_card_icon { margin-top: 2px; }
.sd_review_questions .sd_chevron { margin-top: 12px; }
.sd_review_list
{
  margin: 6px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sd_review_list li { font-size: 14px; }
.sd_review_q { display: block; font-weight: 600; }

/* ---- review: the confirm row in the footer, over the buttons ---- */

.sd_confirm_row
{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 4px 2px;
}
.sd_confirm_row .sd_confirm_box { flex: none; margin: 0; border-radius: 6px; }
.sd_confirm_row .sd_confirm_box .custom_checkbox_checker { top: 0; line-height: 1; }
.sd_confirm_text { font-size: 14px; font-weight: 700; line-height: 1.3; cursor: pointer; }

/* ---- done: the Sample Survey's animated thank-you (ss_ classes, employer_surveys.css) with
   the drawer's own words ---- */

.sd_done { padding-top: 40px; }
