﻿/* client review form only, values measured from clientreviews.helmsbriscoe.com */

/* two font families not weights the same as production */
@font-face {
    font-family: "Semplicita";
    src: url("../Fonts/SemplicitaPro-Medium.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "Semplicita-Light";
    src: url("../Fonts/SemplicitaPro-Regular.otf") format("opentype");
    font-display: swap;
}

body {
    margin-top: 0;
    background: #dfefff;
    font-size: 16px;
    font-family: "Semplicita", "Catamaran", sans-serif;
    color: #212529;
}

/* the white card the survey sits on */
#page {
    max-width: 900px;
    min-width: 0;
    width: 100%;
    font-size: 16px;
    width: auto;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: #ffffff;
}

#content {
    padding: 5px 5px 75px 5px;
}

/* the fields run the full width of the card not the shared column */
.view-container {
    max-width: none;
    padding: 0;
}

/* the shared file tints unstyled text brown */
.form-surface {
    color: #212529;
}

/* blue header bar */
.page-card-header {
    background: #005487;
    height: 54px;
    padding: 0;
    display: flex;
    align-items: center;
}

.page-card-header .header-row {
    width: 100%;
    align-items: center;
}

/* the logo sits left and the matching right slot centres the title */
.page-card-header .header-row:before {
    content: "";
    flex: 0 0 calc(250px + 100% / 12 + 2px);
    height: 28px;
    background: url("../Images/HB_white.png") no-repeat 20px 50%;
    background-size: contain;
}

.page-card-header .header-row:after {
    content: "";
    flex: 0 0 calc(250px + 100% / 12 + 2px);
}

.page-card-header .col-10 {
    flex: 1 1 auto;
    width: auto;
    text-align: center;
}

.page-card-header .page-heading {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family: "Semplicita", "Catamaran", sans-serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 54px;
    letter-spacing: 1px;
    text-transform: none;
    font-variant-caps: small-caps;
}

.view-container,
.cr-form {
    max-width: 865px;
    margin: 0 auto;
    padding: 0 0 40px 0;
}

/* filled text field matching mdc-text-field--filled */
.cr-field {
    position: relative;
    display: block;
    width: 100%;
    height: 58px;
    background: #e0e2ec;
    border-radius: 4px 4px 0 0;
    padding: 0 16px;
    box-sizing: border-box;
    border-bottom: 1px solid #44474e;
    margin-bottom: 19px;
}

.cr-field:hover {
    border-bottom-color: #1a1b1f;
}

/* a second blue underline wipes across on focus */
.cr-field:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #005cbb;
    transform: scaleX(0);
    transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cr-field:focus-within:after {
    transform: scaleX(1);
}

/* the input sits transparent inside the block */
.cr-field > input[type="text"],
.cr-field > input[type="number"],
.cr-field > input:not([type]),
.cr-field > textarea {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    width: calc(100% - 32px);
    height: 24px;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0;
    margin: 0;
    font-family: "Semplicita", "Catamaran", sans-serif;
    font-size: 16px;
    color: #1a1b1f;
    box-sizing: border-box;
}

/* the hint only shows once the label has moved out of the way */
.cr-field > input::placeholder,
.cr-field > textarea::placeholder {
    color: transparent;
}

.cr-field > input::-ms-input-placeholder,
.cr-field > textarea::-ms-input-placeholder {
    color: transparent;
}

/* floating label */
.cr-field > label {
    position: absolute;
    left: 16px;
    top: 19px;
    transform: translateY(0) scale(1);
    transform-origin: left top;
    font-family: "Semplicita", "Catamaran", sans-serif;
    font-size: 16px;
    line-height: normal;
    color: #44474e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* one rule per selector so an unsupported pseudo class cannot drop the others */
.cr-field.cr-filled > label,
.cr-field.cr-dx > label {
    transform: translateY(-11px) scale(0.75);
}

.cr-field input:not(:placeholder-shown) + label {
    transform: translateY(-11px) scale(0.75);
}

.cr-field:focus-within > label {
    transform: translateY(-11px) scale(0.75);
    color: #005cbb;
}

/* production paints the required asterisk in the error colour */
.req,
.cr-req {
    color: #ff0000;
    font-weight: 400;
    margin-right: 3px;
}

.cr-hint {
    font-family: "Semplicita", "Catamaran", sans-serif;
    font-size: 12px;
    color: #44474e;
    padding: 4px 16px 0 16px;
    margin: 0 0 10px 0;
}

.cr-section-title {
    font-family: "Semplicita", "Catamaran", sans-serif;
    font-size: 16px;
    color: #44474e;
    margin: 18px 0 8px 0;
}

/* chips sit on the white card between the grey fields */
.chip-list,
.cr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 6px 0 19px 8px;
}

/* an empty row must not reserve any space */
.chip-list:empty,
.cr-chips:empty {
    margin: 0;
}

.chip-option,
.cr-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 16px;
    border-radius: 8px;
    background: #45818e;
    color: #ffffff;
    font-family: "Semplicita", "Catamaran", sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/* the remove control is a plain white glyph not a round button */
.chip-remove,
.cr-chip-x,
.property-pill-x {
    margin-left: 4px;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    opacity: 0.9;
}

.chip-remove:hover,
.cr-chip-x:hover,
.property-pill-x:hover {
    background: transparent;
    opacity: 1;
}

/* the hotel chip carries a second line so it grows instead of clipping */
.property-pill {
    display: inline-flex;
    margin: 6px 0 19px 8px !important;
    padding: 0 12px !important;
    align-items: center;
    width: auto;
    height: 32px;
    min-height: 32px;
    border-radius: 8px;
    padding: 0 12px;
    margin: 4px 0 4px 8px;
    background: #45818e;
    color: #ffffff;
    font-family: "Semplicita", "Catamaran", sans-serif;
    font-size: 14px;
}

.property-pill-name {
    font-family: "Semplicita", "Catamaran", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.cr-submit {
    height: 40px;
    padding: 1px 18px;
    border: 0;
    border-radius: 7px;
    background: #005487;
    color: #ffffff;
    font-family: "Semplicita", "Catamaran", sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.cr-submit:hover {
    background: #00456f;
}

/* the markup still carries the shared submit class so it is restyled here */
.submit-button {
    display: inline-block;
    box-sizing: border-box;
    height: 40px;
    line-height: 38px;
    min-width: 0;
    padding: 0 18px !important;
    border: 0;
    border-radius: 7px !important;
    background: #005487;
    color: #ffffff;
    font-family: "Semplicita", "Catamaran", sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
}

.submit-button {
    min-width: 95px;
    min-height: 40px;
    border: 1px solid #003e64 !important;
}

.submit-button:hover {
    background: #4f8eb5;
    filter: none;
}

/* the editor stays in flow so its 100% width fills the field */
.cr-field.cr-dx {
    height: auto;
    min-height: 57px;
    padding: 24px 16px 8px 16px;
}

.cr-field.cr-dx > table,
.cr-field.cr-dx > div,
.cr-field.cr-dx > span {
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.cr-field.cr-dx table,
.cr-field.cr-dx tbody,
.cr-field.cr-dx tr,
.cr-field.cr-dx td.dxic,
.cr-field.cr-dx [class*="dxeBase"],
.cr-field.cr-dx [class*="dxeTextBox"],
.cr-field.cr-dx [class*="dxeEditArea"] {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

.cr-field.cr-dx td.dxic {
    padding: 0 !important;
}

/* typography already comes from the plain cr-field input rule above */
.cr-field.cr-dx input {
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 24px !important;
    box-shadow: none !important;
}

/* the shared file paints these hit targets so they are held clear of the map */
.rating-buttons > div[id*="rating_"] > a[dxindex] {
    background: transparent !important;
}

/* nothing chosen yet sits in the middle not off */
.switch .slider,
.switch input:checked + .slider {
    background: #d7d7d7;
}

.switch .slider:before {
    background: #a9a9a9;
    transform: translate(66%);
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.switch .slider:after {
    content: "";
}

/* these set their own family so the body one never reaches them */
label.field-label,
p.label-attachments,
h6.rate-title,
.recommend-option,
.recommend-option span,
.na-checkbox,
.na-checkbox label {
    font-family: "Semplicita", "Catamaran", sans-serif;
}

label.field-label {
    font-size: 16px;
    font-weight: 400;
    color: #212529 !important;
}

p.label-attachments {
    font-size: 14px;
    font-weight: 400;
    color: #212529;
}

h6.rate-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 21.6px;
    color: #212529;
}

.recommend-option,
.recommend-option span {
    font-size: 16px;
    font-weight: 400;
    color: #212529;
}

.na-checkbox,
.na-checkbox label {
    font-size: 14px;
    color: #1a1b1f;
}

/* production draws a bigger box with a dark edge not the browser default */
.na-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 0 6px 0 0;
    border: 2px solid #44474e;
    border-radius: 2px;
    background: #ffffff;
    vertical-align: middle;
    cursor: pointer;
    box-sizing: border-box;
}

.na-checkbox input[type="checkbox"]:checked {
    background: #44474e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.5' d='M3 8.5l3.5 3.5L13 5'/%3E%3C/svg%3E") no-repeat center;
    background-size: 14px 14px;
}

/* production lists the chosen hotel in the tag only */
.property-pill-info {
    display: none;
}

/* the score wording only appears once something is picked */
.rating-summary-inline:empty {
    display: none;
}

/* production adds a little extra tracking to its labels */
.cr-field > label {
    letter-spacing: 0.496px;
}

/* devexpress adds cr-invalid to any editor its validation turned down */
.rate-section:has(.cr-invalid),
.recommend-row:has(.cr-invalid) {
    background: #fff2f2;
    border-left: 4px solid #ff0000;
    border-radius: 4px;
    padding-left: 12px;
}

.cr-field:has(.cr-invalid) {
    background: #fbe4e4;
    border-bottom-color: #ff0000;
}


.cr-summary-host {
    padding: 0 16px;
}

/* devexpress stamps the class on the outer table and on its cell as well */
table.cr-validation-summary {
    width: 100%;
    margin: 10px 0 4px 0;
    border-left: 4px solid #ff0000;
    border-radius: 4px;
    background: #fff2f2;
    font-family: "Semplicita", "Catamaran", sans-serif;
    font-size: 14px;
    color: #212529;
}

table.cr-validation-summary td.cr-validation-summary {
    padding: 10px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cr-validation-summary a {
    color: #b00000;
    border-bottom: 0;
    text-decoration: underline;
    cursor: pointer;
}

.cr-switch .dxToggle {
    width: 73px;
    height: 33px;
    background-image: none;
    background-color: #d7d7d7;
    border: 2px solid #c0ccd0;
    border-radius: 30px;
    box-sizing: border-box;
}

/* the knob moves by transform from an origin 2px inside the border */
.cr-switch .dxToggle .dxSwitcher {
    width: 30px;
    height: 30px;
    border-radius: 30px;
    background: #ed5565;
    transform: translate(0, 0);
}

.cr-switch .dxToggle[class*="Grayed"] .dxSwitcher {
    background: #a9a9a9;
    transform: translate(66%, 0);
}

.cr-switch .dxToggle[class*="Checked"] .dxSwitcher {
    background: #1ab394;
    transform: translate(132%, 0);
}

/* production leaves white space under the button */
#form1 {
    padding: 5px 5px 75px 5px;
    background: #ffffff;
}

.rail-btn.add {
    font-family: "Semplicita", "Catamaran", sans-serif;
}

.cr-field > label .req {
    font-size: 13px;
}

.recommend-option,
.recommend-option span {
    font-size: 15px;
}
