/* Reset de estilos básicos */
body,
h1,
p {
  margin: 0;
  padding: 0;
}

/* Estilos gerais */
body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f0f0f0;
}

header {
  background-color: #333;
  padding: 10px;
  z-index: 10;
  position: relative;
}

.logo {
  display: flex;
  justify-content: center;
}

.logo img {
  max-height: 62px;
}

.event-header {
  position: relative;
  text-align: center;
  height: 400px;
  padding: 30px 0;
}

.background-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('evento-capa.jpg') center/cover no-repeat;
  filter: blur(10px);
  z-index: 1;
}

.background-blur img {
  width: 100%; /* Adicione esta linha para ajustar a largura da imagem */
  height: 100%; /* Adicione esta linha para ajustar a altura da imagem */
}

.event-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 20px; /* Adicione bordas arredondadas */
  overflow: hidden; /* Garante que a imagem de fundo dentro do bloco não ultrapasse as bordas arredondadas */
  width: 80%; /* Define a largura do bloco em relação à largura da seção */
  max-width: 800px; /* Define a largura máxima do bloco */
  height: 400px; /* Define a altura da div event-image */
  z-index: 2;
  background-color: white; /* Define o fundo branco */
  background-size: cover; /* Ajusta o tamanho da imagem de fundo para cobrir o bloco */
  background-position: center center; /* Centraliza a imagem de fundo */
}

.event-image img {
  max-width: 100%;
  max-height: 100%; /* Define a altura máxima como 100% para manter a proporção da imagem */
}

.event-header img {
  max-width: 100%;
}

.share-button {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #00a832;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 3;
}

.event-details {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.event-details h1 {
  font-size: 24px;
  color: #333;
}

.details {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 20px;
  flex-direction: column;
  width: 60%;
}

.detail {
  margin: 0 20px;
  display: flex;
  width: 100%;
  min-height: 30px;
}

.detail i {
  font-size: 24px;
  color: #00a832;
  width: 35px;
}

.event-description {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.ticket-block {
  background-color: #fff;
  padding: 20px;
  margin: 0 20px;
  text-align: center;
  float: right;
}

.ticket {
  margin-bottom: 20px;
}

.ticket h2 {
  font-size: 18px;
  color: #333;
}

.ticket p {
  font-size: 16px;
  color: #00a832;
  margin-top: 5px;
}

.buy-button {
  background-color: #00a832;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

footer {
  text-align: center;
  background-color: #333;
  color: #fff;
  padding: 10px;
}

.informations {
  display: flex;
  justify-content: center;
}

/* Estilos para a barra lateral do carrinho de compras */
.sidebar {
  position: fixed;
  top: 0;
  right: -390px; /* Inicialmente, a barra fica fora da tela */
  width: 364px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 100;
}

.cart-content {
  padding: 20px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-content h2 {
  margin-top: 0; /* Remove a margem superior padrão */
  padding-top: 20px; /* Adiciona um espaçamento acima do título */
}

/* Estilos para o botão "Comprar" */
#open-cart-button {
  background-color: #00a832;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Estilos para o botão "Fechar" */
#close-cart-button {
  background-color: #00a832;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1; /* Certifica-se de que o botão de fechar esteja na frente do conteúdo */
}

#checkout-form button {
  background-color: #00a832;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px; /* Adiciona um espaçamento acima do botão "Avançar" */
}

.subscriber {
  display: flex;
  flex-direction: column;
  background: #ededed;
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 10px;
}

.subscriber > h3 {
  margin: 0 0 5px 0;
  font-size: 15px;
}

.subscriber input[type='text'],
.subscriber input[type='email'],
.subscriber select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  transition: border-color 0.2s ease-in-out;
  box-sizing: border-box; /* Adicione esta linha para incluir o padding e a borda no cálculo da largura */
}

.subscriber input[type='text']:focus,
.subscriber input[type='email']:focus,
.subscriber select:focus {
  border-color: #00a832; /* Cor da borda quando o campo está em foco */
  outline: none;
}

/* Estilo para o seletor de clube */
.subscriber select {
  appearance: none; /* Remove a aparência padrão do seletor */
  background-image: url('arrow-down.png'); /* Ícone de seta personalizado */
  background-position: right center;
  background-repeat: no-repeat;
  padding-right: 30px; /* Espaço para o ícone da seta */
  cursor: pointer;
}

.club_select {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #ccc !important;
  border-radius: 4px;
  height: 40px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #444;
  line-height: 28px;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 40px !important;
  position: absolute;
  top: 1px;
  right: 1px;
  width: 20px;
}

.billing_information {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  transition: border-color 0.2s ease-in-out;
  box-sizing: border-box;
}

#person_type {
  margin-bottom: 10px;
}

#submit-button[disabled] {
  opacity: 0.5;
}

@media screen and (max-width: 768px) {
  .informations {
    flex-direction: column;
  }

  .event-header {
    padding: 25px 0;
  }

  .details {
    width: 100%;
  }
}

/* Estilos para a barra de rolagem */
.scrollable-cart-sidebar {
  max-height: 100vh; /* Define uma altura máxima, você pode ajustar conforme necessário */
  overflow-y: auto; /* Adiciona uma barra de rolagem vertical */
}

.hidden {
  display: none;
}

.iti.iti--allow-dropdown.iti--separate-dial-code.iti--show-flags {
  width: 100%;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.whatsapp {
  display: flex;
}

.whatsapp > span {
  display: flex;
  align-items: center;
  height: 38px;
  width: 30px;
  justify-content: center;
  color: #0da530;
}
