@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ==================================================
   VARIÁVEIS GLOBAIS
   ================================================== */

:root{
  /*========= COLOR =========*/
  --laranja: rgb(255, 102, 0);
  --laranja-50p: rgba(255, 102, 0, 0.5);
  --laranja-25p: rgba(255, 102, 0, 0.25);
  --laranja-10p: rgba(255, 102, 0, 0.10);
  --laranja-07p: rgba(255, 102, 0, 0.08);

  --verde: rgb(184, 241, 138);
  --verde-50p: rgba(184, 241, 138, 0.5);
  --verde-25p: rgba(184, 241, 138, 0.25);
  --verde-10p: rgba(184, 241, 138, 0.10);
  --verde-07p: rgba(184, 241, 138, 0.08);
  --verde-05p: rgba(184, 241, 138, 0.005);

  --background-dark: #212121;

  --background-input-desabilitado: #272727;
  --borda-input-desabilitado: #b8b8b8;

  --title-color: #ffffff;
  --title-fontWeight: 700;
  --title-LineWeight: 32px;
  --titleFontFamily: 'Montserrat', sans-serif;
  --title-fontStyle: normal;
  --title-fontSize: 28px;

  --subtitle-color: #ffffff;
  --subtitle-fontWeight: 400;
  --subtitle-LineWeight: 28px;
  --subtitle-FontFamily: 'Montserrat', sans-serif;
  --subtitle-fontStyle: normal;
  --subtitle-fontSize: 24px;

  --paragraph-color: #e0e8d9;
  --paragraph-fontWeight: 200;
  --paragraph-LineWeight: 28px;
  --paragraph-FontFamily: 'Montserrat', sans-serif;
  --paragraph-fontStyle: normal;
  --paragraph-fontSize: 18px;

  --label-color: #ffffff;
  --label-fontWeight: 500;
  --label-LineWeight: 28px;
  --label-FontFamily: 'Montserrat', sans-serif;
  --label-fontStyle: normal;
  --label-fontSize: 18px;
}

/* ==================================================
   RESET & BASE
   ================================================== */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html, body{
  width: 100%;
  min-height: 100%;
}

body{
  background-color: var(--background-dark);
  font-family: 'Montserrat', sans-serif;
  margin: 0 auto;
}

img{
  display: block;
  max-width: 100%;
}

/* ==================================================
   TIPOGRAFIA GLOBAL
   ================================================== */

h1{
  color: var(--title-color);
  text-align: center;
  font-family: var(--titleFontFamily);
  font-size: var(--title-fontSize);
  font-style: var(--title-fontStyle);
  font-weight: var(--title-fontWeight);
  line-height: var(--title-LineWeight);
}

h2{
  color: var(--subtitle-color);
  font-family: var(--subtitle-FontFamily);
  font-size: var(--subtitle-fontSize);
  font-style: var(--subtitle-fontStyle);
  font-weight: var(--subtitle-fontWeight);
  line-height: var(--subtitle-LineWeight);
  width: fit-content;
}

p{
  color: var(--paragraph-color);
  font-family: var(--paragraph-FontFamily);
  font-size: var(--paragraph-fontSize);
  font-style: var(--paragraph-fontStyle);
  font-weight: var(--paragraph-fontWeight);
  line-height: var(--paragraph-LineWeight);
}

/* ==================================================
   HEADER
   ================================================== */

header{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

header img{
  max-width: 150px;
  height: auto;
}

/* ==================================================
   MAIN
   ================================================== */

main{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  min-height: 50vh;
}

.form-tipo-aviso{
  width: 100%;
}

/* ==================================================
   CONTAINER TIPO AVISO
   ================================================== */

.container-tipo-aviso{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.linha-titulo{
  display: flex;
  align-items: center;
  gap: 10px;
}

.descricao-aviso{
  margin-top: 10px;
  margin-bottom: 24px;
  text-align: left;
  width: 100%;
  font-size: 16px;
}

.asterisco{
  color: var(--laranja);
  font-weight: 700;
}

/* ==================================================
   OPÇÕES DE TIPO
   ================================================== */

.opcoes-tipo-aviso{
  display: flex;
  gap: 40px;
  width: 100%;
}

.opcao-tipo{
  width: 100%;
  cursor: pointer;
  border: 2px solid var(--borda-input-desabilitado);
  border-radius: 8px;
  padding: 50px 0 50px 40px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.opcao-tipo:hover{
  border-color: var(--verde-50p);
  background-color: var(--verde-07p);
}

.opcao-tipo:has(.input-radio:checked){
  border-color: var(--verde);
  background-color: var(--verde-10p);
}

.input-radio{
  display: none;
}

.conteudo-opcao{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.titulo-opcao{
  color: var(--title-color);
  font-size: 18px;
  font-weight: 600;
}

.texto-opcao{
  color: var(--paragraph-color);
  font-size: 14px;
  font-weight: 300;
}

/* ==================================================
   BOTÃO
   ================================================== */

.area-botao{
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

.btn-primario{
  background-color: var(--laranja);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 16px 70px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* ==================================================
   PROGRESS BAR (ANTIGO)
   ================================================== */

.progress-stepper-wrapper{
  padding: 10px;
}

.progress-stepper{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 800px;
}

.step{
  width: 40px;
  height: 40px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  position: relative;
  z-index: 10;
  flex-shrink: 0;

  background-color: transparent;
  color: #A9A9A9;
  border: 2px solid var(--borda-input-desabilitado);
}

.step:not(:last-child){
  margin-right: 40px;
}

.step:not(:last-child)::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: 40px;
  height: 2px;
  background-color: var(--borda-input-desabilitado);
  transform: translateY(-50%);
  z-index: 5;
}

.step.completed{
  background-color: transparent;
  color: var(--verde);
  border-color: var(--verde);
}

.step.completed:not(:last-child)::after{
  background-color: var(--verde);
}

.step.active{
  background-color:  var(--verde);
  color:  var(--background-dark);
  border-color:  var(--verde);
  box-shadow: 0 0 0 4px var(--background-dark);
}

.step.active:not(:last-child)::after{
  background-color:  var(--verde);
}

/* ==================================================
   UTILITÁRIOS
   ================================================== */

.fit_content_2_items{
  display: flex;
  flex-direction: column;
  width: fit-content;
}

/* ==================================================
   CAMPOS: SELECT, TEXTAREA, HINT, OCULTAR
   ================================================== */

.campo select,
.campo textarea{
  background-color: transparent;
  border: 2px solid var(--borda-input-desabilitado);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.campo select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.campo textarea{
  resize: vertical;
  min-height: 120px;
}

.campo select:focus,
.campo textarea:focus{
  border-color: var(--verde);
  background-color: var(--verde-10p);
  box-shadow: 0 0 0 2px var(--verde-10p);
}

.campo select option{
  color: #1e1e1e;
}

.hint{
  color: #b8b8b8;
  font-size: 12px;
  font-weight: 300;
  margin-top: 4px;
}

.is-hidden{
  display: none !important;
}

/* ==================================================
   RADIO GROUP
   ================================================== */

.radio-group{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.radio-option{
  display: flex;
  align-items: center;
  gap: 10px;

  border: 2px solid var(--borda-input-desabilitado);
  border-radius: 10px;
  padding: 12px 14px;

  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
}

.radio-option input{
  width: 18px;
  height: 18px;
  accent-color: var(--verde);
}

.radio-option span{
  color: #fff;
  font-size: 14px;
}

.radio-option:has(input:checked){
  border-color: var(--verde);
  background-color: var(--verde-10p);
}


/* ==================================================
   RESPONSIVO
   ================================================== */

@media (max-width: 768px){
  .opcoes-tipo-aviso{
    flex-direction: column;
    gap: 20px;
  }

  .progress-stepper{
    max-width: 100%;
    overflow-x: auto;
  }

  .step{
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .step:not(:last-child){
    margin-right: 30px;
  }

  .step:not(:last-child)::after{
    width: 30px;
  }
}

@media (max-width: 480px){
  h1{ font-size: 24px; }
  h2{ font-size: 20px; }
  .descricao-aviso{ font-size: 14px; }
  .titulo-opcao{ font-size: 16px; }
  .texto-opcao{ font-size: 13px; }
  
}


.form-campos{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.campo{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo label{
    color: var(--label-color);
    font-family: var(--label-FontFamily);
    font-size: var(--label-fontSize);
    font-style: var(--label-fontStyle);
    font-weight: var(--label-fontWeight);
    line-height: var(--label-LineWeight);
}

.campo input{
  background-color: transparent;
  border: 2px solid var(--borda-input-desabilitado);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.campo input::placeholder{
  color: #b8b8b8;
}

.campo input:focus{
  border-color: var(--verde);
  background-color: var(--verde-10p);
  box-shadow: 0 0 0 2px var(--verde-10p);
}

.campo:focus-within label {
  color: var(--title-color);
  font-weight: 500;
  font-size: 18px;
}

/* ==================================================
   BOTÕES
   ================================================== */

.area-botoes{
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.btn-secundario{
  background-color: transparent;
  color: #fff;
  border: 2px solid var(--laranja);
  border-radius: 10px;
  padding: 16px 60px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secundario:hover{
  background-color: var(--laranja-10p);
}

/* ==================================================
   RESPONSIVO EXTRA
   ================================================== */

@media (max-width: 600px){
  .area-botoes{
    flex-direction: column;
    gap: 16px;
  }

  .btn-secundario,
  .btn-primariobtn-primario{
    width: 100%;
  }
}

/* ==================================================
   SINISTRO - GRID (ESCOPADO SOMENTE NESTA PÁGINA)
   ================================================== */

/* tenta influenciar o tema do date picker (não garante em todos OS/browsers) */
.page-sinistro{
  color-scheme: dark;
}

.page-sinistro .form-campos{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 40px; /* linha | coluna */
}

.page-sinistro .form-campos .campo{
  width: 100%;
}

.page-sinistro .form-campos .campo.span-2{
  grid-column: 1 / -1; /* ocupa a linha toda */
}

@media (max-width: 768px){
  .page-sinistro .form-campos{
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* ==================================================
   AJUSTES VISUAIS - PÁGINA SINISTRO (ESCOPADO)
   ================================================== */

/* 1) RADIO: ocultar bolinha interna, ficando só "Sim" e "Não" */
.page-sinistro .radio-option{
  gap: 0;              /* remove o espaço do radio */
}

/* esconde o input, mas mantém acessível e funcional */
.page-sinistro .radio-option input{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* feedback de foco (teclado) na opção inteira */
.page-sinistro .radio-option:focus-within{
  outline: 2px solid var(--verde);
  outline-offset: 2px;
}

/* 2) SELECT (dropdown): forçar tema escuro (quando o browser permitir) */
.page-sinistro .campo select{
  color-scheme: dark; /* ajuda muito em Chrome/Edge/Firefox */
}

/* tenta escurecer a lista de opções (funciona em vários browsers, mas não 100% em todos) */
.page-sinistro .campo select option{
  background-color: var(--background-input-desabilitado);
  color: #fff;
}

/* quando o select estiver em foco (geralmente quando abre), borda verde */
.page-sinistro .campo select:focus{
  border-color: var(--verde);
}/* ==================================================
   DATE/TIME: ÍCONE VISÍVEL + ÁREA CLICÁVEL GARANTIDA
   ================================================== */

.page-sinistro .campo{
  position: relative; /* necessário para posicionar o indicador */
}

/* Espaço para o ícone (background) */
.page-sinistro .campo input[type="date"],
.page-sinistro .campo input[type="time"]{
  padding-right: 56px;                 /* mais espaço */
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
}

/* Ícones via URL */
.page-sinistro .campo input[type="date"]{
  background-image: url("https://teste.naimseguro.com.br/sinistroVersion2/public/assets/icone-date.svg");
}
.page-sinistro .campo input[type="time"]{
  background-image: url("https://teste.naimseguro.com.br/sinistroVersion2/public/assets/icone-hora.svg");
}

/* Coloca o botão nativo (invisível) por cima da área do ícone */
.page-sinistro .campo input[type="date"]::-webkit-calendar-picker-indicator,
.page-sinistro .campo input[type="time"]::-webkit-calendar-picker-indicator{
  position: absolute;
  right: 0;
  top: 0;
  width: 56px;        /* mesma área do padding-right */
  height: 100%;
  opacity: 0;         /* invisível */
  cursor: pointer;
}

/* Remove outros "botões" internos que podem atrapalhar o clique (WebKit) */
.page-sinistro .campo input[type="date"]::-webkit-clear-button,
.page-sinistro .campo input[type="time"]::-webkit-clear-button{
  display: none;
}
.page-sinistro .campo input[type="date"]::-webkit-inner-spin-button,
.page-sinistro .campo input[type="time"]::-webkit-inner-spin-button{
  display: none;
}
.btn-link{
  background: none;
  border: none;
  color: var(--verde);
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}




.upload-box{
  border: 2px dashed var(--borda-input-desabilitado);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-box:hover{
  border-color: var(--verde);
  background-color: var(--verde-05p);
}


/* ==================================================
   DROPZONE - UPLOAD DE IMAGENS (SINISTRO)
   ================================================== */

.page-sinistro .bloco-upload{
  width: 100%;
  max-width: 560px;
}

.page-sinistro .label-secao{
  font-size: 18px;
  font-weight: 600;
  color: var(--title-color);
  margin: 8px 0 12px;
  width: fit-content;
}

.page-sinistro .dropzone{
  width: 100%;
  border: 2px dashed rgba(255,255,255,.35);
  border-radius: 10px;
  padding: 34px 18px;

  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;

  text-align: center;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  user-select: none;

  transition: all .25s ease;
}

.page-sinistro .dropzone:hover{
  border-color: var(--verde-50p);
  background-color: var(--verde-10p);
}

.page-sinistro .dropzone.is-dragover{
  border-color: var(--verde);
  background: var(--verde-10p);
  box-shadow: 0 0 0 2px var(--verde-10p);
}

.page-sinistro .dropzone-icone{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  opacity: .95;
}

.page-sinistro .dropzone-icone svg{
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--title-color);
  stroke-width: 2;
  opacity: .9;
}

.page-sinistro .dropzone-titulo{
  color: var(--title-color);
  font-size: 16px;
  font-weight: 500;
}

.page-sinistro .dropzone-sub{
  color: #b8b8b8;
  font-size: 13px;
  font-weight: 300;
}

/* divisor opcional */
.page-sinistro .divider{
  width: 100%;
  max-width: 720px;
  height: 1px;
  background: rgba(255,255,255,.18);
  margin: 22px 0;
}

/* responsivo */
@media (max-width: 768px){
  .page-sinistro .bloco-upload{
    max-width: 100%;
  }
}

@media (max-width: 480px) {
 
  
  
  .progress-stepper {
    display: grid;
    grid-template-columns: repeat(4, auto);
    row-gap: 24px;
    justify-content: center;
  }

  /* Remove margens do flex */
  .step {
    margin-right: 0;
  }

  /* Linha conectora */
  .step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 40px;
    height: 2px;
    background-color: var(--borda-input-desabilitado);
    transform: translateY(-50%);
  }

  /* Fim da primeira linha (4º item) */
  .step:nth-child(4)::after {
    display: none;
  }

  /* Fim da segunda linha (7º item) */
  .step:nth-child(7)::after {
    display: none;
  }
}

/* ==================================================
   SEPARADOR DE SEÇÕES – FORM SINISTRO
   ================================================== */

.page-sinistro .separador-formulario{
  grid-column: 1 / -1; /* ocupa toda a largura do grid */
  position: relative;
  margin: 36px 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.page-sinistro .separador-formulario span{
  position: absolute;
  top: -12px;
  left: 0;
  padding: 0 14px;

  background-color: var(--background-dark);
  color: var(--title-color);

  font-size: 18px;
  font-weight: 600;
}
