:root {
  --primary-color: #2d4c63;
  --secondary-color: #1a2c3d;
  --accent-color: #ffc107;
  --custom-green: #2ba304;
  --text-light: #ffffff;
  --border-radius: 10px;
  --transition: all 0.3s ease;
}

.sub_page .hero_area {
  min-height: auto;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  min-height: 100vh;
}

/* Estilo atualizado para o formulário */
.footer_section {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
  padding: 40px 0;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 193, 7, 0.15);
}

.form_agendamento {
  max-width: 900px;
  margin: 0 auto;
}

.inputs_agenda {
  background: rgba(255, 255, 255, 0.06) !important;
  border: none !important;
  border-bottom: 2px solid rgba(255, 193, 7, 0.4) !important;
  font-size: 16px !important;
  color: #fff !important;
  padding: 12px 15px !important;
  margin: 0 0 15px 0 !important;
  border-radius: 8px 8px 0 0;
  transition: var(--transition);
  width: 100%;
}

.inputs_agenda:focus {
  border-bottom: 2px solid var(--accent-color) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.15);
  outline: none;
}

.inputs_agenda::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.form-group {
  margin-bottom: 20px;
}

.botao-verde {
  background: var(--custom-green);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(43, 163, 4, 0.35);
}

.botao-verde:hover {
  background: #239003;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(43, 163, 4, 0.45);
}

.botao-azul {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
  display: inline-block;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.botao-azul:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* Estilos para o formulário em etapas */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  color: white;
  position: relative;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.step.active {
  background: var(--accent-color);
  color: var(--secondary-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 14px rgba(255, 193, 7, 0.5);
}

.step.completed {
  background: var(--custom-green);
  border-color: var(--custom-green);
  color: white;
}

.step-line {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  flex-grow: 1;
  margin-top: 20px;
}

.step-line.active {
  background: var(--accent-color);
}

.step-title {
  position: absolute;
  bottom: -25px;
  white-space: nowrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.step-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.step-content {
  min-height: 300px;
}

/* Estilos para os cards de serviço e profissional */
.service-cards, .professional-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.service-card, .professional-card {
  width: 220px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
}

.service-card:hover, .professional-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 193, 7, 0.35);
}

.service-card.selected, .professional-card.selected {
  border-color: var(--accent-color);
  box-shadow: 0 0 18px rgba(255, 193, 7, 0.4);
}

.service-card.selected:after, .professional-card.selected:after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: var(--secondary-color);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.card-img {
  height: 150px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.5s ease;
}

/* Fotos de profissional costumam ter o rosto na parte de cima da imagem;
   card mais alto + corte enviesado pro topo evita cortar o rosto */
.professional-card .card-img {
  height: 210px;
}

.professional-card .card-img img {
  object-position: center 12%;
}

.service-card:hover .card-img img, .professional-card:hover .card-img img {
  transform: scale(1.1);
}

.card-body {
  padding: 15px;
}

.card-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.card-title-func {
  color: white;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 5px;
}

.card-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-bottom: 10px;
}

.card-price {
  color: var(--custom-green);
  font-weight: 700;
  font-size: 16px;
}

.card-rating {
  display: flex;
  margin-top: 5px;
}

.card-rating i {
  color: var(--accent-color);
  font-size: 12px;
  margin-right: 2px;
}

.card-specialty {
  background: rgba(255, 193, 7, 0.15);
  color: var(--accent-color);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: inline-block;
  margin-top: 5px;
}

/* Estilos para o modal */
.modal-content {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  border-radius: 16px;
  border: 1px solid rgba(255, 193, 7, 0.15);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
  color: white;
  opacity: 0.8;
}

.close:hover {
  color: white;
  opacity: 1;
}

/* Responsividade */
@media (max-width: 768px) {
  .footer_section {
    padding: 20px 10px;
    border-radius: 16px;
  }

  .inputs_agenda {
    font-size: 14px !important;
    padding: 10px !important;
    margin-bottom: 6px !important;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .input-group-text {
    padding: 0 0 4px 0 !important;
  }

  #step-4-content .p-4 {
    padding: 1rem !important;
  }

  #step-4-content .mb-3 {
    margin-bottom: 0.85rem !important;
  }

  .step {
    width: 30px;
    height: 30px;
    font-size: 12px;
    margin: 0 5px;
  }

  .step-title {
    font-size: 10px;
    bottom: -20px;
  }

  .service-cards, .professional-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-card, .professional-card {
    width: auto;
  }

  .card-img {
    height: 130px;
  }

  .professional-card .card-img {
    height: 160px;
  }

  .card-body {
    padding: 10px;
  }

  .card-title, .card-title-func {
    font-size: 13px;
  }

  .card-specialty {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .service-cards, .professional-cards {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.55);
}

.input-group-text {
  background-color: transparent;
  border: none;
}

body .text-info {
  color: var(--accent-color) !important;
}

body .bg-info {
  background-color: var(--accent-color) !important;
}

body .bg-info i {
  color: var(--secondary-color) !important;
}

.alert {
  border-radius: 10px;
  padding: 15px;
}

/* Esconder completamente o select2 */
.select2-container {
  display: none !important;
}

/* Esconder o dropdown de seleção de barbeiro */
.select2-dropdown {
  display: none !important;
}

/* Esconder qualquer elemento relacionado ao select2 */
.select2, .select2-selection, .select2-selection__rendered, .select2-selection__arrow {
  display: none !important;
}

/* Estilo para botões de horário */
.btn-horario {
  margin: 5px;
  min-width: 80px;
}

.btn-horario.selected {
  background-color: var(--accent-color) !important;
  color: var(--secondary-color) !important;
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
}
