/* CSS para a abordagem de métodos simplificada */

.how-it-works-section {
    padding: 100px 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.how-it-works-container {
    position: relative;
    z-index: 2;
}

/* Título da seção */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
    color: #0A4D40;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #F18F1C;
    border-radius: 4px;
}

/* Tabs para seleção do método */
.methods-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.method-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background-color: #fff;
    border: 2px solid #eee;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    color: #555;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.method-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.method-tab.active {
    background-color: #0A4D40;
    color: white;
    border-color: #0A4D40;
}

.tab-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.website-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='3' y1='9' x2='21' y2='9'%3E%3C/line%3E%3Cline x1='9' y1='21' x2='9' y2='9'%3E%3C/line%3E%3C/svg%3E");
}

.message-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
}

.method-tab.active .website-icon,
.method-tab.active .message-icon {
    filter: brightness(0) invert(1);
}

/* Visualização do método */
.method-visual {
    display: none;
    margin-bottom: 60px;
}

.method-visual.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Caminho do método (passos) */
.method-path {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.method-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
    position: relative;
    transition: all 0.3s ease;
}

.method-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background-color: #f5f9f8;
    border-radius: 12px;
}

.step-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #0A4D40;
    margin-bottom: 10px;
}

.step-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.step-time {
    padding: 5px 12px;
    background-color: #f5f9f8;
    color: #0A4D40;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.step-highlight {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 5px 15px;
    background-color: #F18F1C;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(241, 143, 28, 0.3);
    transform: rotate(3deg);
}

.path-arrow {
    align-self: center;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A4D40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cpolyline points='19 12 12 19 5 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
}

/* Ilustração do método */
.method-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.illustration-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

.illustration-tooltip {
    position: absolute;
    width: 32px;
    height: 32px;
    background-color: #F18F1C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 5;
}

.illustration-tooltip::before {
    content: '?';
    font-size: 20px;
}

.illustration-tooltip[data-position="top-left"] {
    top: 100px;
    left: 30px;
}

.illustration-tooltip[data-position="top-right"] {
    top: 30px;
    right: 30px;
}

.illustration-tooltip[data-position="bottom-left"] {
    bottom: 30px;
    left: 30px;
}

.illustration-tooltip[data-position="bottom-right"] {
    bottom: 30px;
    right: 30px;
}

.tooltip-content {
    position: absolute;
    width: 200px;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.illustration-tooltip:hover {
    transform: scale(1.1);
}

.illustration-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

.illustration-tooltip[data-position="top-left"] .tooltip-content {
    bottom: calc(100% + 15px);
    left: 0;
}

.illustration-tooltip[data-position="top-right"] .tooltip-content {
    bottom: calc(100% + 15px);
    right: 0;
}

.illustration-tooltip[data-position="bottom-left"] .tooltip-content {
    top: calc(100% + 15px);
    left: 0;
}

.illustration-tooltip[data-position="bottom-right"] .tooltip-content {
    top: calc(100% + 15px);
    right: 0;
}

.tooltip-content strong {
    display: block;
    color: #0A4D40;
    margin-bottom: 5px;
    font-size: 14px;
}

.tooltip-content p {
    color: #555;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Caixa de destaque */
.highlight-box {
    background: linear-gradient(135deg, #0A4D40 0%, #126e5c 100%);
    color: white;
    text-align: center;
    padding: 25px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    margin: 0 auto 40px;
    box-shadow: 0 15px 30px rgba(10, 77, 64, 0.2);
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Container de compatibilidade */
.compatibility-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.compatibility-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.compatibility-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.compatibility-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Container de CTA */
.cta-container {
    text-align: center;
}

.timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.timer-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: #F18F1C;
}

.timer-text {
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

.btn-how-it-works {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(241, 143, 28, 0.3);
    width: fit-content;
    margin: 2rem auto 0;
    white-space: nowrap;
    display: flex;
}

.btn-how-it-works:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(241, 143, 28, 0.4);
    background-color: #f79c2f;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.method-step {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.method-step:nth-child(1) {
    animation-delay: 0.1s;
}

.method-step:nth-child(3) {
    animation-delay: 0.3s;
}

.method-step:nth-child(5) {
    animation-delay: 0.5s;
}

.method-step:nth-child(7) {
    animation-delay: 0.7s;
}

.method-illustration {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.9s;
}

/* Media Queries para responsividade */
@media (max-width: 1200px) {
    .method-visual.active {
        gap: 30px;
    }
}

@media (max-width: 991px) {
    .section-title {
        font-size: 32px;
    }
    
    .method-visual.active {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .method-illustration {
        order: -1;
    }
    
    .illustration-container {
        max-width: 600px;
    }

    .timer-text {
        font-size: 14px;
    }

    .timer-icon {
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }

    .highlight-box {
        font-size: 14px;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .how-it-works-section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .methods-tabs {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .method-tab {
        width: 100%;
    }
    
    .highlight-box {
        font-size: 12px;
        padding: 20px;
    }
    
    .compatibility-container {
        gap: 15px;
    }
    
    .compatibility-icon {
        width: 70px;
        height: 70px;
    }
    
    .compatibility-icon img {
        width: 35px;
        height: 35px;
    }
    
    .btn-how-it-works {
        padding: 14px 22px;
        font-size: 15px;
    }
    
    .timer-text {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .how-it-works-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .method-step {
        padding: 20px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
    
    .step-icon img {
        width: 45px;
        height: 45px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .highlight-box {
        font-size: 14px;
        padding: 15px;
    }
    
    .compatibility-container {
        gap: 10px;
    }
    
    .compatibility-icon {
        width: 60px;
        height: 60px;
    }
    
    .compatibility-icon img {
        width: 30px;
        height: 30px;
    }
}