/*
Theme Name: AO4
Version: 1.0
*/

html,
body{
    margin:0;
    padding:0;
}

p{
	margin-top: 0;
}

/* Enable View Transitions */
@view-transition {
	navigation: auto;
}

/* Página que está saindo */
::view-transition-old(root) {
	animation: slide-out 0.45s cubic-bezier(.4,0,.2,1);
}

/* Página que está entrando */
::view-transition-new(root) {
	animation: slide-in 0.45s cubic-bezier(.4,0,.2,1);
}

@keyframes slide-out {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(-40px);
		opacity: 0;
	}
}

@keyframes slide-in {
	from {
		transform: translateX(40px);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/** 
 * Fixed Header
 * Uso: Estilo sticky no header.
 */
.header-spacer {
    display: block;
    width: 100%;
}

#fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: background-color 0.3s ease, 
                box-shadow 0.3s ease, 
                padding 0.3s ease, 
                transform 0.3s ease;
}

#fixed-header.is-sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Accordion */
.e-n-accordion-item summary[aria-expanded="true"]{
	border-radius: 20px 20px 0 0 !important;
}

/* Timeline */
.timeline {
	position: relative;
	max-width: 90%;
	margin: 0 auto;
	padding: 1.25rem 0;
}

.timeline::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background-color: #DF510E;
	transform: translateX(-50%);
}

.timeline-item {
	position: relative;
	width: 50%;
	padding: 10px 30px;
	margin-bottom: 20px;
}

.timeline-item.left {
	left: 0;
	text-align: right;
}

.timeline-item.right {
	left: 50%;
	text-align: left;
}

.timeline-dot {
	position: absolute;
	top: 15px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #DF510E;
	outline: 5px solid #F7F4EF;
	box-shadow: -16px 10px 20px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	font-family: "Work Sans", Sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
	z-index: 1;
}

.timeline-item.left .timeline-dot {
	right: -16px;
	box-shadow: -16px 10px 20px rgba(0, 0, 0, 0.25);
}

.timeline-item.right .timeline-dot {
	left: -16px;
	box-shadow: 16px 10px 20px rgba(0, 0, 0, 0.25);
}

.timeline-content {
	padding: 1.875rem;
    background-color: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	font-family: "Work Sans", Sans-serif;
	position: relative;
	z-index: 2;
}

.timeline-content h3 {
	margin-top: 0;
	margin-bottom: 0.75rem;
	color: #2561DB;
	font-size: 1.125rem;
	font-weight: 700;
}

.timeline-content p {
	margin: 0;
	color: #6B665F;
	font-size: 0.938rem;
	font-weight: 400;
	line-height: 1.4;
}

@media (max-width: 600px) {
	.timeline::before {
		left: 20px;
	}

	.timeline-item {
		width: 100%;
		padding-left: 50px;
		padding-right: 10px;
	}

	.timeline-item.left,
	.timeline-item.right {
		left: 0;
		text-align: left;
	}

	.timeline-item.left .timeline-dot,
	.timeline-item.right .timeline-dot {
		left: 4px;
	}
}

/* Form */
#wpforms-154 form{
	font-family: "Work Sans", Sans-serif;
}

#wpforms-154 em.wpforms-error{
	position: absolute;
    bottom: -1.875rem;
    color: #ffffff;
    font-size: 0.55rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.313rem;
    background-color: #ff6e6e;
}

/* --- ESTRUTURA GERAL DO FORMULÁRIO (FLEXBOX) --- */
#wpforms-form-154 .wpforms-field-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.25rem !important;
}

/* Oculta os campos honeypot anti-spam */
#wpforms-154-field_4-container,
#wpforms-154-field_5-container {
  display: none !important;
}

/* Cada grupo de campo vira um container flex vertical */
#wpforms-form-154 .wpforms-field {
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

#wpforms-form-154 .wpforms-field.wpforms-has-error{
	margin-bottom: 1.25rem !important;
}

/* --- ESTILIZAÇÃO DOS INPUTS E RÓTULOS (VISUAL IGUAL À IMAGEM) --- */
#wpforms-form-154 .wpforms-field-label {
  display: block !important;
  margin-bottom: 0.375rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: #333333 !important;
}

#wpforms-form-154 .wpforms-field-label .wpforms-required-label{
	color: #DF510E;
}

#wpforms-form-154 input[type="text"],
#wpforms-form-154 input[type="email"],
#wpforms-form-154 select,
#wpforms-form-154 textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background-color: #f8f8f8 !important;
  border: 1px solid #e2e2e2 !important;
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.938rem !important;
  color: #555555 !important;
  outline: none !important;
  font-family: "Work Sans", Sans-serif;
}

#wpforms-form-154 textarea {
  min-height: 6.875rem !important;
  resize: vertical !important;
}

/* --- LAYOUT EM GRADE PARA DESKTOP (A partir de 768px) --- */
@media (min-width: 768px) {
  /* Campos em Linha Inteira (100%) */
  #wpforms-154-field_1-container { order: 1; flex: 0 0 100% !important; }
  #wpforms-154-field_6-container { order: 4; flex: 0 0 100% !important; }
  #wpforms-154-field_7-container { order: 5; flex: 0 0 100% !important; }
  #wpforms-154-field_10-container { order: 8; flex: 0 0 100% !important; }

  /* Campos em Meia Linha (50%) */
  #wpforms-154-field_2-container {
    order: 2;
    flex: 0 0 calc(50% - 10px) !important;
    margin-right: 1.25rem !important;
  }
  
  #wpforms-154-field_3-container {
    order: 3;
    flex: 0 0 calc(50% - 10px) !important;
  }

  #wpforms-154-field_8-container {
    order: 6;
    flex: 0 0 calc(50% - 10px) !important;
    margin-right: 1.25rem !important;
  }

  #wpforms-154-field_9-container {
    order: 7;
    flex: 0 0 calc(50% - 10px) !important;
  }
}

/* --- ESTILO DO BOTÃO DE ENVIO (AZUL E ARREDONDADO) --- */
#wpforms-form-154 .wpforms-submit-container {
  width: 100% !important;
  margin-top: 0.625rem !important;
  padding: 0 !important;
}

#wpforms-form-154 button[type="submit"].wpforms-submit {
  width: 100% !important;
  margin-top: 0.625rem;
  background-color: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 0.875rem 1.25rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

#wpforms-form-154 button[type="submit"].wpforms-submit:hover {
  background-color: #1d4ed8 !important;
}

@media (min-width: 768px) and (max-width: 1024px){
  .timeline-content h3{
    font-size: 0.875rem;
  }

  .timeline-content p{
    font-size: 0.875rem;
  }

  #wpforms-form-154 .wpforms-field-label{
    font-size: 0.75rem !important;
  }

  #wpforms-form-154 input[type="text"],
  #wpforms-form-154 input[type="email"],
  #wpforms-form-154 select,
  #wpforms-form-154 textarea {
    font-size: 0.75rem !important;
  }

  #wpforms-form-154 button[type="submit"].wpforms-submit{
    font-size: 0.875rem !important;
  }
}

/* --- MOBILE (Até 767px) --- */
@media (max-width: 767px) {
  .rbr_mobile br{
    display: none;
  }

  .timeline-content h3{
    font-size: 0.875rem;
  }

  .timeline-content p{
    font-size: 0.75rem;
  }

  #wpforms-form-154 .wpforms-field {
    flex: 0 0 100% !important;
    margin-right: 0 !important;
  }

  #wpforms-form-154 .wpforms-field-label{
    font-size: 0.75rem !important;
  }

  #wpforms-form-154 input[type="text"],
  #wpforms-form-154 input[type="email"],
  #wpforms-form-154 select,
  #wpforms-form-154 textarea {
    font-size: 0.75rem !important;
  }

  #wpforms-form-154 button[type="submit"].wpforms-submit{
    font-size: 0.75rem !important;
  }
}