.danfe-content {
    min-width: 0;
}

.danfe-header {
    margin-bottom: 35px;
}

    .danfe-header h1 {
        margin: 0 0 10px;
        font-size: 34px;
        font-weight: 700;
        color: #2f4050;
    }

    .danfe-header p {
        margin: 0;
        max-width: 900px;
        font-size: 16px;
        line-height: 1.6;
        color: #666666;
    }

.cpf-options-card {
    position: relative;
    margin-bottom: 30px;
    padding: 40px 30px 30px;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-top: 3px solid #2f4050;
    border-radius: 6px;
}

.cpf-options-title {
    position: absolute;
    top: -20px;
    left: 18px;
    padding: 5px 12px;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 400;
    color: #444444;
}

.cpf-options {
    display: flex;
    margin-top: 5px;
    margin-bottom: 30px;
}

.cpf-option {
    flex: 1;
    padding-right: 30px;
}

.cpf-option-formato,
.cpf-options-formato {
    flex: 1;
    padding-right: 0;
    padding-left: 30px;
    border-left: 1px solid #2f4050;
}

.option-title {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 500;
    color: #555555;
}

.radio-group,
.radio-group-formato {
    display: flex;
    align-items: center;
    gap: 50px;
}

.radio-option,
.radio-option-formato {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 17px;
    font-weight: 400;
    color: #2f4050;
    cursor: pointer;
}

    .radio-option input[type="radio"],
    .radio-option-formato input[type="radio"] {
        width: 19px;
        height: 19px;
        margin: 0;
        cursor: pointer;
        accent-color: #2f4050;
    }

.cpf-button-area {
    display: flex;
    justify-content: center;
}

.btn-gerar-cnpj {
    min-width: 240px;
    padding: 14px 30px;
    background-color: #2f4050;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .btn-gerar-cnpj:hover {
        background-color: var(--brand-primary);
    }

.cpf-result-area {
    margin-top: 30px;
}

.cpf-result-label {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #555555;
}

.cpf-result-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cpf-result-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 20px;
    border: 1px solid #2f4050;
    border-radius: 6px;
    font-size: 22px;
    box-sizing: border-box;
}

    .cpf-result-input:focus {
        border-color: #008bb9;
        outline: none;
    }

.btn-copiar-cpf {
    min-width: 90px;
    height: 40px;
    padding: 10px;
    background-color: #2f4050;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .btn-copiar-cpf:hover {
        background-color: var(--brand-primary);
    }

.danfe-info {
    padding: 28px;
    margin-bottom: 30px;
    background-color: #ffffff;
    border: 1px solid #2f4050;
    border-radius: 8px;
}

    .danfe-info h2 {
        margin: 0 0 25px;
        font-size: 23px;
        color: #2f4050;
    }

.danfe-steps {
    display: flex;
    gap: 20px;
}

.danfe-step {
    display: flex;
    flex: 1;
    gap: 12px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    background-color: #2f4050;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
}

.step-content h3 {
    margin: 0 0 5px;
    font-size: 15px;
    color: #444444;
}

.step-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #777777;
}

@media (max-width: 1100px) {
    .ferramentas-layout {
        grid-template-columns: 220px 1fr;
    }

    .propaganda-area {
        display: none;
    }
}

@media (max-width: 768px) {
    .ferramentas-page {
        padding: 30px 15px;
    }

    .ferramentas-layout {
        display: flex;
        flex-direction: column;
    }

    .ferramentas-menu,
    .danfe-content {
        width: 100%;
    }

    .danfe-header h1 {
        font-size: 28px;
    }

    .cpf-options-card {
        padding: 35px 20px 25px;
    }

    .cpf-options {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .cpf-option {
        padding: 15px 0;
    }

    .cpf-option-formato,
    .cpf-options-formato {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #2f4050;
    }

    .radio-group,
    .radio-group-formato {
        flex-wrap: wrap;
        gap: 30px;
    }

    .btn-gerar-cnpj {
        width: 100%;
    }

    .cpf-result-group {
        flex-direction: column;
        gap: 10px;
    }

    .cpf-result-input,
    .btn-copiar-cpf {
        width: 100%;
    }

    .danfe-steps {
        flex-direction: column;
    }
}
