/* @import url('https://fonts.googleapis.com/css2?family=SF Pro Display:ital,wght@0,100..900;1,100..900&display=swap'); */

/* cyrillic-ext */
@font-face {
  font-family: "SF Pro Display";
  src: url(../fonts/SFProDisplay-Bold.woff) format("woff");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

body {
  margin: 0;
  font-family: "SF Pro Display", sans-serif;
}

.top-avatar {
  width: 60px;
}

.flag {
  width: 100px;
}

.top-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  height: 100px;
}

@media (max-width: 550px) {
  .top-container {
    flex-direction: column;
  }

  .top-avatar {
    margin-right: unset;
    margin: 0 auto !important;
  }
}

input[name="phone2"].error {
  color: red !important;
}

.flag {
  font-family: "SF Pro Display", sans-serif;
}

.error {
  border: 1px solid red;
  margin-bottom: 10px !important;
}

input[type="tel"] {
  width: 100%;
}

.iti {
  width: 100%;
}

.overlay-HIYyFVszYb {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  overflow-y: auto;
  display: none;
}

.lds-spinner-HIYyFVszYb {
  color: official;
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-spinner-HIYyFVszYb div {
  transform-origin: 40px 40px;
  animation: lds-spinner-HIYyFVszYb 1.2s linear infinite;
}

.lds-spinner-HIYyFVszYb div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: #fff;
}

.lds-spinner-HIYyFVszYb div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}

.lds-spinner-HIYyFVszYb div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}

.lds-spinner-HIYyFVszYb div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}

.lds-spinner-HIYyFVszYb div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}

.lds-spinner-HIYyFVszYb div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}

.lds-spinner-HIYyFVszYb div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}

.lds-spinner-HIYyFVszYb div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}

.lds-spinner-HIYyFVszYb div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}

.lds-spinner-HIYyFVszYb div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}

.lds-spinner-HIYyFVszYb div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}

.lds-spinner-HIYyFVszYb div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}

.lds-spinner-HIYyFVszYb div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}

@keyframes lds-spinner-HIYyFVszYb {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.visible-HIYyFVszYb {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.plug {
  display: flex;
  top: 0;
  position: fixed;
  overflow: hidden;
  height: 100%;
  width: 100%;
  background: white;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-align: center;
  font-weight: bold;
  font-family: "SF Pro Display", sans-serif;
  padding: 0 20px;
}

* {
  box-sizing: border-box;
}

.main-bg {
  /* background: #f4f4f4; */
  height: 100vh;
}

.date {
  margin: auto;
  padding: 7px 20px;
  border-radius: 60px;
  width: fit-content;
  background: white;
  font-family: "SF Pro Display", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  color: #000000;
  position: relative;
}

.left-chat .chat-block,
.right-chat .chat-block {
  background: #c2ffd7;
  border-radius: 0px 16px 16px 16px;
  background: #eee;

  padding: 16px 20px 22px 16px;
  font-family: "SF Pro Display", sans-serif;
  font-style: normal;
  font-weight: 100;
  font-size: 18px;
  line-height: 20px;
  max-width: 100%;

  color: #000000;
}

.right-chat .chat-block {
  border-radius: 26px 4px 26px 26px;
  border-radius: 16px 0px 16px 16px;
  background: #e7e2fc;
}

.chat {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 69%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-chat {
  width: 100%;
  height: 100%;
  overflow: auto;
  padding-inline: 10px;
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  background: var(--ios-status-bar-status-bar-background-color, #fff);
  backdrop-filter: blur(37px);
  display: block;
  padding: 8%;
}

.chat-header {
  width: 100%;
  padding: 3% 8%;
  border-radius: 20px 20px 0px 0px;
  border-bottom: 1px solid #eee;
  background: var(--ios-status-bar-status-bar-background-color, #fff);
  box-shadow: 0px 4px 10px 0px rgba(136, 136, 136, 0.2);
  z-index: 1000;
  display: block;
  justify-content: space-around;
  position: absolute;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 52px;
  height: auto;
}

.logo h2 {
  font-size: 1.8rem;
  font-weight: 500;
  padding-left: 10px;
}

.profile-container {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  background-color: #d3d3d3; /* Placeholder for profile image */
}

.profile-info {
  flex-grow: 1;
}

.profile-name {
  color: var(--ios-status-bar-status-bar-text-color, #000);
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 0%;
}

.status {
  color: #28a745; /* Green for online status */
  font-size: 14px;
  position: relative;
  margin-left: 1.5rem;
}
.status:before {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='icon_online'%3E%3Cg id='Ellipse 4'%3E%3Ccircle cx='8' cy='8.00098' r='4' fill='%231ACF66'/%3E%3Ccircle cx='8' cy='8.00098' r='6' stroke='%231ACF66' stroke-opacity='0.3' stroke-width='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  left: -1.5rem;
}

.company-logo {
  height: 24px; /* Adjust based on logo size */
}

.main-chat::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.custom-form {
  width: 40%;
  margin: 14px auto auto;
  height: 80%;
  padding-bottom: 30px;
}

.left-chat,
.right-chat {
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 16px;
  justify-content: left;
}

.right-chat {
  justify-content: right;
  flex-direction: row-reverse;
  width: 100%;
}

.time {
  margin-left: 12px;
  margin-right: 12px;
  font-family: "SF Pro Display", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 12px;

  color: rgba(255, 255, 255, 0.7);
}

.horizontal,
.vertical {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
}

.vertical {
  justify-content: left;
  flex-direction: column;
}

.horizontal {
  justify-content: left;
  flex-direction: row;
  position: relative;

  display: flex;
  align-items: center;
  /* Ð´Ñ€ÑƒÐ³Ð¸Ðµ ÑÑ‚Ð¸Ð»Ð¸ */
}

.horizontal:before {
  content: "";
  display: block;
  width: 12px;
  height: 62px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='63' viewBox='0 0 14 63' fill='none'%3E%3Cpath d='M1 0.999999L0.999998 31C0.999998 34.3137 3.68629 37 7 37L13 37' stroke='%23DDDDDD' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: cover;
  position: relative;
  margin-right: 10px;
  top: -13px;
}

.horizontal:first-of-type:before {
  content: "";
  width: 12px;
  height: 62px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='63' viewBox='0 0 14 63' fill='none'%3E%3Cpath d='M1 0.999999L0.999998 31C0.999998 34.3137 3.68629 37 7 37L13 37' stroke='%23DDDDDD' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: cover;
  position: absolute;
  left: 0;
  top: 33%;
  transform: translateY(-50%);
}

.horizontal.hide:before {
  content: none; /* Ð£Ð±Ð¸Ñ€Ð°ÐµÐ¼ ÐºÐ¾Ð½Ñ‚ÐµÐ½Ñ‚ Ð¿ÑÐµÐ²Ð´Ð¾ÑÐ»ÐµÐ¼ÐµÐ½Ñ‚Ð° */
}

.answer-btn {
  font-family: "SF Pro Display", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: #000;
  transition: all 0.3s ease-in-out;
  margin-bottom: 16px;
  cursor: pointer;
  border-radius: 8px;
  border: 4px solid rgba(255, 213, 67, 0.3);
  background: #ffd543;
  display: flex;
  height: 52px;
  padding: 20px 52px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-left: 20px;

  color: #222;
  leading-trim: both;
  text-edge: cap;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%; /* 22.4px */
}

.vertical .answer-btn {
  width: 100%;
}

.answer-btn:hover {
  background: rgb(246, 206, 66);
}

.form-wrapper {
  padding: 10px;
}

.form {
  display: block;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  box-shadow: 0px 0px 10px 0px #fff;
  width: 100%;
}

.form h4 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 13px;
  font-size: 1.5rem;
}

.form input {
  width: 100%;
  border-radius: 10px;
  padding: 10px 20px 10px 20px;
  border: 2px solid black;
  margin-bottom: 10px;
  font-family: "SF Pro Display", sans-serif;
  font-size: 15px;
}

.form-input {
  border-radius: 5px;
  border: 2px solid black;
}

.form button {
  display: block;
  font-family: "SF Pro Display", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: #000;
  background: #50c646;
  border: 2px solid #50c646;
  border-radius: 10px;
  padding: 14px 25px;
  width: 240px;
  height: 50px;
  transition: all 0.3s ease-in-out;
  margin: 10px auto;
}

@media screen and (max-width: 767px) {
  .main-chat,
  .custom-form {
    width: 100%;
  }
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper label {
  position: absolute;
  left: 10px;
  top: 15px;
  font-family: "SF Pro Display", sans-serif;
  font-size: 15px;
  line-height: 16px;
  color: #000;
}

.submit-wrapper {
  width: 100%;
  position: relative;
}

.loader {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 10px;
  background: linear-gradient(0deg, #c2ffd7 0%, #c2ffd7 100%), #d1fedd;
  color: #000 !important;
  border: none;
  transition: all 250ms ease;
  width: 240px;
  height: 50px;
  padding: 10px 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18px;
  left: 50%;
  transform: translate(-50%, 0);
}

.new-logo {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;

  margin-right: auto;
}

.new-logo img {
  width: 100px;
}

.new-logo h2 {
  font-size: 30px;
  color: #fff;
  text-transform: uppercase;
  font-style: bold;
}

.new-logo .flag {
}

@media (max-width: 860px) {
  /* .flag{
margin-right: unset;
margin-left: auto;

}
.new-logo{
width: 100%;
padding: 0 10px;
} */
  .new-logo img {
    width: 50px;
  }

  .new-logo h2 {
    font-size: 18px;
  }

  .flag {
    width: 40px;
    height: auto;
  }

  @media (max-width: 500px) {
    .new-logo {
      width: 100%;
      padding: 0 10px;
    }

    .flag {
      margin-right: unset;
      margin-left: auto;
    }

    .top-container {
      height: 150px;
      justify-content: flex-start;
    }
  }
}

.error-message {
  color: red;
}

/* prewiew */

.preview-content {
  background: rgba(
    255,
    255,
    255,
    0.8
  ); /* ÐŸÐ¾Ð»ÑƒÐ¿Ñ€Ð¾Ð·Ñ€Ð°Ñ‡Ð½Ñ‹Ð¹ Ñ„Ð¾Ð½ */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center; /* Ð¦ÐµÐ½Ñ‚Ñ€Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ðµ Ñ‚ÐµÐºÑÑ‚Ð° */
}

.preview-content h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.preview-content p {
  margin-bottom: 20px;
}

.preview-content button {
  background-color: #50c646; /* Ð¦Ð²ÐµÑ‚ ÐºÐ½Ð¾Ð¿ÐºÐ¸ */
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.preview-content button:hover {
  background-color: #45b03a; /* Ð¦Ð²ÐµÑ‚ Ð¿Ñ€Ð¸ Ð½Ð°Ð²ÐµÐ´ÐµÐ½Ð¸Ð¸ */
}

.form_header {
  width: 100%;
  padding: 3% 5%;
  border-radius: 20px 20px 0px 0px;
  border-bottom: 1px solid #eee;
  background: var(--ios-status-bar-status-bar-background-color, #fff);
  box-shadow: 0px 4px 10px 0px rgba(136, 136, 136, 0.2);
  z-index: 1000;
  display: block;
  justify-content: space-around;
  top: 0;
}

.form_header_container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
}

.form_header_info {
  display: flex;
  font-size: 18px;
  text-align: center;
}

.form_header .logo h2 {
  font-size: 18px;
}

@media (max-width: 1000px) {
  @media (max-width: 768px) {
    .full-height {
      height: calc(100vh - env(safe-area-inset-bottom));
      box-sizing: border-box;
      padding-bottom: env(safe-area-inset-bottom);
    }
  }
}

.custom-form {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 75% !important;
  height: 69% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.rf-form__header {
  color: #222 !important;
  leading-trim: both !important;
  text-edge: cap !important;
  font-size: 24px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 100% !important; /* 24px */
  letter-spacing: -0.48px !important;
}

.logo-header {
  border-radius: 40px !important;
  margin-bottom: 20px;
  border: 2px solid #fff;
  background: #eeebebf2;
  justify-content: center;
  align-items: center;
  display: flex;
  padding: 20px;
}

.chat-head {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: #ffffff;
  position: relative;
  overflow-x: hidden;
}

/* Danish flag banner — top only, fixed so it stays put on all sizes */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: url("../images/flag.png") center center / cover no-repeat;
  z-index: 0;
}

/* ── page shell ──────────────────────────────────────── */
.page-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* push content below the flag banner */
  padding: 40px 20px 60px;
  min-height: 100vh;
}

/* ── wrapper ─────────────────────────────────────────── */
.chat-wrapper {
  width: 100%;
  max-width: 900px;
}

/* ── header card ─────────────────────────────────────── */
.chat-header-card {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-name {
  font-size: 22px;
  font-weight: 500;
  color: #000;
  line-height: 1.2;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #1acf66;
  margin-top: 5px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #1acf66;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(26, 207, 102, 0.25);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 500;
  color: #000;
}

.logo-section img {
  width: 46px;
  height: 46px;
}

/* ── chat body ───────────────────────────────────────── */
.chat-body {
  background: #fff;
  border-radius: 0 0 20px 20px;
  padding: 36px 50px 42px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.chat-msg {
  display: inline-block;
  background: #eeeeee;
  border-radius: 0 16px 16px 16px;
  padding: 16px 22px;
  font-size: 17px;
  color: #000;
  max-width: 88%;
  margin-bottom: 14px;
  line-height: 1.45;
  font-weight: 300;
}

/* ── answer buttons row ──────────────────────────────── */
.buttons-row {
  display: flex;
  align-items: center;
  margin-top: 6px;
  padding-left: 26px;
  position: relative;
}

.buttons-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: -26px;
  width: 13px;
  height: 62px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='63' viewBox='0 0 14 63' fill='none'%3E%3Cpath d='M1 0.999999L0.999998 31C0.999998 34.3137 3.68629 37 7 37L13 37' stroke='%23DDDDDD' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

.answer-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #222;
  background: #ffd543;
  border: 4px solid rgba(255, 213, 67, 0.3);
  border-radius: 10px;
  height: 52px;
  padding: 0 52px;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 16px;
}

.answer-btn:first-child {
  margin-left: 0;
}

.answer-btn:hover {
  background: #f6ce42;
}

/* ── tablet (≤ 900px) ────────────────────────────────── */
@media (max-width: 900px) {
  .chat-header-card {
    padding: 18px 28px;
  }

  .logo-section {
    font-size: 22px;
  }

  .logo-section img {
    width: 38px;
    height: 38px;
  }

  .chat-body {
    padding: 28px 32px 36px;
  }

  .chat-msg {
    font-size: 16px;
  }
}

/* ── mobile (≤ 640px) — fixed layout, chat scrolls ───── */
@media (max-width: 640px) {
  html,
  body {
    overflow: hidden;
  }

  body::before {
    height: 200px;
    background-size: cover;
    background-position: center center;
  }

  .page-content {
    /* fill full screen, start below the flag */
    height: 100vh;
    padding: 0;
    padding-top: 130px;
    align-items: stretch;
    overflow: hidden;
    min-height: unset;
  }

  .chat-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 12px;
    max-width: 100%;
    /* leave a small gap below */
    padding-bottom: 16px;
  }

  .chat-header-card {
    padding: 14px 16px;
    flex-shrink: 0;
  }

  .profile-name {
    font-size: 18px;
  }

  .logo-section {
    font-size: 20px;
    gap: 8px;
  }

  .logo-section img {
    width: 60px;
    height: 40px;
  }

  .chat-body {
    /* take all remaining space and scroll internally */
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px 24px;
    border-radius: 0 0 16px 16px;
  }

  /* hide scrollbar visually but keep it functional */
  .chat-body::-webkit-scrollbar {
    display: none;
  }

  .chat-body {
    scrollbar-width: none;
  }

  .chat-msg {
    font-size: 14px;
    max-width: 100%;
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .answer-btn {
    height: 44px;
    padding: 0 28px;
    font-size: 14px;
  }
}

/* ── very small phones (≤ 375px) ─────────────────────── */
@media (max-width: 375px) {
  body::before {
    height: 160px;
  }

  .page-content {
    padding-top: 110px;
  }

  .chat-msg {
    font-size: 13px;
  }
}
