/* ============================================================ */
/* Rosemount Cremation Authorization — exact paper-form UI      */
/* ============================================================ */

body.vs-step-page {
  background: #ececec !important;
  color: #000;
  font-size: 16px;
  line-height: 1.45;
}

body.vs-step-page main {
  max-width: 1203px;
  margin: 0 auto;
  padding: 18px 12px 40px;
}

/* ---- Header: Cremation Authorization ---- */
#site_header {
  border-bottom: 0;
  box-shadow: none;
}

#site_header .main_header {margin-bottom: 1rem;}

#site_header .relative {
  position: relative;
}

#site_header h4.textcenter {
  margin: 0 0 6px;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  color: #111;
  letter-spacing: 0.2px;
}

#site_header h4.textcenter i,
#site_header h4.textcenter b {
  font-style: italic;
  font-weight: 700;
}

#site_header .print_red {
  margin: 0 auto 6px;
  text-align: center;
  color: #c62828 !important;
  font-size: 1.25rem;
  font-weight: 400;
}

#site_header .absolute.absolute_top.absolute_right {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

#site_header .absolute input,
#site_header .display_inline,
#site_header .tag_no_input {
  display: inline-block;
  width: 110px !important;
  max-width: 110px;
  margin: 0 0 0 6px !important;
  padding: 4px 6px !important;
  border: 0;
  border-radius: 2px;
  background: #e9e9e9 !important;
  vertical-align: middle;
  font-weight: 400 !important;
  border-bottom: 1px solid #000000 !important;
  height: auto;
}

/* Keep this page looking like a paper sheet, ignore step1 gradient */
body.vs-step-page.form_global {
  background: #ececec !important;
}

body.vs-step-page.form_global .kin-popup-overlay {
  font-family: "Jost", sans-serif;
}

/* ---- Form sheet ---- */
#content {padding: 0 1rem;}

.full_width {
  background: #fff;
}

.full_width .container.row {
  margin: 0;
  padding: 10px 28px 28px;
  width: 100%;
  max-width: none;
}

.full_width ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: block;
  overflow: hidden;
}

.full_width > .container.row > ul:first-child,
.full_width .rmca-facility-row {
  margin-bottom: 4px;
  display: flex !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  overflow: visible;
  white-space: nowrap;
}

.full_width > .container.row > ul:first-child > li,
.full_width .rmca-facility-row > li {
  display: block;
  vertical-align: top;
  margin-bottom: 0;
  float: none !important;
}

.full_width > .container.row > ul:first-child > li:first-child,
.full_width .rmca-facility-row > li:first-child {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.full_width .pull_right,
.full_width .rmca-facility-row > li.pull_right {
  float: none !important;
  width: auto !important;
  text-align: right;
  flex: 0 0 auto;
  white-space: nowrap;
}

.full_width h4 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 700;
  color: #111;
  font-family: "Times New Roman", Times, Georgia, serif;
}

.full_width h5 {
  margin: 16px 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  clear: both;
}

.full_width h5.textcenter,
.full_width .textcenter {
  text-align: center;
  margin: 0 auto;
  display: block;
}

.full_width h6 {
  margin: 8px 0 6px;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
}

.full_width p {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #111;
  text-align: left;
}

.margin_revert {
  margin-top: 2px !important;
}

/* ---- Underline inputs (paper form) ---- */
.full_width input[type="text"] {
  display: inline-block;
  border: 0 !important;
  border-bottom: 1px solid #000 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 3px 1px !important;
  margin: 0 2px 2px !important;
  height: auto !important;
  min-height: 0 !important;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #111 !important;
  outline: none;
  vertical-align: baseline;
}

.full_width input[type="text"]:read-only,
.full_width input[type="text"][readonly] {
  background: transparent !important;
  color: #494949 !important;
}

.full_width input[type="text"].must,
.full_width input.must {
  background: #fff59d !important;
  border-bottom: 1px solid #000 !important;
}

.full_width .must.is-required-missing {
  outline: 2px solid #d92d20 !important;
  outline-offset: 2px;
}

.full_width input[type="radio"],
.full_width input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  margin: 0 3px 0 8px !important;
  vertical-align: middle;
  accent-color: #111;
}

.width_5 { width: 42px !important; }
.width_10 { width: 58px !important; }
.width_15 { width: 88px !important; }
.width_20 { width: 120px !important; }
.width_25 { width: 160px !important; }
.width_30 { width: 210px !important; }
.width_40 { width: 280px !important; }
.width_50 { width: 340px !important; }
.width_60 { width: 380px !important; }
.width_70 { width: 500px !important; }
.width_80 { width: 100% !important; max-width: 720px; }
.width_100 { width: 100% !important; max-width: 100%; display: block !important; margin: 0 0 6px 0 !important; }

/* Sub-labels under fields */
.full_width p span,
.full_width ul li span {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.full_width p span label,
.full_width ul li span label {
  /* position: absolute; */
  left: 0;
  bottom: -12px;
  right: 0;
  font-size: 0.938rem;
  line-height: 1.15;
  color: #333;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.full_width ul li.pull_right,
.full_width ul li.initials_print {
  margin-top: 0;
  margin-bottom: 0;
}

.full_width ul li.pull_right span,
.full_width ul li.initials_print span {
  min-width: 180px;
}

.full_width ul li.pull_right input.must,
.full_width ul li.initials_print input.must {
  width: 170px !important;
  text-align: center;
  font-size: 1.2rem !important;
  padding: 4px 8px !important;
  border-bottom: 1px solid #000 !important;
  background: #fff59d !important;
}

/* Final disposition box */
.full_width .handling_of_cremated_remains {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #000;
  padding: 10px 12px 6px 18px;
  margin: 8px 0 12px;
  list-style: none;
  margin-bottom: 1rem;
}

.handling_of_cremated_remains li {
  display: block;
  overflow: hidden;
  margin: 0 0 8px !important;
}

.handling_of_cremated_remains li .fa {
  float: left;
  margin: 8px 10px 0 0;
  font-size: 1.25rem;
  color: #c8c8c8;
  line-height: 1;
}

.handling_of_cremated_remains li .fa.black_color,
.handling_of_cremated_remains li .check-square-o {
  color: #000;
}

.handling_of_cremated_remains li p {
  margin: 0;
  overflow: hidden;
  line-height: 1.8;
}

.handling_of_cremated_remains li p small {
  font-size: 0.85em;
}

.fa-square-o:before {
  content: "\f096";
  font-family: "Font Awesome 6 Free", "FontAwesome", sans-serif;
  font-weight: 400;
}

.check-square-o:before {
  content: "\f14a" !important;
  font-family: "Font Awesome 6 Free", "FontAwesome", sans-serif;
  font-weight: 900;
}

/* Signature draw */
.sign_box {
  display: inline-block;
  vertical-align: middle;
  font-style: normal;
  margin-left: 6px;
}

.custom-file-upload {
  border: 1px solid #b5b5b5;
  background: #f4f4f4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 2px;
  font-family: "Jost", sans-serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #222;
}

.custom-file-upload::before {
  content: "\f303";
  font-family: "Font Awesome 6 Free", "FontAwesome", sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 0.85rem;
}

.file-upload,
.file-draw {
  display: none !important;
}

img.blah {
  max-width: 140px;
  height: auto;
  display: none;
  margin-left: 8px;
  vertical-align: middle;
}

img.blah.show_this_image {
  display: inline-block !important;
}

.full_width hr {
  border: 0;
  border-top: 1px solid #000;
  margin: 8px 0;
}

.full_width hr.mt-5 {
  margin-top: 2px;
}

.full_width .row {
  clear: both;
  width: 100%;
  height: 0;
}

/* Print button */
.submit_section {
  display: block;
  width: 100%;
  margin-top: 22px;
  text-align: center;
}

.submit_section .submit_box {
  display: block;
  margin: 0 auto;
  width: 42%;
  max-width: 380px;
}

.submit_section .submit_box input[type="button"],
.submit_section .print_me {
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 3px;
  background: #ea564b;
  color: #fff;
  font-family: "Jost", sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  margin-bottom: 5px;
}

.submit_section .submit_box input[type="button"]:hover,
.submit_section .print_me:hover {
  background: #d86f5b;
}

/* Hide step1 modern chrome when printing / keep form clean on screen */
body.vs-step-page .vs-form-toolbar {
  display: none !important;
}

@media (max-width: 900px) {
  body.vs-step-page main {
    padding: 10px 6px 28px;
  }

  #site_header .main_header,
  .full_width .container.row {
    padding-left: 14px;
    padding-right: 14px;
  }

  #site_header h4.textcenter {
    font-size: 1.5rem;
    padding-right: 90px;
  }

  .full_width > .container.row > ul:first-child:not(.rmca-facility-row) > li:first-child,
  .full_width ul:not(.rmca-facility-row) > li.pull_right {
    float: none;
    display: block;
    width: 100% !important;
    text-align: left;
  }

  .full_width .rmca-facility-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap;
  }

  .full_width .rmca-facility-row > li,
  .full_width .rmca-facility-row > li.pull_right {
    float: none !important;
    display: block !important;
    width: auto !important;
    text-align: left;
  }

  .full_width .rmca-facility-row > li.pull_right {
    text-align: right;
    margin-left: auto;
  }

  .submit_section .submit_box {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .full_width p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  input.width_5,
  input.width_10,
  input.width_15,
  input.width_20,
  input.width_25,
  input.width_30,
  input.width_40,
  input.width_50,
  input.width_60,
  input.width_70,
  input.width_80,
  input.width_100 {
    width: 100% !important;
    margin: 2px 0 8px 0 !important;
    display: block !important;
  }

  #site_header .absolute.absolute_top.absolute_right {
    position: static;
    display: block;
    margin: 8px 0 0;
    text-align: center;
  }
}

/* ============================================================ */
/* Print — match client-doc.pdf (exactly 2 pages)               */
/* ============================================================ */
@media print {
  @page {
    size: letter portrait;
    margin: 0.28in 0.42in 0.3in 0.42in;
  }

  html,
  body,
  body.vs-step-page,
  body.vs-step-page.form_global,
  body.vs-step-page.form_greenwood_print {
    background: #fff !important;
    color: #000 !important;
    font-family: "Times New Roman", Times, Georgia, serif !important;
    font-size: 8.25pt !important;
    line-height: 1.18 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.vs-step-page main {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Screen-only UI — same as client PDF output */
  .submit_section,
  .kin-popup-overlay,
  .main_popup,
  .sig-modal,
  .no-print,
  .vs-form-toolbar,
  #site_header .print_red,
  .custom-draw,
  .custom-file-upload {
    display: none !important;
  }

  #site_header,
  #content,
  .full_width {
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    max-width: none !important;
    margin: 0 !important;
  }

  #site_header .main_header {
    padding: 0 0 1pt !important;
  }

  #site_header h4.textcenter {
    font-size: 14pt !important;
    font-style: italic !important;
    font-weight: 700 !important;
    margin: 0 0 2pt !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
  }

  #site_header .absolute.absolute_top.absolute_right {
    position: absolute !important;
    top: 1pt !important;
    right: 0 !important;
    font-size: 8pt !important;
    font-weight: 600 !important;
  }

  #site_header .absolute input,
  #site_header .display_inline,
  #site_header .tag_no_input {
    width: 78px !important;
    max-width: 78px !important;
    padding: 1pt 3pt !important;
    font-size: 8pt !important;
    border: 1px solid #888 !important;
    background: #e8e8e8 !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
  }

  .full_width .container.row {
    padding: 0 !important;
  }

  .full_width h3,
  .full_width h3.textcenter {
    font-size: 9pt !important;
    font-weight: 700 !important;
    margin: 4pt 0 2pt !important;
    line-height: 1.15 !important;
    color: #000 !important;
  }

  .full_width h4 {
    font-size: 10pt !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
  }

  .full_width h5,
  .full_width h5.textcenter {
    font-size: 9pt !important;
    margin: 4pt 0 2pt !important;
    line-height: 1.15 !important;
  }

  .full_width h6 {
    font-size: 8pt !important;
    margin: 1pt 0 !important;
    line-height: 1.1 !important;
  }

  .full_width p,
  .full_width p.margin_revert,
  .full_width .p-inline-flex {
    font-size: 8pt !important;
    line-height: 1.2 !important;
    margin: 0 0 1.5pt !important;
    padding: 0 !important;
  }

  .full_width ul {
    margin: 0 !important;
    padding: 0 !important;
  }

  .full_width ul li {
    margin-bottom: 1pt !important;
  }

  .full_width > .container.row > ul:first-child,
  .full_width .rmca-facility-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8pt !important;
    margin: 0 0 1pt !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  .full_width > .container.row > ul:first-child > li,
  .full_width .rmca-facility-row > li {
    display: block !important;
    float: none !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
  }

  .full_width > .container.row > ul:first-child > li:first-child,
  .full_width .rmca-facility-row > li:first-child {
    width: auto !important;
    flex: 1 1 auto !important;
  }

  .full_width .pull_right,
  .full_width .rmca-facility-row > li.pull_right {
    float: none !important;
    width: auto !important;
    flex: 0 0 auto !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  .full_width .rmca-facility-row h4,
  .full_width .rmca-facility-row h6 {
    display: inline !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .full_width .rmca-facility-row #date {
    width: 90px !important;
    display: inline-block !important;
    white-space: nowrap !important;
  }

  .full_width ul li.pull_right,
  .full_width ul li.initials_print {
    margin-top: 1pt !important;
    margin-bottom: 10pt !important;
  }

  .full_width .rmca-facility-row > li.pull_right {
    margin: 0 !important;
  }

  .full_width p span label,
  .full_width ul li span label {
    top: 10pt !important;
    font-size: 6pt !important;
    line-height: 1.05 !important;
  }

  .full_width ul li.pull_right input.must,
  .full_width ul li.initials_print input.must,
  .full_width input.must {
    width: 92px !important;
    font-size: 9pt !important;
    padding: 1pt 3pt !important;
    margin: 0 2pt !important;
    border: 1px solid #000 !important;
    background: #fff59d !important;
    letter-spacing: 0.12em !important;
  }

  /* Client PDF style: spaced field values */
  .full_width input[type="text"] {
    font-size: 8pt !important;
    line-height: 1.1 !important;
    padding: 0 1pt !important;
    margin: 0 1pt !important;
    border: 0 !important;
    border-bottom: 0.6pt solid #000 !important;
    background: transparent !important;
    min-height: 0 !important;
    height: auto !important;
    letter-spacing: 0.18em !important;
    font-weight: 700 !important;
  }

  .full_width input[type="radio"],
  .full_width input[type="checkbox"] {
    width: 8pt !important;
    height: 8pt !important;
    margin: 0 1pt 0 3pt !important;
  }

  .handling_of_cremated_remains {
    padding: 8pt 10pt 6pt 14pt !important;
    margin: 4pt 0 6pt !important;
    border: 1pt solid #000 !important;
  }

  .handling_of_cremated_remains li {
    margin: 0 0 5pt !important;
    padding: 1pt 0 1pt 4pt !important;
  }

  .handling_of_cremated_remains li .fa {
    font-size: 9pt !important;
    margin: 2pt 8pt 0 0 !important;
  }

  .handling_of_cremated_remains li p,
  .handling_of_cremated_remains li p small {
    font-size: 8pt !important;
    line-height: 1.25 !important;
  }

  img.blah,
  .full_width img {
    max-width: 68px !important;
    max-height: 24px !important;
    width: auto !important;
    height: auto !important;
  }

  .full_width hr,
  .rmca-print-rule {
    margin: 2pt 0 !important;
    border: 0 !important;
    border-top: 0.6pt solid #000 !important;
  }

  .full_width hr.mt-5,
  .rmca-print-rule.mt-5 {
    margin-top: 0 !important;
  }

  .full_width br {
    line-height: 0.5 !important;
  }

  .full_width br + br {
    display: none !important;
  }

  .sign_box {
    margin-left: 1pt !important;
  }

  /* Client PDF: page 1 ends after NOK signature / page 2 starts Funeral Director */
  .rmca-print-break {
    display: block !important;
    page-break-before: always !important;
    break-before: page !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* Avoid splitting key blocks awkwardly */
  .handling_of_cremated_remains,
  .initials_print {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}


.width_100 {
  width: 100% !important;
}

.width_80 {
  width: 80% !important;
}

.width_70 {
  width: 70% !important;
}

.width_60 {
  width: 60% !important;
}

.width_55 {
  width: 55% !important;
}

.width_50 {
  width: 50% !important;
}

.width_48 {
  width: 48% !important;
}

.width_45 {
  width: 45% !important;
}

.width_40 {
  width: 40% !important;
}

.width_37 {
  width: 37% !important;
}

.width_35 {
  width: 35% !important;
}

.width_34 {
  width: 34% !important;
}

.width_33 {
  width: 33% !important;
}

.width_30 {
  width: 30% !important;
}

.width_28 {
  width: 28% !important;
}

.width_25 {
  width: 25% !important;
}

.width_24 {
  width: 24% !important;
}

.width_20 {
  width: 20% !important;
}

.width_19 {
  width: 19% !important;
}

.width_18 {
  width: 18% !important;
}

.width_17 {
  width: 17% !important;
}

.width_15 {
  width: 15% !important;
}

.width_14 {
  width: 14% !important;
}

.width_12 {
  width: 12% !important;
}

.width_10 {
  width: 10% !important;
}

.width_8 {
  width: 8% !important;
}

.width_5 {
  width: 5% !important;
}
