:root {
  --viewport-height: 90vh;
  /* Fallback for browsers that don't support svh */
}

@supports (height: svh) {
  :root {
    --viewport-height: 100svh;
    /* Use svh if supported */
  }
}

body {
  height: var(--viewport-height);
  overflow: hidden;
}

body[data-elementor-device-mode="tablet"],
body[data-elementor-device-mode="desktop"] {
  height: 100vh;
}

.dmg-review-form-widget-wrap {
  height: var(--viewport-height);
}

.dmg-review-form-widget-wrap[data-elementor-device-mode="tablet"],
.dmg-review-form-widget-wrap[data-elementor-device-mode="desktop"] {
  height: 100vh;
}

.dmg-review-form-widget {
  font-size: var(--e-global-typography-text-font-size);
  color: var(--e-global-color-text);
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-weight: var(--e-global-typography-text-font-weight);
}

.dmg-review-form-widget .screen-1 {
  display: none;
}

.dmg-review-form-widget .screen-1.active {
  display: grid;
  justify-content: center;
  text-align: center;
}

.dmg-review-form-widget .screen-1 .img {
  justify-self: center;
  margin-bottom: 15px;
}

.dmg-review-form-widget .screen-1 .wysiwyg {
  margin-bottom: 15px;
}

.dmg-review-form-widget .screen-1 .wysiwyg p:last-child {
  margin-bottom: 0;
}

.dmg-review-form-widget .star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  font-size: 2em;
}

.dmg-review-form-widget .star-rating input {
  display: none;
}

.dmg-review-form-widget .star-rating .star {
  color: white;
  transition: color .2s;
  text-shadow: 0 0 0 gray;
  -webkit-text-stroke: 1px gray;
          text-stroke: 1px gray;
  cursor: pointer;
  padding: 0 3px;
  line-height: 1;
}

.dmg-review-form-widget .star-rating input:checked ~ .star,
.dmg-review-form-widget .star-rating input:hover ~ .star {
  color: gold;
}

.dmg-review-form-widget .star-rating .star:hover,
.dmg-review-form-widget .star-rating .star:hover ~ .star {
  color: gold;
}

.dmg-review-form-widget .screen-2 {
  display: none;
}

.dmg-review-form-widget .screen-2.active {
  display: grid;
  justify-content: center;
  text-align: center;
  max-width: 478px;
}

.dmg-review-form-widget .screen-2 .img {
  justify-self: center;
  margin-bottom: 15px;
}

.dmg-review-form-widget .screen-2 .wysiwyg {
  margin-bottom: 15px;
}

.dmg-review-form-widget .screen-2 .wysiwyg p:last-child {
  margin-bottom: 0;
}

.dmg-review-form-widget .screen-2 .row {
  display: grid;
  grid-row-gap: 15px;
  margin-bottom: 15px;
}

@media screen and (min-width: 768px) {
  .dmg-review-form-widget .screen-2 .row.col-2 {
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 15px;
  }
}

.dmg-review-form-widget .screen-2 textarea {
  height: 122px;
}

.dmg-review-form-widget .screen-2 .submit-wrap {
}

@media screen and (min-width: 1082px) {
  .dmg-review-form-widget .screen-2 .submit-wrap {
    column-gap: 20px;
    display: flex;
  }
}

.dmg-review-form-widget .screen-2 .submit-wrap input[type="submit"] {
  padding-left: 25px;
  padding-right: 25px;
}

br {
  /* Remove <br> on smaller devices */
  display: none;
}

@media screen and (min-width: 768px) {
  br {
    display: initial;
  }
}
