* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Qanelas Soft', sans-serif;

  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("../img/fundo.jpg");

  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 14px;
}

.container {
  width: 100%;
  max-width: 650px;
  background: rgba(255,255,255,0.96);
  padding: 38px 42px 34px;
  border-radius: 24px;
  position: relative;
  margin-top: 55px;
  border: 5px solid #000;
}

.container::before {
  content: "📅";
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 76px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}

.logo {
  display: block;
  max-width: 220px;
  margin: 0px auto 0px;
}

h1 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 30px;
}

label {
  display: block;
  margin-top: 16px;
  font-weight: bold;
  font-size: 15px;
}

input,
select,
button {
  width: 100%;
  height: 56px;
  padding: 14px;
  margin-top: 8px;
  border-radius: 13px;
  border: 1px solid #ccc;
  font-size: 16px;
}

input,
select {
  text-align: center;
  font-weight: 500;
}

select {
  text-align-last: center;
}

button {
  cursor: pointer;
  background: #000;
  color: white;
  border: none;
  font-weight: bold;
  margin-top: 20px;
  font-size: 17px;
}

#horarios {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.horario {
  padding: 18px;
  text-align: center;
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
  font-size: 17px;
  transition: 0.2s;
}

.disponivel {
  background: #000;
  color: white;
}

.disponivel:hover {
  transform: scale(1.03);
}

.ocupado {
  background: #ddd;
  color: #777;
  cursor: pointer;
}

.selecionado {
  border: 2px solid #888;
  background: #f5f5f5;
  color: #000;
}


#msg {
  text-align: center;
  font-weight: bold;
  margin-top: 22px;
  font-size: 17px;
}

.btn-cancelar {
  background: #c1121f;
  color: white;
  margin-top: 12px;
}

.btn-cancelar:hover {
  background: #9d0208;
}

.footer {
  width: 100%;
  max-width: 720px;
  margin: 0px auto 0;
  display: flex;
  justify-content: center;
}

.footer img {
  width: 90%;
  max-width: 720px;
  border-radius: 17px;
}

/* CHATBOT BESH */

#chatbot-button {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  z-index: 999999;
  background: #111;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  transition: transform 0.2s;
}

#chatbot-button:hover {
  transform: scale(1.05);
}

#chatbot-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#chatbot-box {
  display: none;
  position: fixed;
  right: 25px;
  bottom: 115px;
  width: 370px;
  height: 520px;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  z-index: 999999;
  box-shadow: 0 15px 45px rgba(0,0,0,0.25);
}

#chatbot-header {
  height: 72px;
  background: #111;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
}

#chatbot-header strong {
  display: block;
  font-size: 17px;
}

#chatbot-header span {
  display: block;
  font-size: 12px;
  opacity: 0.75;
  margin-top: 3px;
}

#chatbot-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 22px;
  cursor: pointer;
  margin-top: 0;
  padding: 0;
}

#chatbot-messages {
  height: 340px;
  overflow-y: auto;
  background: #f6f6f6;
  padding: 16px;
}

.bot-msg,
.user-msg {
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 14px;
  max-width: 90%;
}

.bot-msg {
  background: white;
  color: #111;
  border: 1px solid #e7e7e7;
}

.user-msg {
  background: #111;
  color: white;
  margin-left: auto;
}

#chatbot-options {
  height: 108px;
  padding: 12px;
  border-top: 1px solid #e5e5e5;
  background: white;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-y: auto;
}

.chat-option {
  width: auto;
  height: auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: white;
  font-size: 13px;
  cursor: pointer;
  margin-top: 0;
  transition: 0.2s;
}

.chat-option:hover {
  transform: scale(1.03);
}

.chat-option.secondary {
  background: #e5e5e5;
  color: #111;
}

/* CELULAR */

@media (max-width: 600px) {
  body {
    padding: 18px 12px;
  }

  .container {
    max-width: 100%;
    padding: 32px 22px 26px;
    border-radius: 18px;
    margin-top: 48px;
  }

  .container::before {
    width: 66px;
    height: 66px;
    top: -33px;
    font-size: 28px;
  }

  .logo {
    max-width: 165px;
    margin-bottom: 24px;
  }

  h1 {
    font-size: 25px;
  }

  #horarios {
    grid-template-columns: 1fr;
  }

  .footer {
    max-width: 100%;
    margin-top: 24px;
  }

  .footer img {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
  }

  #chatbot-box {
    width: calc(100% - 20px);
    right: 10px;
    bottom: 100px;
    height: 78vh;
  }

  #chatbot-button {
    width: 68px;
    height: 68px;
    right: 18px;
    bottom: 18px;
  }

  #chatbot-messages {
    height: calc(100% - 180px);
  }
}

.container,
.footer {
  position: relative;
  z-index: 2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.28);
  z-index: 1;
  pointer-events: none;
}

.titulo-showroom{
  width: 100%;

  text-align: center;

  font-family: 'Qanelas Soft', sans-serif;

  font-size: 34px;
  font-weight: 800;

  letter-spacing: 4px;
  line-height: 1.2;

  color: #000;

  margin-top: 0px;
  margin-bottom: 35px;

  text-transform: uppercase;
}

.popup-status{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 99999;
}

.popup-content{
  width: 90%;
  max-width: 700px;

  animation: popupAnim .25s ease;
}

.popup-content img{
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

.popup-content button{
  width: 100%;
  margin-top: 15px;
  padding: 16px;

  border: none;
  border-radius: 14px;

  background: black;
  color: white;

  font-weight: bold;
  cursor: pointer;
}

@keyframes popupAnim{
  from{
    transform: scale(.8);
    opacity: 0;
  }

  to{
    transform: scale(1);
    opacity: 1;
  }
}

.horario-cancelar {
  border: 3px solid #d90429;
  background: rgba(217, 4, 41, 0.12);
  color: #d90429;

  transform: scale(1.03);

  box-shadow:
    0 0 15px rgba(217, 4, 41, 0.25);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

.confirm-box {
  background: white;
  width: 90%;
  max-width: 420px;
  padding: 30px;
  border-radius: 22px;
  text-align: center;
  border: 3px solid #000;
  box-shadow: 0 15px 45px rgba(0,0,0,0.45);
}

.confirm-box h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.confirm-box p {
  font-size: 17px;
  margin-bottom: 24px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#confirmSim {
  background: #000;
}

#confirmNao {
  background: #c1121f;
}

.confirm-modal {
  z-index: 999999;
}

.popup-status {
  z-index: 1000000;
}

.admin-acesso {
  width: 100%;
  text-align: center;

  margin-top: 12px;
  margin-bottom: 30px;
}

.admin-acesso a {
  color: rgba(255,255,255,0.45);

  text-decoration: none;

  font-size: 13px;
  font-weight: 600;

  transition: 0.3s;
}

.admin-acesso a:hover {
  color: white;
  letter-spacing: 1px;
}

input,
select {
  transition: 0.25s;
}

input:focus,
select:focus {
  border: 2px solid #000;
  transform: scale(1.01);

  box-shadow: 0 0 15px rgba(0,0,0,0.12);
}

.btn-agendar {
  background: #000;

  transition: 0.25s;
}

.btn-agendar:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.container {
  animation: subir 0.5s ease;
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(max-width: 600px){

  .container{
    width: 92%;
    padding: 30px 22px;
  }

  .titulo-showroom{
    font-size: 42px;
    line-height: 42px;
  }

}

/* ========================= */
/* LOADING */
/* ========================= */

#loading {

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.65);

  backdrop-filter: blur(4px);

  display: none;

  align-items: center;
  justify-content: center;

  z-index: 999999;
}

.loading-box {

  background: white;

  padding: 35px;

  border-radius: 25px;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 15px;

  box-shadow:
    0 15px 40px rgba(0,0,0,0.35);
}

.loading-box img {

  width: 90px;

  animation: girar 1s linear infinite;
}

.loading-box p {

  font-size: 18px;

  font-weight: 700;

  color: #000;

  letter-spacing: 1px;
}

@keyframes girar {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

textarea {

  width: 100%;

  min-height: 120px;

  padding: 15px;

  border-radius: 14px;

  border: 2px solid #e5e5e5;

  resize: none;

  font-size: 15px;

  font-family: 'Qanelas Soft', sans-serif;

  margin-top: 8px;
  margin-bottom: 20px;

  transition: 0.25s;
}

textarea:focus {

  outline: none;

  border-color: #000;

  box-shadow:
    0 0 15px rgba(0,0,0,0.08);
}