/* =========================================================================
   ROYAL FLORAIS - CSS OTIMIZADO
   ========================================================================= */

/* =========================================================================
   1. RESET E BASE
   ========================================================================= */

/* Reset Browser Styles */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* Box-sizing para todos os elementos */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* =========================================================================
   2. TIPOGRAFIA BASE
   ========================================================================= */

body {
    background-color: #FFFFFF;
    color: #333333;
    font-family: 'Open Sans', Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }   /* 40px */
h2 { font-size: 2rem; }     /* 32px */
h3 { font-size: 1.75rem; }  /* 28px */
h4 { font-size: 1.5rem; }   /* 24px */
h5 { font-size: 1.25rem; }  /* 20px */
h6 { font-size: 1rem; }     /* 16px */

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: 1em;
}

b, strong {
    font-weight: bold;
}

i, em {
    font-style: italic;
}

img {
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

a {
    color: #31a2ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a8ae0;
}

ol, ul {
    list-style: none;
}

/* =========================================================================
   3. ESTRUTURA BRICKS
   ========================================================================= */

.bricks--page {
    width: 100%;
}

.bricks--section {
    width: 100%;
    position: relative;
}

.bricks--section > div {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.bricks--row {
    display: flex;
    flex-flow: column nowrap;
    gap: 20px;
}

@media screen and (min-width: 768px) {
    .bricks--row {
        flex-flow: row nowrap;
    }
}

.bricks--column {
    flex: 1;
}

.bricks--column > div {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bricks--component {
    width: 100%;
}

/* =========================================================================
   4. COMPONENTES - VÍDEO (RESPONSIVO)
   ========================================================================= */

.bricks--component-video div,
.video-wrapper {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bricks--component-video div iframe,
.video-wrapper iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================================================
   5. COMPONENTES - IMAGEM
   ========================================================================= */

.bricks--component-image {
    line-height: 0;
}

.bricks--component-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================================================
   6. COMPONENTES - TEXTO
   ========================================================================= */

.bricks--component-text {
    color: #333;
    line-height: 1.6;
    overflow: hidden;
    word-wrap: break-word;
}

.bricks--component-text a {
    color: #31a2ff;
    text-decoration: underline;
}

.bricks--component-text a:hover {
    color: #1a8ae0;
}

/* =========================================================================
   7. FORMULÁRIO - ESTRUTURA
   ========================================================================= */

.bricks-form {
    height: auto;
    width: 100%;
}

.bricks-form__fieldset {
    display: flex;
    flex-flow: column nowrap;
    gap: 15px;
}

.bricks-form__field {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.bricks-form__field--hidden {
    display: none !important;
}

.bricks-form__label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 0.5em;
    line-height: 1.4;
    font-weight: 500;
    color: #303030;
    font-size: 15px;
}

.bricks-form__input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    line-height: 1.5;
    font-size: 16px;
    color: #303030;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.bricks-form__input:focus {
    outline: none;
    border-color: #ac9174;
    box-shadow: 0 0 0 3px rgba(172, 145, 116, 0.1);
}

.bricks-form__input.error {
    border-color: #e74c3c !important;
    background-color: #fff5f5;
}

.bricks-form__input::placeholder {
    color: #999;
    opacity: 1;
}

/* Select customizado */
select.bricks-form__input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Textarea */
textarea.bricks-form__input {
    min-height: 100px;
    resize: vertical;
}

/* =========================================================================
   8. BOTÕES
   ========================================================================= */

.bricks--component-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    user-select: none;
}

.bricks--component-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.bricks--component-button:active {
    transform: translateY(0);
}

.bricks--component-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* =========================================================================
   9. MENSAGENS DE FEEDBACK
   ========================================================================= */

.error-message,
.success-message {
    padding: 12px 16px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

.error-message {
    color: #c0392b;
    background-color: #fadbd8;
    border-left: 4px solid #e74c3c;
}

.success-message {
    color: #1e8449;
    background-color: #d5f4e6;
    border-left: 4px solid #27ae60;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================================
   10. SEÇÕES ESPECÍFICAS
   ========================================================================= */

/* Seção Hero */
#rd-section-jsdbj8lx {
    background-color: #f0eee8;
    padding: 40px 0;
}

#rd-row-jsdbj8ly {
    min-height: 600px;
}

@media (max-width: 767px) {
    #rd-row-jsdbj8ly {
        min-height: auto;
    }
}

/* Coluna Esquerda (Conteúdo) */
#rd-column-jsdbl0x8 {
    flex: 7 0 0;
}

#rd-column-jsdbl0x8 > div {
    background-color: transparent;
    justify-content: flex-start;
    padding: 30px;
}

@media (max-width: 767px) {
    #rd-column-jsdbl0x8 > div {
        padding: 20px;
    }
}

/* Coluna Direita (Formulário) */
#rd-column-jsdbj8lz {
    flex: 5 0 0;
}

#rd-column-jsdbj8lz > div {
    background-color: #efefef;
    justify-content: flex-start;
    padding: 30px;
    border-radius: 12px;
}

@media (max-width: 767px) {
    #rd-column-jsdbj8lz > div {
        padding: 20px;
        border-radius: 8px;
    }
}

/* Títulos da Hero */
#rd-text-jsc3n9ex {
    margin-top: 0;
    margin-bottom: 20px;
}

#rd-text-jsc3n9ex h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 47px);
    color: #ac9174;
    line-height: 1.3;
}

#rd-text-jsc3nryj {
    margin-top: 20px;
    margin-bottom: 30px;
}

#rd-text-jsc3nryj h2 {
    color: #a7c4c8;
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.4;
}

/* Vídeo Hero */
#rd-video-lzbid4nr {
    margin: 30px 0;
    max-width: 100%;
}

/* Imagem do Formulário */
#rd-image-jsc3mfal {
    margin: 30px auto 20px;
    max-width: 211px;
}

#rd-image-jsc3mfal img {
    width: 100%;
    height: auto;
}

/* Textos acima do Formulário */
#rd-text-jsc3krte,
#rd-text-jsdbn3pn {
    text-align: center;
    margin: 10px auto;
    max-width: 330px;
}

/* =========================================================================
   11. FORMULÁRIO ESPECÍFICO - MULTI-STEP
   ========================================================================= */

#rd-form-joq3m2vy {
    max-width: 400px;
    margin: 20px auto 30px;
    width: 100%;
}

/* Indicador de Progresso */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
    background-color: #ac9174;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(172, 145, 116, 0.3);
}

.progress-step.completed .progress-circle {
    background-color: #27ae60;
    color: #ffffff;
}

.progress-step.completed .progress-circle::before {
    content: "✓";
    font-weight: bold;
}

.progress-step span {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.progress-step.active span {
    color: #303030;
    font-weight: 600;
}

.progress-line {
    width: 60px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 0 10px;
    position: relative;
    top: -15px;
}

@media (max-width: 480px) {
    .progress-line {
        width: 40px;
    }
    
    .progress-step span {
        font-size: 11px;
    }
    
    .progress-circle {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Steps do Formulário */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#rd-form-joq3m2vy .bricks-form__fieldset {
    gap: 18px;
}

#rd-form-joq3m2vy .bricks-form__label {
    color: #303030;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

#rd-form-joq3m2vy .bricks-form__input {
    font-size: 16px;
    padding: 12px 16px;
    min-height: 44px;
}

/* Navegação entre Steps */
.form-navigation {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.form-navigation button {
    flex: 1;
}

/* Botão Próximo */
.btn-next {
    background-color: #ac9174;
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: bold;
    height: 50px;
    border-radius: 100px;
    border: none;
    width: 100%;
}

.btn-next:hover {
    background-color: #9a7f63;
    box-shadow: 0 6px 20px rgba(172, 145, 116, 0.3);
}

/* Botão Voltar */
.btn-back {
    background-color: transparent;
    color: #666;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    height: 50px;
    border-radius: 100px;
    border: 2px solid #ddd;
}

.btn-back:hover {
    background-color: #f5f5f5;
    border-color: #ac9174;
    color: #ac9174;
}

/* Botão de Submit Principal */
#rd-button-joq3m2w0 {
    background-color: #f83f23;
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: bold;
    height: 50px;
    border-radius: 100px;
    border: none;
    flex: 2;
}

#rd-button-joq3m2w0:hover {
    background-color: #e63519;
    box-shadow: 0 6px 20px rgba(248, 63, 35, 0.3);
}

@media (max-width: 480px) {
    .form-navigation {
        flex-direction: column;
    }
    
    .form-navigation button {
        width: 100%;
    }
}

/* =========================================================================
   12. SEÇÃO DE BENEFÍCIOS
   ========================================================================= */

#rd-section-jsc68n45 {
    padding: 60px 0;
    background-color: #ffffff;
}

#rd-section-jsc68n45 h2 {
    text-align: center;
    color: #303030;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(20px, 3vw, 24px);
    margin-bottom: 40px;
}

#rd-section-jsc68n45 .bricks--row {
    margin-bottom: 40px;
}

/* Imagens de Ícones dos Benefícios */
#rd-section-jsc68n45 .bricks--component-image {
    margin: 0 auto 15px;
    max-width: 80px;
}

/* Títulos dos Benefícios */
#rd-section-jsc68n45 .bricks--component-text p strong {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 18px;
    color: #303030;
}

/* Textos dos Benefícios */
#rd-section-jsc68n45 .bricks--component-text p span {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* Centraliza cards de benefícios no mobile */
@media (max-width: 767px) {
    #rd-section-jsc68n45 {
        padding: 40px 0;
    }
    
    #rd-section-jsc68n45 .bricks--row {
        gap: 30px;
        align-items: center;
    }
    
    /* Centraliza o conteúdo dentro de cada coluna */
    #rd-section-jsc68n45 .bricks--column > div {
        align-items: center;
        text-align: center;
    }
    
    /* Cards dos benefícios */
    #rd-row-jsc6l23d .bricks--column,
    #rd-row-jsc935qk .bricks--column {
        max-width: 350px;
        margin: 0 auto;
    }
    
    /* Centraliza imagens dos ícones */
    #rd-section-jsc68n45 .bricks--component-image {
        margin: 0 auto 15px;
    }
    
    /* Centraliza textos */
    #rd-section-jsc68n45 .bricks--component-text {
        text-align: center;
    }
}

/* =========================================================================
   13. SEÇÃO CTA (Call-to-Action)
   ========================================================================= */

#rd-section-jsdbuq3w {
    background-image: 
        linear-gradient(to bottom, rgba(9, 27, 49, 0.85) 0%, rgba(9, 27, 49, 0.85) 100%),
        url(https://d335luupugsy2.cloudfront.net/cms/files/65920/1555530792/$miq44yez4wt);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
}

#rd-section-jsdbuq3w h2 {
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(22px, 4vw, 28px);
    margin-bottom: 15px;
}

#rd-section-jsdbuq3w p {
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(16px, 3vw, 21px);
    margin-bottom: 30px;
}

#rd-button-jsdfgzu7 {
    background-color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 100px;
    color: #f83f23;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: bold;
    height: 55px;
    max-width: 370px;
    width: 100%;
    margin: 20px auto 0;
}

#rd-button-jsdfgzu7:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

@media (max-width: 767px) {
    #rd-section-jsdbuq3w {
        padding: 50px 0;
    }
}

/* =========================================================================
   14. SEÇÃO FOOTER
   ========================================================================= */

#rd-section-lyj5cu7m {
    padding: 30px 0;
    background-color: #f9f9f9;
}

#rd-section-lyj5cu7m p {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================================
   15. CAMPOS OCULTOS (UTMs e Honeypot)
   ========================================================================= */

input[name="cf_utm_term"],
input[name="cf_utm_medium"],
input[name="cf_utm_campaign"],
input[name="cf_utm_source"],
input[name="cf_utm_content"],
input[name="honeypot_trap"] {
    display: none !important;
}

/* =========================================================================
   16. ACESSIBILIDADE
   ========================================================================= */

/* Focus visível para navegação por teclado */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #ac9174;
    outline-offset: 2px;
}

/* Skip to content (adicionar no HTML se necessário) */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* =========================================================================
   17. UTILITÁRIOS
   ========================================================================= */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* =========================================================================
   18. RESPONSIVE
   ========================================================================= */

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }
    
    .bricks--section > div {
        padding: 0 10px;
    }
    
    .bricks--row {
        gap: 15px;
    }
    
    .bricks--component-button {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .bricks-form__input {
        font-size: 16px; /* Previne zoom no iOS */
    }
}

/* =========================================================================
   19. PRINT STYLES
   ========================================================================= */

@media print {
    .bricks--component-video,
    .bricks-form,
    .bricks--component-button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* =========================================================================
   20. ANIMAÇÕES DE LOADING
   ========================================================================= */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}

/* =========================================================================
   FIM DO CSS
   ========================================================================= */