/* Review flow for Opulent Property (rate.opulentproperty.com). */

/* Self-hosted latin subsets of opulentproperty.com's fonts (SIL OFL 1.1, see assets/fonts). */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Raleway;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/raleway-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --op-cyan: #14aeee;
  --op-cyan-dark: #108bbe;
  --op-royal: #2562ad;
  --op-navy: #132640;
  --op-slate: #414b66;
  /* Same content panel and title colors as rules.opulentproperty.com. */
  --op-panel: #f3f3f1;
  --op-title: #262672;
  --op-font: Montserrat, Arial, sans-serif;
  --op-font-accent: Raleway, Montserrat, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  color: #333;
  background-color: #fff;
  min-height: 100%;
  margin: 0;
  font-family: var(--op-font);
  font-size: 14px;
  line-height: 20px;
}

img {
  vertical-align: middle;
  max-width: 100%;
  display: inline-block;
}

button,
input,
textarea {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rating-body {
  min-height: 100%;
}

.page-container {
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px 15px;
}

.page-container.rating-page-container {
  display: flex;
  flex-flow: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 15px;
}

.review-content {
  background-color: var(--op-panel);
  border-radius: 8px;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;
  flex: 1;
  width: 100%;
  min-height: 100%;
  padding: 80px 16px 90px;
  display: flex;
}

.review-logo {
  display: block;
  flex: none;
  width: 138px;
  max-width: 70%;
  height: auto;
  margin: 40px auto 0;
}

.review-photo {
  border: 3px solid var(--op-cyan);
  border-radius: 200px;
  width: 112px;
  height: 112px;
  flex: none;
  overflow: hidden;
  background-color: #fff;
}

.review-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.review-h2 {
  color: var(--op-title);
  margin: 30px 0 12px;
  font-family: var(--op-font);
  font-size: 22.4px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  text-wrap: balance;
}

.review-header-summary {
  color: var(--op-slate);
  text-align: center;
  max-width: 500px;
  margin: 0 0 30px;
  padding-left: 20px;
  padding-right: 20px;
  font-family: var(--op-font);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5em;
}

.rating-container {
  text-align: center;
  margin-top: 30px;
  width: max-content;
  max-width: 100%;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.star {
  font-size: 40px;
  line-height: 1;
  color: gray;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0 1px;
  font-family: Arial, sans-serif;
}

.star.is-on {
  color: orange;
}

.review-slider {
  width: 100%;
  margin: 20px 0;
  accent-color: var(--op-cyan);
}

.review-button {
  color: #fff;
  background-image: linear-gradient(121deg, var(--op-cyan), var(--op-royal));
  border: 2px solid var(--op-royal);
  border-radius: 20px;
  margin-top: 20px;
  padding: 8px 25px;
  font-family: var(--op-font-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.review-button:hover {
  filter: brightness(1.06);
}

.review-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.feedback-form {
  width: 100%;
  max-width: 400px;
  margin-top: 1rem;
}

.review-form-label,
.review-fieldset legend {
  font-family: var(--op-font);
  font-weight: 500;
  color: var(--op-navy);
  display: block;
  margin-bottom: 4px;
}

.review-fieldset {
  border: 0;
  margin: 8px 0 10px;
  padding: 0;
}

.review-form-field {
  color: #333;
  vertical-align: middle;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  height: 38px;
  margin-bottom: 10px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.42857;
  display: block;
}

.review-form-field::placeholder {
  color: #999;
}

.review-form-field:focus {
  border-color: var(--op-cyan);
  outline: 2px solid var(--op-cyan);
  outline-offset: 1px;
}

textarea.review-form-field {
  height: auto;
  min-height: 96px;
  resize: vertical;
}

.choice {
  margin-bottom: 5px;
  padding-left: 20px;
  display: block;
  cursor: pointer;
  font-family: var(--op-font);
  font-weight: 400;
}

.choice input {
  float: left;
  margin: 3px 0 0 -20px;
  accent-color: var(--op-cyan);
}

.feedback-form .review-button {
  width: 100%;
}

.w-form-done,
.w-form-fail {
  display: none;
}

.w-form-done.is-visible,
.w-form-fail.is-visible {
  display: block;
}

.review-form-success {
  color: var(--op-slate);
  background-color: #f7f9fd;
  border-radius: 8px;
  font-family: var(--op-font);
  font-size: 13px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.review-form-error {
  background-color: #ffdede;
  border-radius: 6px;
  margin-top: 30px;
  padding: 15px 20px;
  width: 100%;
  max-width: 400px;
}

.review-form-error-message {
  font-family: var(--op-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4em;
}

:focus-visible {
  outline: 2px solid var(--op-royal);
  outline-offset: 3px;
}

@media screen and (max-width: 991px) {
  .page-container {
    padding: 10px 10px 0;
  }

  .page-container.rating-page-container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media screen and (max-width: 767px) {
  .page-container {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media screen and (max-width: 479px) {
  .review-content {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .review-logo {
    width: 119px;
    margin-top: 32px;
  }

  .review-h2 {
    font-size: 19.2px;
  }
}
