/* Structured layout for the public hotel chat form. */
.chat-page > .chat-back {
  margin: 0 0 16px;
}

.chat-page > .chat-back > a {
  display: inline-flex;
  max-width: 100%;
  min-height: 40px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #dfe8df;
  border-radius: 999px;
  background: #fff;
  color: #315d49;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}

.chat-page > .chat-back > a:hover {
  border-color: #cddfce;
  background: #edf4ee;
}

.chat-page > .chat-back > a:focus-visible {
  outline: 3px solid #e8bd68;
  outline-offset: 3px;
}

.chat-page > .chat-box {
  padding: clamp(20px, 3.5vw, 32px);
}

.chat-page > .chat-box > h1 {
  max-width: 24ch;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.18;
}

.chat-page > .chat-box > p {
  max-width: 70ch;
  line-height: 1.65;
}

.chat-page .chat-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  width: 100%;
  min-width: 0;
  margin-top: 24px;
  padding-top: 20px;
}

.chat-page .chat-form > label {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 7px;
  width: auto;
  min-width: 0;
  flex: none !important;
  line-height: 1.4;
}

.chat-page .chat-form > label:nth-of-type(3) {
  grid-column: 1 / -1;
}

.chat-page .chat-form > label input,
.chat-page .chat-form > label textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.chat-page .chat-form > label textarea {
  min-height: 128px;
  margin-top: 0;
  resize: vertical;
}

.chat-page .chat-form > .captcha-box {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

.chat-page .chat-form > .captcha-box input[type="number"] {
  min-width: 0;
}

.chat-page .chat-form > button {
  grid-column: 2;
  align-self: center;
  justify-self: stretch;
  width: 100%;
  min-height: 48px;
  margin: 0;
}

body.seasonal-new-year-2027 .chat-page {
  padding-top: 74px;
}

@media (max-width: 640px) {
  .chat-page > .chat-back {
    margin-bottom: 12px;
  }

  .chat-page > .chat-box {
    padding: 20px;
  }

  .chat-page > .chat-box > h1 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .chat-page .chat-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 20px;
    padding-top: 16px;
  }

  .chat-page .chat-form > label:nth-of-type(3),
  .chat-page .chat-form > .captcha-box,
  .chat-page .chat-form > button {
    grid-column: 1;
  }

  .chat-page .chat-form > .captcha-box {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 8px;
    padding: 12px;
  }
}
