/*
 * Copyright 2020 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

:root {
  /* colors */
  --background-color: white;
  --light-color: #f8f8f8;
  --dark-color: #505050;
  --text-color: #242424;
  --link-color: #108389;
  --accent-link-color: #00a9ce;
  --white-color: white;
  --black-color: black;
  --gray-100: #f6f6f6;
  --gray-150: #f2f5f5;
  --gray-200: #e6e6e6;
  --gray-250: #eeeeed;
  --gray-300: #f4f1ed;
  --gray-400: #eeeeed;
  --gray-500: #c1bfb8;
  --gray-600: #6b6b6b;
  --gray-650: #555551;
  --gray-700: #32373c;
  --gray-750: #1f1f1f;
  --gray-800: #242424;
  --gray-900: #1b1b1b;
  --brown-700: #4f2c1d;
  --blue-100: #cce5e7;
  --blue-200: #80bdc4;
  --blue-600: #0f71f0;
  --beige-100: #f7eed1;
  --yellow-200: #fdf4d8;
  --yellow-300: #fff488;
  --yellow-500: #feeb29;
  --green-100: #e7f4e3;
  --orange-500: #ff9176;

  /* fonts */
  --body-font-family: "Inter", sans-serif;
  --heading-font-family: "Inter", sans-serif;

  /* body sizes */
  --body-font-size-m: 22px;
  --body-font-size-s: 19px;
  --body-font-size-xs: 17px;

  /* heading sizes */
  --heading-font-size-xxl: 40px;
  --heading-font-size-xl: 32px;
  --heading-font-size-l: 28px;
  --heading-font-size-m: 24px;
  --heading-font-size-s: 22px;
  --heading-font-size-xs: 16px;

  /* text sizes */
  --title-font-size-xxl: 40px;
  --title-font-size-xl: 32px;
  --title-font-size-l: 28px;
  --title-font-size-m: 24px;
  --text-font-size-xxl: 22px;
  --text-font-size-xl: 20px;
  --text-font-size-l: 18px;
  --text-font-size-m: 16px;
  --text-font-size-ms: 14.4px;
  --text-font-size-s: 14px;
  --text-font-size-xs: 12px;
  --text-font-size-xxs: 10px;

  /* nav height */
  --nav-height: 111px;
  --nav-height-mobile: 80px;

  /* border radius */
  --border-radius-xs: 4px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-22: 22px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  --border-radius-xxl: 40px;
  --border-radius-xxxl: 48px;
  --border-radius-xxxxl: 56px;
  --border-radius-xxxxxl: 64px;

  /* z-index */
  --z-index-dropdown: 10;
  --z-index-modal: 9999;
  --z-index-header: 500;
  --z-index-sm: 15;

  /* box-shadow */
  --shadow: 0 2px 4px rgb(0 0 0 / 20%);
  --shadow-xs: 0 0 8px rgb(0 0 0 / 20%);
  --shadow-sm: 0 7px 10px rgb(0 0 0 / 20%);
  --shadow-md: 0 12px 22px rgb(0 0 0 / 12%);
}

@media (width >=768px) {
  :root {
    /* body sizes */
    --body-font-size-m: 18px;
    --body-font-size-s: 16px;
    --body-font-size-xs: 14px;

    /* heading sizes */
    --heading-font-size-xxl: 48px;
    --heading-font-size-xl: 40px;
    --heading-font-size-l: 32px;
    --heading-font-size-m: 28px;
    --heading-font-size-s: 22px;
    --heading-font-size-xs: 16px;
  }
}

body {
  display: none;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-optical-sizing: auto;
  font-style: normal;
  font-family: var(--body-font-family);
  font-size: var(--text-font-size-m);
  line-height: 1.5;
  font-weight: 400;
}

body.appear {
  display: block;
}

header {
  height: var(--nav-height);
}

header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status='loaded'],
footer .footer[data-block-status='loaded'] {
  visibility: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
  font-family: var(--heading-font-family);
  font-weight: 500;
  line-height: 1.25;
  scroll-margin: 40px;
}

h1 {
  font-size: var(--heading-font-size-xxl);
}

h2 {
  font-size: var(--heading-font-size-xl);
}

h3 {
  font-size: var(--heading-font-size-l);
}

h4 {
  font-size: var(--heading-font-size-m);
}

h5 {
  font-size: var(--heading-font-size-s);
}

h6 {
  font-size: var(--heading-font-size-xs);
}

p,
dl,
ol,
ul,
pre,
blockquote {
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}

code,
pre {
  font-size: var(--body-font-size-s);
}

pre {
  padding: 16px;
  border-radius: 8px;
  background-color: var(--light-color);
  overflow-x: auto;
  white-space: pre;
}

main>div {
  margin: 40px 16px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input:not([type="checkbox"]),
textarea {
  border: 2px solid var(--gray-800);
  border-radius: var(--border-radius-xs);
  padding: 8px;
  font-size: var(--text-font-size-m);
  color: var(--gray-800);
}

textarea {
  height: 108px;
  resize: none;
}

input:not([type="checkbox"]):focus,
textarea:focus {
  border: 2px solid var(--blue-600);
  outline: none;
}

input[type="checkbox"] {
  margin: 0;
  width: 24px;
  height: 24px;
}

input::placeholder,
textarea::placeholder {
  color: var(--gray-650);
}

strong {
  font-weight: 700;
}

/* links */
a:any-link {
  color: var(--link-color);
  text-decoration: none;
  overflow-wrap: break-word;
}

a:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* buttons */
a.button:any-link,
button,
input[type="submit"] {
  box-sizing: border-box;
  max-width: 100%;
  margin: 12px 0;
  border-radius: 2.4em;
  padding: 0.5rem 1rem;
  font-family: var(--body-font-family);
  font-style: normal;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-font-size-m);
  background-color: var(--background-color);
  border: 3px solid var(--gray-800);
  color: var(--gray-800);
  display: inline-flex;
  align-items: center;
}

a.button.primary,
button.primary,
input[type="submit"].primary {
  background-color: var(--gray-700);
  border: 3px solid var(--gray-800);
  color: var(--white-color);
  border-radius: 9999px;
  padding: 15px 24px;
  font-size: var(--text-font-size-l);
}

a.button.secondary,
button.secondary,
input[type="submit"].secondary {
  background-color: var(--yellow-500);
  border: 3px solid var(--gray-800);
  color: var(--gray-800);
}

input[type="submit"] {
  border: 2px solid var(--gray-800);
}

button:disabled,
button:disabled:hover,
input[type="submit"]:disabled,
input[type="submit"]:disabled:hover,
a.button:disabled,
a.button:disabled:hover {
  cursor: unset;
}

a.button:not([disabled]):hover,
button:not([disabled]):hover,
input[type="submit"]:not([disabled]):hover {
  background-color: var(--yellow-300);
  color: var(--black-color);
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

button .icon,
a.button .icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
}

button .icon img,
a.button .icon img {
  height: 18px;
  width: 18px;
}


/* sections */
main>.section {
  margin: 40px 0;
}

main>.section>div {
  max-width: 1228px;
  margin: auto;
  padding: 0 24px;
}

main>.section:first-of-type {
  margin-top: 0;
}

@media (width >=900px) {
  main>.section>div {
    padding: 0 32px;
  }
}

/* section metadata */
main .section.light,
main .section.highlight {
  background-color: var(--light-color);
  margin: 0;
  padding: 40px 0;
}

/* Animations */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes blur-in {
  from {
    opacity: 0;
    filter: blur(15px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Search Results */
.search-results {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-results-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  width: 100%;
}

.search-results h1,
.search-results h2 {
  margin: 0;
}

.search-results ul {
  list-style: none;
  max-width: 600px;
  width: 100%;
  padding: 0 24px;
}

.search-results ul li {
  text-decoration: none;
  border-bottom: 1px solid var(--gray-500);
  padding: 8px 0;
  font-weight: 600;

  & a {
    color: var(--blue-600);

    &:hover {
      text-decoration: none;
    }
  }

  & p {
    font-style: italic;
    margin: 8px 0;
  }
}

@media (width < 768px) {
  .search-results h1 {
    font-size: var(--title-font-size-l);
  }
}

/* Max-width */
.section[data-max-width="600"] > div {
  max-width: 600px;
}

.section[data-max-width="800"] > div {
  max-width: 800px;
}

.section[data-max-width="1000"] > div {
  max-width: 1000px;
}

/* form modal */
body .form-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(0 0 0 / 70%);
  z-index: var(--z-index-modal);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

body .form-modal-content {
  padding: 16px;
  width: 400px;
  background-color: var(--gray-300);
  border-radius: var(--border-radius-lg);
  position: relative;
}

body .form-modal-content .section {
  margin: 0;
}

body .form-modal-content .section>div {
  padding: 0;
}

body .form-modal-content .section>div>p {
  margin: 0;
}

body .form-modal-content .form-title {
  font-size: var(--text-font-size-xl);
  text-align: center;
}

body .form-modal-content .form-description {
  text-align: center;
}

body .form-modal-content.embed-form-content {
  background: var(--white-color);
  padding: 0;
  border-radius: 4px;
  max-width: 90vw;
  width: 794px;
  height: 658px;
}

body .form-modal-content .form-modal-close-button {
  position: absolute;
  top: 0;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: var(--z-index-modal);
  padding: 0;
  background-image: url('/icons/close.svg');
  filter: invert(1);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 16px;
  height: 16px;
}

body .form-modal-content.embed-form-content .form-modal-close-button {
  top: -50px;
  right: -4px;
  filter: invert(0);
  width: 28px;
  height: 28px;
}

body .form-modal-content.embed-form-content .form-iframe {
  border-radius: 4px;
  width: 100%;
  height: 100%;
}

body form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body form .form-field:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
}

body form .form-message {
  font-style: italic;
  text-align: center;
  font-size: var(--text-font-size-m) !important;
}

form .form-field input:not([type="checkbox"], [type="submit"]),
form .form-field textarea {
  width: calc(100% - 20px);
}

form .form-field-description {
  text-align: left;
}

body .form-privacy {
  margin: 0;
  text-align: left;
}

body form .form-privacy {
  font-size: var(--text-font-size-s) !important;
}

/* Aside styles */
main .section.aside-container {
  max-width: 1228px;
}

/* Blog Template Styles */
body.blog-article main > .section:not(.trust-pilot-container) > div,
body.blog-article main > .section.aside-container,
body.blog-topic main > .section:not(.trust-pilot-container) > div,
body.blog-topic main > .section.aside-container,
body.blog-main main > .section:not(.trust-pilot-container) > div,
body.blog-main main > .section.aside-container {
  max-width: 1000px;
}

/* Aside and Trustpilot Template Styles */
body.aside-and-trustpilot main .default-content-wrapper>* {
  text-align: left;
}

body.blog-article main .default-content-wrapper>* {
  text-align: left;
}

/* UAE Template Styles */
/* stylelint-disable no-descending-specificity */

body.uae main {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  td,
  th {
    text-align: right;
    direction: rtl;
  }

  .center-container,
  .callout:not(.grid) {
    h1, h2, h3, h4, h5, h6, p { text-align: center; }
  }

  .callout.grid h1,
  .callout.grid h2 { text-align: center !important; }

  a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: isolate;
  }

  .section.teal {
    background-color: var(--gray-150);
    border-radius: var(--border-radius-lg);
  }
}