/* =============================================================================
   SNDesk Agenda
   Estilos da página de agendamento (multi step).
   Recomendação: carregue tokens.organized.css antes deste arquivo.
   ============================================================================= */

/* ===== Variáveis locais da Agenda (mantém consistência com a identidade) ===== */
:root{
  --agenda-font: var(--snd-font-body, "DM Sans", sans-serif);

  --agenda-pad-top: 90px;              
  --agenda-grid-gap: 80px;
  --agenda-maxw: 1450px;
  --agenda-pad-x: 40px;

  --agenda-card-w: 600px;
  --agenda-card-h: 735px;
  --agenda-card-radius: 24px;
  --agenda-card-pad-y: 45px;
  --agenda-card-pad-x: 50px;
  --agenda-card-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);

  --agenda-overlay: rgba(2, 12, 27, 0.80);

  --agenda-text: var(--snd-color-ink, #2C3E50);
  --agenda-muted: var(--snd-color-muted, #737F9B);
  --agenda-soft:  var(--snd-color-gray-1, #99ACC6);
  --agenda-line:  rgba(192, 207, 226, 0.85);

  --agenda-surface: #ffffff;
  --agenda-surface-soft: rgba(231, 243, 254, 0.85);

  --agenda-primary: var(--snd-color-primary, #0F7ADE);
  --agenda-secondary: var(--snd-color-secondary, #50CDF9);

  --agenda-radius-btn: 12px;
  --agenda-input-line: rgba(192, 207, 226, 0.95);
  --agenda-input-line-focus: var(--agenda-primary);

  --agenda-nav-h: 50px;
}

/* =============================================================================
   1) Estrutura da página e trava de rolagem
   - Quando a agenda está presente, a página vira um "stage" sem scroll do body
   - No mobile essa trava é desativada no media query (mais abaixo)
   ============================================================================= */
html:has(.agenda-page),
body:has(.agenda-page){
  overflow: hidden !important;
  height: 100% !important;
  margin: 0;
  padding: 0;
}

.agenda-page{
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-start; /* mantém o respiro superior fixo */
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--agenda-pad-top);
  font-family: var(--agenda-font);
  -webkit-font-smoothing: antialiased;
}

/* =============================================================================
   2) Fundo (imagem + blur + overlay)
   - A camada recebe background-image via inline style ou classe extra
   ============================================================================= */
.agenda-background-layer{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(15px);
  transform: scale(1.1);
}

.agenda-background-layer::after{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--agenda-overlay);
}




/* =============================================================================
   4) Card do formulário
   - Tamanho fixo no desktop para manter o layout premium e previsível
   ============================================================================= */
.agenda-card{
  background: var(--agenda-surface);
  border-radius: var(--agenda-card-radius);
  padding: var(--agenda-card-pad-y) var(--agenda-card-pad-x);
  box-shadow: var(--agenda-card-shadow);
  position: relative;

  width: var(--agenda-card-w);
  height: var(--agenda-card-h);

  display: flex;
  flex-direction: column;
}

/* faz o form ocupar toda altura para empurrar navegação e aviso para baixo */
#agenda-multi-step{
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* =============================================================================
   5) Barra de progresso e porcentagem
   ============================================================================= */

/* agenda.css */

/* 1. A TRILHA DA BARRA (A parte que falta, que vai ficar cinza) */
.agenda-progress {
    height: 8px;
    
    /* AQUI ESTAVA O PROBLEMA: Coloquei um cinza/azulado sólido e bem visível */
    background: #E7F3FE; 
    
    border-radius: 4px;
    margin-bottom: 40px;
    position: relative;
    display: flex;
    margin-right: 60px; /* Garante o espaço pro texto do 33% */
    flex-shrink: 0;
}

/* 2. O PREENCHIMENTO (A parte que já carregou, em azul) */
.progress-fill {
    height: 100%;
    border-radius: 4px;
    
    /* Degradê azul sólido para não vazar a cor do fundo */
    background: linear-gradient(to right, #0F7ADE, #50CDF9);
    
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#progress-text{
  position: absolute;
  right: -55px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 700;
  color: var(--agenda-soft);
}

/* =============================================================================
   6) Tipografia e textos
   ============================================================================= */
.agenda-kicker-wrapper{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.kicker-icon{
  width: 20px;
  height: 20px;
  color: var(--agenda-muted);
}

.agenda-kicker{
  color: var(--agenda-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin: 0;
}

.agenda-title{
  font-size: 32px;
  color: var(--agenda-text);
  line-height: 1.15;
  margin: 0 0 15px 0;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

.agenda-subtitle,
.agenda-subtitle-step{
  font-size: 16px;
  color: var(--agenda-muted);
  margin: 0 0 30px 0;
  font-weight: 500;
}

/* aviso LGPD, fica abaixo dos botões */
.agenda-privacy-notice{
  font-size: 11px;
  
  color: var(--agenda-soft);
  line-height: 1.5;
  margin-top: 0;
  text-align: left;
}

.agenda-privacy-notice a{
  color: var(--agenda-primary);
  text-decoration: none;
}
.agenda-privacy-notice a:hover{
  text-decoration: underline;
}

/* =============================================================================
   7) Passo 1: cards de perfil (radio)
   ============================================================================= */
.agenda-options-list{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.custom-radio input{ display: none; }

.radio-box{
  display: flex;
  align-items: center;
  gap: 18px;

  padding: 18px 24px;
  background: var(--agenda-surface);
  border: 1.5px solid var(--agenda-line);
  border-radius: 16px;

  font-weight: 700;
  color: var(--agenda-muted);
  font-size: 16px;

  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.radio-box:hover{
  border-color: rgba(192, 207, 226, 1);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.custom-radio input:checked + .radio-box{
  border-color: rgba(15, 122, 222, 0.55);
  background: var(--agenda-surface-soft);
  color: var(--agenda-primary);
  box-shadow: 0 4px 12px rgba(15, 122, 222, 0.10);
}

.radio-icon{
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: 0.3s;
}

.custom-radio input:checked + .radio-box .radio-icon{
  filter: none;
  opacity: 1;
}

/* =============================================================================
   8) Passo 2 e 3: inputs com underline e dropdown custom
   ============================================================================= */
.agenda-inputs-underline-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 35px;
  row-gap: 30px;
  margin-top: 10px;
}

.full-width{ grid-column: span 2; }

.form-control-underline,
.dropdown-selected-underline{
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--agenda-input-line);
  padding: 12px 0;
  font-size: 16px;
  color: var(--agenda-text);
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
}

.form-control-underline::placeholder{
  color: var(--agenda-soft);
  opacity: 0.85;
}

.form-control-underline:focus,
.custom-dropdown-underline.active .dropdown-selected-underline{
  border-bottom-color: var(--agenda-input-line-focus);
}


.custom-dropdown-underline{
  position: relative;
  width: 100%;
  cursor: pointer;
}

.dropdown-selected-underline{
  display: flex;
  justify-content: space-between;
  align-items: center;

  color: var(--agenda-soft);

  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2399ACC6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right center;
  background-repeat: no-repeat;
  background-size: 1.2em;
}

.dropdown-options{
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;

  background: var(--agenda-surface);
  border-radius: 14px;
  border: 1px solid var(--agenda-line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);

  z-index: 100;
  padding: 8px;
  list-style: none;
  display: none;
}

.custom-dropdown-underline.active .dropdown-options{ display: block; }

.dropdown-options li{
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 15px;
  color: var(--agenda-text);
}

.dropdown-options li:hover{
  background: var(--agenda-surface-soft);
  color: var(--agenda-primary);
}

/* =============================================================================
   9) Navegação (Voltar e Avançar em dois blocos)
   ============================================================================= */
.agenda-nav{
  display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: auto; 
    margin-bottom: 20px;
    padding-top: 30px;
}


.btn-secondary{
  width: 100%;
  height: var(--agenda-nav-h);

  background: var(--agenda-surface);
  border: 1.5px solid var(--agenda-line);
  border-radius: var(--agenda-radius-btn);

  color: var(--agenda-text);
  font-weight: 700;
  font-size: 16px;

  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-secondary:hover{
  background-color: rgba(231, 243, 254, 0.35);
  border-color: rgba(192, 207, 226, 1);
  transform: translateY(-1px);
}


.snd-btn--next{
  width: 100%;
  height: var(--agenda-nav-h);

  border: 0;
  border-radius: var(--agenda-radius-btn);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: var(--agenda-font);
  font-weight: 800;
  font-size: 16px;
  color: #fff;

  background:  var(--snd-color-primary
  );

  box-shadow: 0 4px 12px rgba(15, 122, 222, 0.20);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.snd-btn--next:hover{
  transform: translateY(-2px);
  filter: saturate(1.02);
  box-shadow: 0 8px 20px rgba(15, 122, 222, 0.28);
}


/* =============================================================================
   3) GRID PRINCIPAL E COMPOSIÇÃO
   ============================================================================= */
.agenda-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.6fr; 
    gap: var(--agenda-grid-gap);
    align-items: center;
    width: 100%;
    max-width: var(--agenda-maxw);
    padding: 0 var(--agenda-pad-x);
    position: relative;
    z-index: 2;
    transform: translateY(-17px);
}


.agenda-image-side {
    display: flex;
    justify-content: center;
    perspective: 1000px; 
    transform-style: preserve-3d;
 
    animation: agenda-float 6s ease-in-out infinite; 
}

/* =============================================================================
   10) FOTO LATERAL E EFEITO TILT
   ============================================================================= */
.agenda-main-photo {
    width: 100%;
    max-width: 1100px; 
    height: auto;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.30));
    

    transform: scale(1.1); 
    
  
    pointer-events: none; 
    
    
    transition: transform 0.2s ease-out; 
    will-change: transform;
    
   
}


@keyframes agenda-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* =============================================================================
   11) Tela de sucesso
   ============================================================================= */
.success-view.active{
  position: fixed;
  inset: 0;
  z-index: 9999;

  background: #fff;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.success-overlay{
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-content{
  text-align: center;
  max-width: 700px;
  padding: 20px;
  animation: agenda-fadeInUp 0.6s ease-out;
}

.success-title{
  font-size: 42px;
  color: var(--agenda-text);
  font-weight: 900;
  margin: 0 0 20px 0;
}

.success-subtitle{
  font-size: 18px;
  color: var(--agenda-muted);
  margin: 0 0 50px 0;
}

.success-logo{
  max-width: 320px;
  height: auto;
}

/* =============================================================================
   12) Troca de passos e animações
   ============================================================================= */
.step-view{ display: none; }
.step-view.active{
  display: block !important;
  animation: agenda-fadeIn 0.4s ease forwards;
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

@keyframes agenda-fadeIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes agenda-fadeInUp{
  from{ opacity: 0; transform: translateY(30px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* =============================================================================
   13) Responsivo
   - No mobile libera scroll e remove altura fixa do card
   ============================================================================= */
@media (max-width: 991px){
  html:has(.agenda-page),
  body:has(.agenda-page){
    overflow: auto !important;
    height: auto !important;
  }

  .agenda-page{
    height: auto;
    min-height: 100vh;
    padding: 40px 0;
    align-items: center;
  }





  .agenda-card{
    width: 100%;
    height: auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
  }

  .agenda-progress{ margin-right: 0; }

  #progress-text{
    right: 0;
    top: -25px;
    transform: none;
  }

  .agenda-nav{ margin-top: 40px; }
}

/* =============================================================================
   14) Acessibilidade
   ============================================================================= */
@media (prefers-reduced-motion: reduce){
  .agenda-main-photo,
  .step-view.active,
  .success-content{
    animation: none !important;
  }
}
.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-error {
    border-bottom-color: #ff0707 !important;
}

.field-error-msg {
    color: #ff0707;
    font-size: 10px;
    font-weight: 700;
    position: absolute;
    bottom: -18px;
    left: 0;
}

.agenda-page {
    min-height: 100vh; 
    
    display: flex;
    align-items: center;    
    justify-content: center; 
    
 
    position: relative; 
    
  
    padding: 40px 0; 
}

/* 2. O fundo escuro (Seu background-layer) */
.agenda-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1; 
}

.agenda-page .snd-container {
    position: relative;
    z-index: 2; 
    width: 100%;
    
  
    margin-top: 0; 
}


.agenda-grid-wrapper {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 40px;
}

.focused-layout ~ .snd-header, 
.snd-header:has(~ .focused-layout),
nav.snd-navbar { 
    display: none !important; 
}


.agenda-minimal-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 100;
}

.header-left, .header-right { flex: 1; }
.header-center { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
}

.btn-exit {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--agenda-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.btn-exit:hover {
    color: var(--agenda-primary);
}

.logo-mini {
    height: 28px;
    width: auto;
    filter: brightness(1.1);
}

.focused-layout.agenda-page {
    padding-top: 100px;
}
.agenda-card {
    transform: translateY(60px); 
}