* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #F1F1F1;
    color: #333;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================
   NOVOS ESTILOS: ESTRUTURA, CABEÇALHO E LINHA (U-BORDER)
========================================= */

/* Faixa amarela colada na esquerda ocupando a tela toda */
.yellow-sidebar {
    width: 50px;
    background-color: #FFDD00;
    flex-shrink: 0;
    z-index: 10;
}

/* Container que segura o meio da tela */
.page-wrapper {
    padding: 40px 20px 60px 20px;
    display: flex;
    justify-content: center;
}

.content-inner {
    width: 100%;
    max-width: 1000px;
    position: relative;
}

/* A linha laranja principal (Direita e Fundo) */
.u-border {
    position: absolute;
    top: 75px;
    bottom: -30px; 
    left: 0; 
    right: -120px;
    border-bottom: 2px solid #FF7B1C;
    border-right: 2px solid #FF7B1C;
    border-top: none;
    border-left: none;
    border-radius: 0 0 40px 0;
    z-index: 10; 
    pointer-events: none;

}

/* AMARELO: Extensão da linha inferior para a ESQUERDA até a faixa amarela */
.u-border::after {
    content: '';
    position: absolute;
    right: 100%;
    width: 50vw;
    height: 2px;
    background-color: #FF7B1C;
    top: 100%;
}

/* AMARELO: Curva em S na parte superior e extensão para a DIREITA até a logo */
.u-border::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 100%; 
    width: 50vw;
    height: 40px;
    border-left: 2px solid #FF7B1C;
    border-top: 2px solid #FF7B1C;
    border-radius: 40px 0 0 0;
}

/* Cabeçalho superior (Banner e Logo) */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 11;
}

/* Banner Laranja (Com o truque ::before para ele encostar na faixa amarela independente do monitor) */
.top-header .banner {
    background-color: #FF7B1C;
    color: white;
    padding: 10px 41px 10px 0;
    font-size: 22px;
    font-weight: 800;
    border-radius: 14px;
    position: relative;
}

.top-header .banner::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 54%;
    width: 59%;
    border-radius: 14px;
    background-color: #FF7B1C;
    z-index: -1;
}

/* Caixa da logo da 99 (Ajustes aplicados aqui) */
.top-header .logo-box {
    padding: 12px 15px;
    border-radius: 15px 0 0 15px; 
    position: absolute;
    left: 107%;
    top: 50%;
    transform: translateY(-50%);
}

.top-header .logo-box img {
    display: block;
    height: 60px;
}

/* Textos Iniciais */
.intro-text {
    position: relative;
    z-index: 1;
    padding: 19px 40px 10px 8px;
}

.intro-text p {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 550px; 
}

.intro-text h2 {
    color: #FF7B1C;
    font-size: 28px;
    font-weight: 800;
}

/* Container original da Timeline */
.timeline-container {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1; 
}

/* =========================================
   ESTILOS COMPARTILHADOS (Cards e Textos)
========================================= */

/* Card Principal */
.main-card {
    display: flex;
    background-color: #FF7B1C;
    padding: 2px; 
    border-radius: 12px; 
    overflow: hidden;
    width: 82%; 
    min-height: 100px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
    border: 1px solid #FF7B1C; 
}

.main-card .icon-area {
    width: 68px; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.icon-area img {
    width: 24px;
    height: auto;
    display: block;
    object-fit: contain;
}

.main-card .text-area {
    background-color: #F1F1F1; 
    border-radius: 10px; 
    padding: 15px;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1; 
}

.main-card ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* Card Principal Largo */
.main-card-large {
    display: flex;
    background-color: #FF7B1C; 
    padding: 2px; 
    border-radius: 12px; 
    overflow: hidden;
    width: 130%;
    min-height: 140px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
    margin-left: 138px;
    border: 1px solid #FF7B1C;
}

.main-card-large .icon-area {
    width: 68px; 
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.main-card-large .text-area {
    background-color: #F1F1F1; 
    border-radius: 10px; 
    padding: 15px;
    font-size: 13px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1; 
}

.main-card-large ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* Estilos dos Cards Laterais */
.side-card {
    background-color: #F1F1F1;
    border: 2px solid #FF7B1C;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 89%;
}

.side-card-content {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
}

.side-card-content span {
    color: #FF7B1C;
    font-weight: bold;
}

.side-card-content ul {
    padding-left: 20px;
    margin-top: 10px;
}

/* Botões */
.btn {
    background-color: #FF7B1C;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    /* ADICIONE ISSO: */
    position: relative; 
    z-index: 99;    
}

.btn:hover {
    background-color: #d96515;
}

.btn-large {
    font-size: 16px;
    padding: 15px 40px;
    margin-top: 10px;
}

.btn-large-new {
    font-size: 14px;
    width: 325px;
}

/* =========================================
   VERSÃO DESKTOP
========================================= */
.desktop-layout {
    display: flex;
    flex-direction: column;
}

.desktop-layout .step-row {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-bottom: 30px;
}

.desktop-layout .step-row::before {
    content: '';
    position: absolute;
    left: 153px; 
    transform: translateX(-50%);
    top: 30px; 
    width: 2px;
    background-color: #FF7B1C;
    z-index: 0;
    border: 2px solid #FF7B1C; 
}

.desktop-layout .step-row:not(:last-of-type)::before {
    bottom: 0; 
}

.desktop-layout .step-row:last-of-type::before {
    height: 35px; 
}

.desktop-layout .main-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 306px;
    flex-shrink: 0;
}

.desktop-layout .step-number {
    width: 30px;
    height: 30px;
    background-color: #FF7B1C;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 15px; 
    position: relative;
    z-index: 2; 
}

.desktop-layout .side-column {
    margin-left: 10px;
    margin-top: 45px; 
    flex-grow: 1;
    position: relative;
}

.desktop-layout .side-column.has-connector {
    margin-bottom: -60px; 
}

.desktop-layout .side-column.has-connector::before {
    content: '';
    position: absolute;
    left: -40px; 
    top: 55px; 
    width: 40px;
    height: 2px;
    background-color: #FF7B1C;
    border: 2px solid #FF7B1C;
}

.desktop-layout .side-column.joined {
    margin-left: 103px; 
    z-index: 1; 
}

.desktop-layout .side-card.grey-bg {
    background-color: #e6e6e6;
    border: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    border-radius: 0 10px 10px 0; 
    padding-left: 35px; 
    width: 400px;
}

.desktop-layout .inner-grey-box {
    background-color: #D9D9D99C;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    width: 240px;
    text-align: left;
    display: block;
    align-items: center;
}

.inner-grey-box a,
.side-card-content a,
.text-area a{
    text-decoration: underline;
    color: #000000;
}


/* =========================================
   VERSÃO TABLET (Telas de 769px até 1024px)
========================================= */
.mobile-layout {
    display: none; 
}

@media (min-width: 769px) and (max-width: 1024px) {
    .desktop-layout { display: none !important; }
    
    .page-wrapper {
        width: 100vw;
    }

    /* Remove a faixa amarela esquerda e a u-border complexa do Desktop */
    .yellow-sidebar,
    .u-border {
        display: none !important;
    }
    
    /* ======== HEADER TABLET ======== */
    .top-header {
        display: block; 
        position: relative;
        padding-top: 50px; 
        margin-bottom: 20px;
    }

    /* Linha horizontal laranja vazando a tela */
    .top-header::before {
        content: '';
        position: absolute;
        top: 40px;
        left: -28px;
        width: 106%;
        height: 2px;
        background-color: #FF7B1C;
        z-index: 0;
    }

    /* Logo da 99 no Tablet */
    .top-header .logo-box {
        position: absolute;
        right: 0;
        top: 0px;
        left: auto;
        transform: none;
        border-radius: 15px; 
        padding: 10px 15px;
        z-index: 2; 
    }

    /* Banner/Título no Tablet */
    .top-header .banner {
        background: none;
        color: #000;
        font-size: 32px;
        font-weight: 900;
        text-align: center;
        padding: 40px 0 10px 0; 
        white-space: normal; 
        line-height: 1.2;
    }

    .top-header .banner::before {
        display: none; 
    }

    /* Textos Introdutórios Tablet */
    .intro-text {
        padding: 0 15px 20px 15px;
        text-align: center; 
    }

    .intro-text p {
        font-size: 14px;
        font-weight: normal; 
        line-height: 1.5;
        color: #333;
        margin: 0 auto 20px auto;
        max-width: 450px;
    }

    .intro-text h2 {
        display: none;
    }

    /* ======== TIMELINE TABLET ======== */
    .mobile-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding-top: 15px; 
    }

    .mobile-layout .main-card {
        width: 100%;
    }

    .mobile-layout .mob-row-1 {
        display: flex;
        justify-content: space-between;
        align-items: stretch; 
        width: 100%;
        gap: 16px;
        position: relative;
    }

    .mobile-layout .mob-line-1-2 {
        position: absolute;
        top: 130px; 
        left: 25%;
        width: 50%;
        height: 2px;
        background-color: #FF7B1C;
        border: 2px solid #FF7B1C;
        z-index: 0;
    }

    .mobile-layout .mob-card-wrapper {
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 1; 
    }

    .mobile-layout .half-width { width: calc(50% - 8px); }
    .mobile-layout .full-width { width: 100%; }

    .mobile-layout .step-number-mob {
        width: 30px;
        height: 30px;
        background-color: #FF7B1C;
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        margin: 0 auto 15px auto; 
        position: relative;
        z-index: 2;
    }

    .mobile-layout .step-number-mob::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 15px; 
        background-color: #FF7B1C;
        border: 2px solid #FF7B1C;
        z-index: -1; 
    }

    .mobile-layout .half-width .main-card { 
        min-height: 140px; 
        flex-grow: 1; 
    }
    
    .mobile-layout .half-width .icon-area { width: 45px; font-size: 20px; }
    .mobile-layout .half-width .text-area { padding: 10px; font-size: 11.5px; }

    .mobile-layout .mob-connector-right-to-center {
        width: 25%; 
        height: 35px; 
        align-self: flex-end;
        margin-right: calc(25% - 1px);
        margin-bottom: 15px; 
        position: relative;
    }
    
    .mobile-layout .mob-connector-right-to-center::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: calc(100% - 15px);
        height: 20px;
        border-right: 4px solid #FF7B1C;
        border-bottom: 4px solid #FF7B1C;
        border-bottom-right-radius: 12px;
    }

    .mobile-layout .mob-connector-right-to-center::after {
        content: '';
        position: absolute;
        left: -3px;
        top: 16px;
        width: 19px;
        height: 36px;
        border-top: 4px solid #FF7B1C;
        border-left: 4px solid #FF7B1C;
        border-top-left-radius: 12px;
    }

    .mobile-layout .ab-card {
        flex-direction: column;
        gap: 15px;
        width: 90%;
        padding: 20px;
        margin-top: 0; 
        margin-left: auto;
        margin-right: auto;            
    }

    .mobile-layout .mob-divider {
        border: 0;
        border-top: 1px solid #e0e0e0;
        width: 100%;
        margin: 5px 0;
    }

    .mobile-layout .mob-vertical-line {
        width: 2px;
        height: 35px; 
        background-color: #FF7B1C;
        border: 2px solid #FF7B1C;
        margin: 0 auto;
    }

    .mobile-layout .btn-large {
        align-self: center;
        width: 100%;
        text-align: center;
        margin-top: 25px; 
    }
}

/* =========================================
   VERSÃO MOBILE (Telas até 768px)
========================================= */
@media (max-width: 768px) {
    .desktop-layout { display: none !important; }
    
    .page-wrapper {
        width: 100vw;
    }

    /* Remove a faixa amarela esquerda e a u-border complexa do Desktop */
    .yellow-sidebar,
    .u-border {
        display: none !important;
    }
    
    /* ======== HEADER MOBILE ======== */
    .top-header {
        display: block; 
        position: relative;
        padding-top: 50px; 
        margin-bottom: 20px;
    }

    /* Linha horizontal laranja vazando a tela (conforme a imagem) */
    .top-header::before {
        content: '';
        position: absolute;
        top: 40px;
        left: -33px;
        width: 115%;
        height: 2px;
        background-color: #FF7B1C;
        z-index: 0;
    }

    /* Logo da 99 no Mobile */
    .top-header .logo-box {
        position: absolute;
        right: 0;
        top: 0px;
        left: auto;
        transform: none;
        border-radius: 15px; 
        padding: 10px 15px;
        z-index: 2; 
    }

    /* Banner/Título no Mobile */
    .top-header .banner {
        background: none;
        color: #000;
        font-size: 32px;
        font-weight: 900;
        text-align: center;
        padding: 40px 0 10px 0; 
        white-space: normal; 
        line-height: 1.2;
    }

    .top-header .banner::before {
        display: none; 
    }

    /* Textos Introdutórios Mobile */
    .intro-text {
        padding: 0 15px 20px 15px;
        text-align: center; 
    }

    .intro-text p {
        font-size: 14px;
        font-weight: normal; 
        line-height: 1.5;
        color: #333;
        margin: 0 auto 20px auto;
        max-width: 450px;
    }

    .intro-text h2 {
        display: none;
    }

    /* ======== TIMELINE MOBILE ======== */
    .mobile-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding-top: 15px; 
    }

    .mobile-layout .main-card {
        width: 100%;
    }

    .mobile-layout .mob-row-1 {
        display: flex;
        justify-content: space-between;
        align-items: stretch; 
        width: 100%;
        gap: 16px;
        position: relative;
    }

    .mobile-layout .mob-line-1-2 {
        position: absolute;
        top: 130px; 
        left: 25%;
        width: 50%;
        height: 2px;
        background-color: #FF7B1C;
        border: 2px solid #FF7B1C;
        z-index: 0;
    }

    .mobile-layout .mob-card-wrapper {
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 1; 
    }

    .mobile-layout .half-width { width: calc(50% - 8px); }
    .mobile-layout .full-width { width: 100%; }

    .mobile-layout .step-number-mob {
        width: 30px;
        height: 30px;
        background-color: #FF7B1C;
        color: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        margin: 0 auto 15px auto; 
        position: relative;
        z-index: 2;
    }

    .mobile-layout .step-number-mob::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 15px; 
        background-color: #FF7B1C;
        border: 2px solid #FF7B1C;
        z-index: -1; 
    }

    .mobile-layout .half-width .main-card { 
        min-height: 140px; 
        flex-grow: 1; 
    }
    
    .mobile-layout .half-width .icon-area { width: 45px; font-size: 20px; }
    .mobile-layout .half-width .text-area { padding: 10px; font-size: 11.5px; }

    .mobile-layout .mob-connector-right-to-center {
        width: 25%; 
        height: 35px; 
        align-self: flex-end;
        margin-right: calc(25% - 1px);
        margin-bottom: 15px; 
        position: relative;
    }
    
    .mobile-layout .mob-connector-right-to-center::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: calc(100% - 15px);
        height: 20px;
        border-right: 4px solid #FF7B1C;
        border-bottom: 4px solid #FF7B1C;
        border-bottom-right-radius: 12px;
    }

    .mobile-layout .mob-connector-right-to-center::after {
        content: '';
        position: absolute;
        left: -3px;
        top: 16px;
        width: 19px;
        height: 36px;
        border-top: 4px solid #FF7B1C;
        border-left: 4px solid #FF7B1C;
        border-top-left-radius: 12px;
    }

    .mobile-layout .ab-card {
        flex-direction: column;
        gap: 15px;
        width: 90%;
        padding: 20px;
        margin-top: 0; 
        margin-left: auto;
        margin-right: auto;            
    }

    .mobile-layout .mob-divider {
        border: 0;
        border-top: 1px solid #e0e0e0;
        width: 100%;
        margin: 5px 0;
    }

    .mobile-layout .mob-vertical-line {
        width: 2px;
        height: 35px; 
        background-color: #FF7B1C;
        border: 2px solid #FF7B1C;
        margin: 0 auto;
    }

    .mobile-layout .btn-large {
        align-self: center;
        width: 100%;
        text-align: center;
        margin-top: 25px; 
        font-size: 15px;
    }
}