@font-face {
  font-family: 'Mont';
  src: url('../fonts/Mont-ExtraLightDEMO.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Mont';
  src: url('../fonts/Mont-HeavyDEMO.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

:root {
  --font-family: 'Manrope', sans-serif;
  --second-family: 'Open Sans', sans-serif;
  --third-family: 'Mont', sans-serif;
  --font3: 'TT Firs Neue', sans-serif;
  --font4: 'IBM Plex Sans', sans-serif;
  --font5: 'Raleway', sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope';
  background: radial-gradient(149.58% 50% at 50% 50%, #b550e7 0%, #5c12a1 100%);
  line-height: 1.5;
}

/* App Container */
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.gr {
  font-family: var(--font4);
  font-size: 12px;
  line-height: 1;
  color: rgba(49, 60, 78, 0.5);
}

/* Header */
.header {
  width: 100%;
  background: #5c12a1;
  border-bottom: 1px solid #f2f1f0;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 20px 15px;
}

.header-content img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 142px;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.brand {
  width: 84.67px;
}

/* Main Content */
.main {
  width: 100%;
  max-width: 375px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 100px 10px 0;
}

/* Badge */
.badge-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.badge {
  background: #ac4ae1;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.07px;
  line-height: 13px;
}

/* Chat Container */
.chat-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* Message Wrapper */
.message-wrapper {
  position: relative;
  width: 100%;
  padding-left: 40px;
  margin-bottom: 15px;
}

.avatar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 32px;
  object-fit: cover;
}

/* Message Card */
.message-card {
  background-color: white;
  border-radius: 10px 10px 5px 0px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  padding: 8px 15px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.message-header {
  font-family: 'Manrope', sans-serif;
  font-weight: bold;
  font-size: 14px;
  margin-top: -1px;
}

.brand-blue {
  color: #5c12a1;
}

.brand-red {
  color: #0e65b7;
}

.message-content {
  font-family: 'Manrope', sans-serif;
  color: #313c4e;
  font-size: 14px;
}

.message-content.bold {
  font-weight: bold;
}

.medium {
  font-weight: 500;
}

.bold {
  font-weight: bold;
}

.message-time {
  display: flex;
  justify-content: flex-end;
  font-family: 'Manrope';
  color: #7a7a7a;
  font-size: 10px;
  margin-top: 5px;
}

/* Question Section */
.question-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  width: 100%;
}

/* Button Group */
.button-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  margin-top: 5px;
}

.button-group-columns {
  flex-wrap: wrap;
  flex-direction: row;
}

.response-button {
  width: 100%;
  padding: 15px 25px;
  background: #eacdfc;
  color: #5c12a1;
  border: none;
  border-radius: 10px;
  font-family: 'Manrope';
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: 1px solid #ffffff;
}

.button-group-columns .response-button {
  max-width: 48%;
  font-weight: 400;
  padding: 15px;
}

.response-button:hover {
  background: #5c12a1;
  color: white;
}

/* User Message */
.user-message-wrapper {
  position: relative;
  width: 100%;
  padding-left: 40px;
  margin-bottom: 15px;
  display: flex;
  justify-content: flex-end;
}

.user-message {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  background: #5c12a1;
  border-radius: 10px 10px 0px 10px;
  box-shadow: 0px 0px 5px 0px #0000001a;
  color: white;
  /* width: 100%; */
  justify-content: space-between;
}

.user-text {
  font-family: 'Manrope';
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}

.user-time {
  font-family: 'Manrope';
  font-size: 10px;
  margin-left: 5px;
  /* margin-right: 5px; */
  margin-bottom: -6px;
}

.check-icon {
  font-size: 12px;
  flex-shrink: 0;
  margin-bottom: -16px;
}

/* Form Section */
.form-section {
  position: relative;
  width: 100%;
  /* padding-left: 40px; */
  margin-bottom: 15px;
}

.form-section .message-wrapper {
  padding-left: 0;
  max-width: 100%;
}

.form-card {
  background-color: white;
  border-radius: 10px;
  padding: 20px 25px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  color: #313c4e;
  font-size: 18px;
  text-align: center;
  line-height: 1.3;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__text,
.form-label {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 120%;
  color: #313c4e;
  text-align: start;
  /* margin-bottom: 10px; */
}

.form-input {
  display: flex;
  align-items: center;
  padding: 22px 19px;
  background: #eacdfc;
  border-radius: 6px;
  border: 1px solid #5c12a1 !important;
  border: none;
  width: 100%;
}

.placeholder {
  line-height: 12px;
  font-family: var(--second-family);
  font-size: 14px;
  line-height: 1;
  color: #636363;
}

/* Time Slots */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.time-slot,
.cont__mes {
  display: flex;
  align-items: center;
  background: #eacdfc;
  border: 1px solid #5c12a1;
  border-radius: 10px;
  padding: 15px 25px;
  /*color: #fff;*/
  color: #5c12a1;
  font-family: var(--second-family);
  font-size: 13px;
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 48%;
  justify-content: center;
}

.time-slot.active,
.cont__mes.active {
  background: #5c12a1;
  color: white;
}

.time-slot:hover:not(.active),
.cont__mes:hover:not(.active) {
  background: #5c12a1;
  border: 1px solid #fff;
}

/* Phone Input */
.phone-input {
  display: flex;
  align-items: center;
  background-color: #e7f1ff;
  border-radius: 6px;
  overflow: hidden;
}

.country-code {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
}

.flag {
  width: 18px;
  height: 12px;
  background: linear-gradient(to bottom, white 33%, #0039a6 33%, #0039a6 66%, #d42b1d 66%);
}

.country-code span {
  color: #595959;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
}

.arrow {
  font-size: 8px;
}

.phone-placeholder {
  padding: 15px 0;
  color: #595959;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  flex: 1;
}

/* Submit Button */
.submit-button {
  width: 100%;
  height: 50px;
  background: #5c12a1;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-button:hover {
  background: #5c12a1;
  border: 1px solid #fff;
}

/* Responsive Design */
@media (max-width: 400px) {
  .main {
    max-width: 100%;
    padding: 100px 15px 0;
  }

  .header {
    max-width: 100%;
  }

  .message-wrapper,
  .form-section {
    padding-left: 45px;
  }

  .user-message-wrapper {
    padding-left: 45px;
  }

  .avatar {
    left: 5px;
  }
}

/* Animation for showing elements */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.loadCnt {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 15px;
  display: none;
  background: #ffffff9c;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.loadScreen {
  display: flex;
  padding: 15px;
  background: #fff;
  box-shadow: 0px 0px 5px 0px #0000001a;
  border-radius: 10px;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 30px;
  z-index: 9999;
}

.loadScreen img {
  max-width: 100px;
}

.preloader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  position: fixed;
  background: #fff;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.preloader img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 250px;
}
