:root {
  --bg-color: #CCE9F5;
  --accent-color: #409EFF;
  --white: #FFF;

  --base-text-color: #3B3C40;
  --secondary-text-color: #A0A1A7;
  --error-text-color: #C45656;
  --button-text-color: #606266;

  --border-color: #DCDFE6;
  --border-color-error: #C36355;

  --base-font-size: 14px;
  --small-font-size: 13px;
  --large-font-size: 18px;

  --border-radius: 4px;
  --field-height: 40px;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  background: var(--bg-color);
  margin: 0;
  padding: 2rem;

  overflow-x: hidden;
  overflow-y: auto;

  font-family: 'PT Root UI', sans-serif;
  font-weight: 500;
  font-size: var(--base-font-size);
  line-height: 22px;
  color: var(--base-text-color);
  /* position: relative; */
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: -670px;
  width: 1706px;
  height: 912px;
  opacity: 0.3;
  background-image: 
    linear-gradient(90deg, rgba(204, 233, 245, 0) 50%, #CCE9F5 110.87%),
    linear-gradient(180deg, rgba(204, 233, 245, 0) 0%, #CCE9F5 100%),
    url('./../assets/background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 767px) {
  body {
    padding: 0 16px;
  }
  body::before {
    top: 0;
    left: -247px;
    width: 761px;
    height: 507px;
  }
}

.guest-container-mobile {
  display: none;
}

@media (max-width: 767px) {
  .guest-container-mobile {
    display: block;
  }

  .guest-container {
    display: none;
  }
}

/* @media (min-width: 768px) {
  .guest-container-mobile {
    display: none;
  }

  .guest-container {
    display: block;
  }
} */

/* p {
  margin: 0;
} */

.guest_form h2 {
  font-weight: 700;
  font-size: var(--large-font-size);
  line-height: 1.4;
}

input.invalid,
select.invalid {
  box-shadow: inset 0 0 0 1px var(--border-color-error);
}

.hidden {
  display: none;
}

.top-space {
  margin-top: 22px;
}

.flex-center {
  display: flex;
  align-items: center;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.required::after {
  content: "*";
  color: #F56C6C;
}

.container {
  max-width: 676px;
  /* position: relative; */
  margin: auto;
  padding-top: 54px;
}

@media (max-width: 767px) {
  .container {
    max-width: 358px;
    padding-top: 80px;
  }
}

.qr-block {
  max-width: 676px;
  position: relative;
  margin: auto;
  /* padding-top: 54px; */
}

@media (max-width: 767px) {
  .qr-block {
    max-width: 358px;
    /* padding-top: 80px; */
  }
}

.header {
  justify-content: space-between;
  margin: 0 0 64px 0;
  font-size: var(--large-font-size);
  line-height: 1.4;
}

@media (max-width: 767px) {
  .header {
    flex-direction: column;
    font-size: var(--base-font-size);
    margin: 0 0 40px 0;
  }
}

.header_logo {
  width: 194.74px;
  height: 115.16px;
}

@media (max-width: 767px) {
  .header_logo {
    width: 148.81px;
    height: 88px;
    margin-bottom: 21px;
  }
}

.header_right {
  width: 449px;
}

@media (max-width: 767px) {
  .header_right {
    width: 344px;
    text-align: center;
  }
}

.qr-header {
  justify-content: center;
  margin-bottom: 64px;
  font-size: var(--large-font-size);
  line-height: 1.4;
}

.qr-header p {
  text-align: center;
}

.prefix_guest {
  margin-top: 23px;
}

.guest_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 449px;
  height: 25px;
  margin-left: 227px;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .guest_header {
    max-width: 358px;
    margin: 0 auto;
    align-items: start;
  }

  h2 {
    font-size: var(--large-font-size);
    margin: 0;
  }
}

.fields {
  display: flex;
  justify-content: space-between;
}

.labels-column {
  display: flex;
  flex-direction: column;
  width: 215px;
  margin-right: 9px;
}

.fields-column {
  display: flex;
  flex-direction: column;
  width: 449px;
}

.labels-column .label-field,
.fields-column > * {
  margin-bottom: 17px;
}

.label-field {
  justify-content: flex-end;
  width: 100%;
  height: var(--field-height);
}

.labels-column label {
  padding-right: 5px;
}

.field input {
  height: 40px; /* изменить на 40 */
  width: 449px; /* изменить на 449 */
  max-width: 100%;
}

.field-mobile input {
  height: 100%;
  width: 100%; /*326px*/
  max-width: 100%;
  margin-top: 4px;
}

.field select,
.field-mobile select {
  height: var(--field-height);
  width: 449px;
  max-width: 100%;
}

.field input,
.field select,
.field-mobile input,
.field-mobile select {
  font-family: 'PT Root UI', sans-serif;
  font-size: var(--base-font-size);
  line-height: 22px;
  border: none;
  padding: 9px 16px;
  border-radius: var(--border-radius);
  background-color: var(--white);
}

.custom-select {
  color: var(--base-text-color);
}

.custom-select option[disabled],
.custom-select option[hidden] {
  color: var(--secondary-text-color);
}

input::placeholder {
  color: #A8ABB2;
}

.input-border {
  /* border: none; */
  box-shadow: inset 0 0 0 1px var(--border-color);
}

.field .date-input,
.field-mobile .date-input {
  width: 135px;
  cursor: pointer;
  padding: 9px 16px 9px 39px;
  background-image: url('./../assets/Calendar.png');
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 14px;
}

.field .phone-input {
  width: 200px;
  margin-right: 16px;
}

.field-mobile-phone {
  width: 100%;
  justify-content: space-between;
}

.field-mobile .phone-input {
  width: 187px;
  margin: 0;
}

.phone-approve-container_call, 
.phone-approve-container_sms {
  padding: 8px 16px 20px;
  border-radius: var(--border-radius);
  background-color: #F5F7FA;
}

.phone-approve-container_call p,
.phone-approve-container_sms p {
  font-weight: 400;
  margin: 0;
}

.phone-approve_info label {
  display: inline-block;
  margin-bottom: 23px;
}

.phone-approve_block-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.phone-approve_block-bottom p:not(:last-child) {
  margin-bottom: 20px;
}

.phone-approve_img img {
  width: 88px;
}

.phone-approve_call-link {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: var(--accent-color);
  text-decoration: none;
}

.phone-approve_sms-info p {
  margin-top: 20px;
}

.phone-approve_sms-code {
  height: 70px;
  justify-content: space-between;
  margin-top: 20px;
}

.phone-approve_sms-code label {
  margin-bottom: 8px;
}

.phone-approve__left {
  /* width: 200px; */
  margin-right: 12px;
}

.phone-approve__left input {
  width: 168px;
}

.phone-approve__right p {
  font-weight: 400;
  color: var(--secondary-text-color);
  margin: 0;
}

.accent_link {
  color: var(--accent-color);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 400;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  color: #A8ABB2;
}

select:not([multiple]) {
  padding-right: 16px;
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px auto;
  background-image: url('./../assets/arrow-down.png');
}

select::-ms-expand {
  display: none;
}

select option:not([value=""]) {
  color: var(--base-text-color);
}

.radio_inputs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  height: var(--field-height);
}

.field .radio_input {
  width: 126px;
  height: 38px;
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--button-text-color);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.radio_input input {
  width: 14px;
  height: 14px;
  margin: 7px;
}

@media (max-width: 767px) {
  .radio_inputs {
    width: 100%;
    justify-content: space-between;
    margin-top: 4px;
  }

  .field .radio_input {
    width: 170px;
  }
}

@media (max-width: 767px) {
  .fields-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }

  .field-mobile {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
  }
}

.remove-guest {
  color: var(--error-text-color);
  cursor: pointer;
  padding: 5px;
  border: none;
  background-color: var(--bg-color);
}

.error-text {
  color: var(--error-text-color);
  font-weight: 400;
  font-size: var(--small-font-size);
  line-height: 22px;
}

.invalid {
  border-color: var(--border-color-error);
}

.submit-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 60px 0 228px;
  margin-top: 30px;
}

@media (max-width: 767px) {
  .submit-form {
    padding: 0 0 40px 0;
    margin-top: 40px;
  }
}

.qr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 370px;
  height: 436px;
  padding-top: 72px;
  margin-bottom: 40px;
  background-color: #FFFFFF;
  border-radius: 16px;
  overflow: visible;
}

@media (max-width: 767px) {
  .qr-card {
    width: 358px;
    height: 422px;
  }
}

.qr-logo {
  position: absolute;
  top: -55px;
  right: 68px;
}

.qr-name {
  text-align: center;
  font-size: 30px;
  line-height: 1.1;
}

.qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 370px;
  height: 370px;
  border-radius: 16px;
  background-color: #FFFFFF;
}

@media (max-width: 767px) {
  .qr-container {
    width: 356px;
    height: 356px;
  }
}

.actions {
  width: 100%;
  justify-content: flex-start;
}

@media (max-width: 767px) {
  .actions {
    justify-content: space-between;
  }
}

.qr-actions {
  justify-content: center;
  gap: 16px;
}

.button {
  height: var(--field-height);
  border-radius: var(--border-radius);
  color: var(--button-text-color);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 9px 20px;
  cursor: pointer;
}

.accent_button {
  margin-right: 16px;

  color: var(--white);
  background-color: var(--accent-color);
  border: none;
}

.button_phone-comfirmed {
  background-color: var(--bg-color);
  border: none;
  cursor: default;
}

.disabled {
  background-color: var(--border-color);
  color: var(--secondary-text-color);
}

.qr_button {
  color: var(--white);
  background-color: var(--accent-color);
  border: none;
  width: 100%;
}

@media (max-width: 767px) {
  .accent_button {
    margin: 0;
    width: 171px;
  }
}

.agreement {
  color: var(--base-text-color);
  font-size: var(--small-font-size);
  line-height: 1.4;
  margin-bottom: 16px;
}

.agreement label {
  margin: 5px 10px;
}

@media (max-width: 767px) {
  .agreement {
    width: 100%;
  }
}

.link {
  text-decoration: underline;
  color: #005A95;
}

.edit-link {
  padding: 9px 20px;
  color: var(--button-text-color);
  font-weight: 400;
  text-decoration: none;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}